↑ Top
dev studios
| Sign in | DE EN


Next generation checksumming copy-on-write filesystem with volume management

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...


Basic usage

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

ls /naspool/nas/.zfs/snapshot/snapshot1

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

Stop scrub

zpool scrub -s naspool

Show the status of the storage pool

zpool status


To import a ZFS to your system use

zpool import -f naspool
zfs set mountpoint=/naspool naspool

See also


Comments are working now!


New comment features

...are now working

New feature test

Next new feature test

This is the longest comment currently written on this site. The purpose is to test the format and look if someone has to say more than just a few words. And it even has a list:
- With entry 1
- And entry 2
and some sourcecode: df -h | grep home