- A+
所属分类:系统运维
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | [root@joshua joshua]# zfs -help unrecognized command '-help' usage: zfs command args ... where 'command' is one of the following: create [-p] [-o property=value] ... create [-ps] [-b blocksize] [-o property=value] ... -V destroy [-fnpRrv] <filesystem|volume> destroy [-dnpRrv] <filesystem|volume>@[%][,...] destroy <filesystem|volume># snapshot|snap [-r] [-o property=value] ... <filesystem|volume>@ ... rollback [-rRf] clone [-p] [-o property=value] ... <filesystem|volume> promote rename [-f] <filesystem|volume|snapshot> <filesystem|volume|snapshot> rename [-f] -p <filesystem|volume> <filesystem|volume> rename -r bookmark list [-Hp] [-r|-d max] [-o property[,...]] [-s property]... [-S property]... [-t type[,...]] [filesystem|volume|snapshot] ... set <property=value> <filesystem|volume|snapshot> ... get [-rHp] [-d max] [-o "all" | field[,...]] [-t type[,...]] [-s source[,...]] <"all" | property[,...]> [filesystem|volume|snapshot] ... inherit [-rS] <filesystem|volume|snapshot> ... upgrade [-v] upgrade [-r] [-V version] userspace [-Hinp] [-o field[,...]] [-s field] ... [-S field] ... [-t type[,...]] <filesystem|snapshot> groupspace [-Hinp] [-o field[,...]] [-s field] ... [-S field] ... [-t type[,...]] <filesystem|snapshot> mount mount [-vO] [-o opts] unmount [-f] share unshare send [-DnPpRvLe] [-[iI] snapshot] send [-Le] [-i snapshot|bookmark] <filesystem|volume|snapshot> receive [-vnFu] <filesystem|volume|snapshot> receive [-vnFu] [-d | -e] allow <filesystem|volume> allow [-ldug] <"everyone"|user|group>[,...] <perm|@setname>[,...] <filesystem|volume> allow [-ld] -e <perm|@setname>[,...] <filesystem|volume> allow -c <perm|@setname>[,...] <filesystem|volume> allow -s @setname <perm|@setname>[,...] <filesystem|volume> unallow [-rldug] <"everyone"|user|group>[,...] [<perm|@setname>[,...]] <filesystem|volume> unallow [-rld] -e [<perm|@setname>[,...]] <filesystem|volume> unallow [-r] -c [<perm|@setname>[,...]] <filesystem|volume> unallow [-r] -s @setname [<perm|@setname>[,...]] <filesystem|volume> hold [-r] ... holds [-r] ... release [-r] ... diff [-FHt] [snapshot|filesystem] Each dataset is of the form: pool/[dataset/]*dataset[@name] For the property list, run: zfs set|get For the delegated permission list, run: zfs allow|unallow |
目前常用的命令
创建新的子池(分区)
1 2 | <span class="pln">zfs create data</span><span class="pun">/</span><span class="typ">Partition1 </span>设定分区挂载点 |
1 | <span class="pln">zfs </span><span class="kwd">set</span><span class="pln"> mountpoint</span><span class="pun">=</span><span class="str">/mnt/</span><span class="pln">zfspool</span> |
1 2 3 4 | <span class="pln"> zfspool </span>设置分区去重 zfs set dedup =verify <span class="pln">zfspool</span> |
1 | zfs set dedupe = on <span class="pln">zfspoo</span> |

我的微信公众号
我的微信公众号扫一扫