Design a GFS/HDFS-style system that stripes large files into chunks, keeps namespace metadata consistent, and self-heals via replication or erasure coding.
Functional requirements
- Chunked storage with replication or erasure policies per directory or file
- Hierarchical namespace: create, delete, rename, list
- Atomic append or record-oriented append for log workloads
- Snapshots for backup, cloning, and incremental sync
- Per-tenant quotas, ACLs, and optional encryption scopes
Non-functional requirements
- Automatic re-replication when nodes or disks fail
- High aggregate read/write throughput for large sequential I/O
- Highly available metadata via consensus
- Background rebalancing for even disk utilization