Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

cStor Replica (zfs) commands

Kiran Mova edited this page Nov 2, 2018 · 1 revision

Create Volume

To create zfs volume of particular size on top of zpool with guid specifying target ip and alias in name-io.openebs:volname.

zfs create -V 1G <pool1-guid>/<vol1-guid> -o io.openebs:targetip=IP:PORT -o io.openebs:volname=volname

Delete Volume

To destroy zfs volume,

zfs destroy <pool1-guid>/<vol1-guid>

Get Volume

To get volume name without table format -Hp flag is used and to get particular column -o is used.

zfs get -Hp name -o name

pool1
pool1/vol1

Get io.openebs:volname property :

zfs get io.openebs:volname <poolguid>/<volguid>
pool1
pool1/vol1
Clone this wiki locally