Solaris ZFS

Pool Operations

View Pools	zpool list
View Pool Status	zpool status <pool>
View Pool Status (quick)	zpool status -x
View Pool Properties	zpool get all {pool}
View History	zpool history {pool}
zpool history -l {pool}
View Stats	zpool iostat {pool} {interval}
Create Pool	zpool create {name} {devices}
Create Mirrored Pool	zpool create {name} mirror {devices}

Filesystem Operations

View Filesystems	zfs list
Mount Filesystem	zfs mount -a
View Properties	zfs get all {filesystem}
Create Filesystem (zfs)	zfs create {pool}/{filesystem}
Create Filesystem (ufs)	zfs create -V {size} {pool}/{filesystem}
Set/Change Property (i.e. quota)	zfs set quota={XX} {filesystem}

Troubleshooting & Recovery

View error counts	zpool status -v
Clear errors (attempt)	zpool clear {pool} {device}
Replace a Device (new location)	zpool replace {pool} {old_device} {new_device}
Replace a Device (same location)	zpool replace {pool} {device}

Creating a UFS file system on a ZVOL

zfs create -V 1g testtank/testufs
newfs /dev/zvol/rdsk/testtank/testufs
mkdir /testufs
mount /dev/zvol/dsk/testtank/testufs /testufs

Growing a UFS file system on a ZVOL

zpool list testtank
zfs set volsize=100G testtank/testdir
growfs -M /testdir /dev/zvol/rdsk/testtank/testdir