ZFS is a checksumming copy-on-write filesystem with volume management features like RAID and snapshots. Unlike most other filesystems, it is able to protect against the dangerous silent data corruption.
ZFS is a combined file system and logical volume manager designed by Sun Microsystems. The features of ZFS include protection against data corruption, support for high storage capacities, efficient data compression, integration of the concepts of filesystem and volume management, snapshots and copy-on-write clones, continuous integrity checking and automatic repair, RAID-Z and native NFSv4 ACLs.
In 2010, Oracle stopped the releasing of source code for new OpenSolaris and ZFS development, effectively forking their closed-source development from the open-source branch. In response, OpenZFS was created as a new open-source development umbrella project, aiming at bringing together individuals and companies that use the ZFS filesystem in an open-source manner. More...
- RAID 0, 1, 5 (Z1), 6 (Z2), Z3
Create a ZFS:
This would create a mirrored/raid 1 device and filesystem on 2 drives (with the name "naspool"). Alternative: stripe / raidz1 / raidz2, or use "add" instead of "create" to extend a pool. If you extend a pool you need to add a new volume not a single disk!
zpool create naspool mirror /dev/sda /dev/sdb zfs create -p -o compress=on naspool/nas zfs list
zfs snapshot naspool/nas@snapshot1 zfs list -t snapshot
It is accessable with
To delete a filesystem or snapshot use the path/name
zfs destroy naspool/nas@snapshot1
Check pool for errors and correct them ("scrub")
zpool scrub naspool
zpool scrub -s naspool
Show the status of the storage pool
To import a ZFS to your system use
zpool import -f naspool zfs set mountpoint=/naspool naspool