Usage
Code Block | ||
---|---|---|
| ||
create zpool [label=]<poolname> [description=text] force=[1|0]
[raidlevel=mirror|raidz|raidz1|raidz2] options="zpool-opts">
(disk=<device-name>) ...
bind zpool <poolname> (disk=<device-name>) ...
unbind zpool <poolname> (disk=<device-name>) ...
set zpool <poolname> [online=yes|no] [disk=<device-name>] [writeprotect=yes|no]
show zpool [<poolname>]
|
Examples
Code Block | ||||
---|---|---|---|---|
| ||||
mayacli create zpool tank raidlevel=raidz2 disk=/dev/sda,dev/sdb,/dev/sdc
mayacli show zpool tank
|
Output
Code Block | ||||
---|---|---|---|---|
| ||||
mayacli show zpool
Configured zpools:
Name Type Status Size Disks
----------- mayacli show zpool
Configured zpools:
Name Type Status Size Disks
------------------------ ---------- ---------------- --------- --------
testpool1 pool ONLINE 199G sdb
[root@mayanas-ha1 ~]#
------------- ---------- ---------------- --------- --------
testpool1 pool ONLINE 199G sdb
[root@mayanas-ha1 ~]# |