chore(doc): updating docs for importing existing volumes (#422)

Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
Pawan Prakash Sharma 2022-07-14 19:05:44 +05:30 committed by GitHub
parent ff097c065b
commit 8d2a24e29b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,7 @@ zfspv-pool 11.6M 246G 20K /zfspv-pool
zfspv-pool/fio-vol 24K 4.00G 24K /zfspv-pool/fio-vol
```
Here in the above ZPOOL, a dataset of name "fio-vol" is present and we want to import that to the ZFS-LocalPV CSI driver. First if volume is mounted then we have to unmount it so that it can be mounted by ZFS-LocalPV driver. For ZFS dataset use `zfs umount` command and for zvol we use `umount` command to unmount the volume
Here in the above ZPOOL, a dataset of name "fio-vol" is present and we want to import that to the ZFS-LocalPV CSI driver. First if volume is mounted then we have to unmount it so that it can be mounted by ZFS-LocalPV driver. For ZFS dataset use `zfs umount` command and for zvol we use `umount` command to unmount the volume. We also need to set the mount point for datasets to legacy, we can use `zfs set mountpoint=legacy <dataset>` command for that.
Get the volume size :