Deploy an Application
This section explains the instructions to deploy an application the OpenEBS Local Persistent Volumes (PV) backed by the ZFS Storage.
Create the deployment yaml using the pvc backed by Local PV ZFS storage.
After the deployment of the application, we can go to the node and see that the ZFS volume is being used by the application for reading/writing the data and space is consumed from the ZFS pool.
#
ZFS Property ChangeZFS Volume Property can be changed like compression on/off can be done by just simply editing the kubernetes resource for the corresponding ZFS volume by using below command:
You can edit the relevant property like make compression on or make dedup on and save it. This property will be applied to the corresponding volume and can be verified using below command on the node:
#
DeprovisioningTo deprovision the volume we can delete the application which is using the volume and then we can go ahead and delete the PV, as part of deletion of PV this volume will also be deleted from the ZFS pool and data will be freed.
info
If you are running kernel ZFS on the same set of nodes, the following two points are recommended:
Disable zfs-import-scan.service service that will avoid importing all pools by scanning all the available devices in the system, disabling scan service will avoid importing pools that are not created by kernel.
Disabling scan service will not cause harm since zfs-import-cache.service is enabled and it is the best way to import pools by looking at cache file during boot time.
Always maintain upto date /etc/zfs/zpool.cache while performing operations on ZFS pools (zpool set cachefile=/etc/zfs/zpool.cache).
#
SupportIf you encounter issues or have a question, file a Github issue, or talk to us on the #openebs channel on the Kubernetes Slack server.