Blame
|
1 | # zpool |
||||||
| 2 | ||||||||
| 3 | ### new pool |
|||||||
| 4 | #### create new pool |
|||||||
| 5 | zpool create tank <dev0> <dev1> |
|||||||
| 6 | ||||||||
| 7 | #### add a new vdev to existing pool |
|||||||
| 8 | zpool add tank raidz1 <dev2> <dev3> |
|||||||
| 9 | ||||||||
| 10 | #### get general status |
|||||||
| 11 | zpool status |
|||||||
| 12 | ||||||||
| 13 | #### list zpools |
|||||||
| 14 | zpool list |
|||||||
| 15 | ||||||||
| 16 | ### history |
|||||||
| 17 | #### get command history |
|||||||
| 18 | zpool history |
|||||||
| 19 | ||||||||
| 20 | #### user initiated |
|||||||
| 21 | zpool history -i |
|||||||
| 22 | ||||||||
| 23 | #### long format |
|||||||
| 24 | zpool history -l |
|||||||
| 25 | ||||||||
| 26 | ### scrubs |
|||||||
| 27 | #### start scrub |
|||||||
| 28 | sudo zpool scrub tank |
|||||||
| 29 | ||||||||
| 30 | #### pause scrub |
|||||||
| 31 | sudo zpool scrub -s tank |
|||||||
| 32 | ||||||||
| 33 | ### replace disks |
|||||||
| 34 | #### replace a disk. |
|||||||
| 35 | sudo zpool replace <poolname> <missing_guid> <new_dev> |
|||||||
| 36 | ||||||||
| 37 | #### Monitor the progress of the resilvering operation |
|||||||
| 38 | zpool status -x |
|||||||
| 39 | ||||||||
| 40 | #### get iostat |
|||||||
| 41 | zpool iostat tank 2 |
|||||||