ZFS

mirror

Mirroring provides the best performance if balanced between two arrays and handles hardware failure well.

zpool create POOL mirror c1t0d0 c2t96d0 mirror c1t1d0 c2t97d0
zpool add POOL mirror c1t2d0 c2t98d0
zpool add POOL spare c1t22d0 c2t118d0


raidz

Raidz provides maximum disk size with only a little protection from disk failure (for slightly better protection try raidz2).

zpool create POOL raidz c0t8d0 c0t9d0 c0t10d0 c0t11d0 c0t12d0


maintenance

Check data on disks and automatically recover if necessary (on mirror or raidz pools):

zpool scrub POOL

Check the status of disks with:

zpool status -v

Check properties for a pool:

zfs get all

Set properties for a pool:

zfs set atime=off POOL


sharenfs

Share ZFS filesystem over NFS.

zfs set sharenfs="rw=@192.168.1.0/24,root=192.168.1.0/24" POOL
zfs share POOL
zfs unshare POOL
Back to top
solaris/zfs.txt · Last modified: 2009/01/22 15:48 (external edit)