三种设备:filesystem volume snapshot
1.zfs list
root@UA4300D-spa:~/hanhuakai/pro_07/git_0708# zfs list
NAME USED AVAIL REFER MOUNTPOINT
hhk 624K 1.78T 144K /hhk
rpool 5.96G 1.36G 36K /rpool
rpool/vol01 20.9M 1.38G 16K -
rpool/vol02 20.9M 1.38G 16K -
rpool/vol03 10.6M 1.37G 16K -
tank 1.30T 777G 32K /tank
tank/vol02 601G 1.35T 16K -
tank/vol03 729G 777G 729G /tank/vol03
test 98.5K 1.78T 31K /test
2.zfs list filesystem
root@UA4300D-spa:~/hanhuakai/pro_07/git_0708# zfs list -t filesystem
NAME USED AVAIL REFER MOUNTPOINT
hhk 624K 1.78T 144K /hhk
rpool 5.97G 1.36G 36K /rpool
tank 1.30T 777G 32K /tank
tank/vol03 729G 777G 729G /tank/vol03
test 98.5K 1.78T 31K /test
3.zfs list volume
root@UA4300D-spa:~/hanhuakai/pro_07/git_0708# zfs list -t volume
NAME USED AVAIL REFER MOUNTPOINT
rpool/vol01 20.9M 1.38G 16K -
rpool/vol02 20.9M 1.38G 16K -
rpool/vol03 10.6M 1.37G 16K -
tank/vol02 601G 1.35T 16K -
4.zfs list snapshot
root@UA4300D-spa:~/hanhuakai/pro_07/git_0708# zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
rpool/ROOT/soulos@install 80.5M - 1.79G -
5.创建快照
root@UA4300D-spa:~/hanhuakai/pro_07/git_0708# zfs snapshot tank/vol02@snap01
root@UA4300D-spa:~/hanhuakai/pro_07/git_0708# zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
rpool/ROOT/soulos@install 80.5M - 1.79G -
tank/vol02@snap01 0 - 16K -
root@UA4300D-spa:~/hanhuakai/pro_07/git_0708# zfs snapshot --help
invalid option ‘-‘
usage:
snapshot [-r] [-o property=value] ... <filesystem@snapname|volume@snapname> ...
For the property list, run: zfs set|get
For the delegated permission list, run: zfs allow|unallow
原文地址:http://www.cnblogs.com/fendou-999/p/3831766.html