ZFS
ZFS is a copy-on-write filesystem and storage-management architecture that shares pooled space among datasets and integrates data-integrity checks.
The original design combines pooled allocation, transactional updates and block checksums rather than treating a filesystem as a fixed partition. [1] In OpenZFS, a pool can contain multiple filesystem datasets and block volumes (zvols); these are not separate pools. [2]
Checksums detect mismatches; repair requires a readable correct copy or sufficient reconstruction redundancy. Extra copies on one device can repair some corruption but cannot survive loss of that device. [3] A same-pool snapshot retains earlier block references, so it is not an independent backup against pool loss. This backup distinction is an inference from the shared storage dependency. [4]
Checksum coverage has a time boundary. In the FAST 2010 study of Solaris Express build 108, corruption injected into dirty cached data before checksum generation could reach disk with a matching checksum. The authors also observed corrupt cached reads after disk-read verification. These are historical fault-injection results, not a measured failure rate or an assessment of current OpenZFS. [5]
A read-only workload is not necessarily a read-only filesystem. In that historical study, access-time updates could dirty metadata and its ancestors, allowing earlier memory corruption in those blocks to become persistent during a later flush. This is section 5.3, observation 4 of the paper, not a new test or a claim about a read-only mount. Disabling access-time updates would not close every memory-corruption path. [5]
Gang blocks assemble smaller allocations into one block. Their headers and payload have distinct checksum checks; fragmentation handling does not itself add data redundancy. [6]
Relations
- related
- ZFS virtual device (vdev), RAIDZ, ZFS Intent Log, ZFS transaction group, ZFS separate log, Copy-on-write (storage), Checksum, Storage snapshot, ZFS gang block, File access time, Read-only mount, ZFS pool checkpoint, ZFS deduplication table, ZFS recordsize, ZFS volblocksize, ZFS embedded data
Citations
- Jeff Bonwick et al. The Zettabyte File System (2003), architecture and design status
- OpenZFS 2.3: zfs(8), filesystems, volumes, snapshots and bookmarks
- OpenZFS: Checksums and Their Use in ZFS
- OpenZFS: Snapshots, Clones and Bookmarks
- Zhang et al. End-to-end Data Integrity for File Systems: A ZFS Case Study. FAST 2010, sections 4.2.1 and 5
- OpenZFS 2.3.4: zio.c, gang-tree assembly, allocation and failure paths
Sources & caveats
- This record describes the shared ZFS architecture, with current semantics scoped to the cited OpenZFS documentation.
- The 2003 design paper supplies architectural context, not current support for arbitrary vdev nesting or a current performance claim.
- No pool, failure injection or recovery experiment was performed.