From LedHed's Wiki
Revision as of 01:11, 13 March 2014 by Ledhed (Talk | contribs)

Jump to: navigation, search

ZPool Usage

zpool create <POOL_NAME> <RAID_LEVEL> <DEVICE>
zpool create mypool raidz da{0,1,2}
zpool destroy <poolname>
zpool destroy mypool
zpool add
zpool status -v <POOL_NAME>
zpool list

Remove a failed disk

zpool offline <POOL_NAME> /dev/gptid/00000000-0000-0000-0000-000000000000

Replace Offline disk with new

zpool replace <POOL_NAME> /dev/gptid/00000000-0000-0000-0000-000000000000 /dev/da#

Note:/dev/da# should be the new disk


ZFS Usage

zfs create -V <VOLUME_SIZE> <VOLUME_PATH>
zfs create -V 200g /mypool/myvol



Reference

zpools man page - http://www.manpagez.com/man/8/zpool/