This repository has been archived by the owner on Sep 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
CStor Pool (zpool) commands
Kiran Mova edited this page Nov 2, 2018
·
1 revision
To create zpool on a specified disk with cachefile and alias name in io.openebs:poolname and guid as zpool name.
Cachefile helps in importing a pool faster. Guid is used for poolname and alias name, for example testpool, which ensures readability.
zpool create [-o cachefile=/tmp/pool1.cache -O io.openebs:poolname=poolname] <pool1-guid> /dev/sdc1
Destroys zpool with the same name you provided while creating zpool.
zpool destroy <pool1-guid>
To import zpool with cachefile and poolname,
zpool import [-c /tmp/pool1.cache] <pool1-guid>
To import zpool without cachefile,
zpool import <pool1-guid>
To get poolname without table format -Hp flag is used and to get particular column -o is used.
zpool get -Hp name -o name
zpool get <pool-guid>
The labels written to disk on previous zpool creation must be cleared.
zpool labelclear -f <disk details>
zpool status(only exit status check)
pool: pool1
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
pool1 ONLINE 0 0 0
/dev/sdc1 ONLINE 0 0 0
errors: No known data errors
Cachefile helps in importing a pool faster. To set cachefile for particular pool,
zpool set cachefile=<pool.cache> <pool-guid>