Installation
This section explains the prerequisites and installation requirements to set up OpenEBS Local Persistent Volumes (PV) backed by the ZFS Storage.
#
PrerequisitesBefore installing the ZFS driver, make sure your Kubernetes Cluster must meet the following prerequisites:
- All the nodes must have zfs utils installed.
- ZPOOL has been set up for provisioning the volume.
#
SetupAll the nodes should have zfsutils-linux installed. We should go to each node of the cluster and install zfs utils:
Go to each node and create the ZFS Pool, which will be used for provisioning the volumes. You can create the Pool of your choice, it can be striped, mirrored or raidz pool.
If you have the disk (say /dev/sdb), then you can use the below command to create a striped pool:
You can also create mirror or raidz pool as per your need. See here for more information.
If you do not have the disk, then you can create the zpool on the loopback device which is backed by a sparse file. Use this for testing purpose only.
Once the ZFS Pool is created, verify the pool via zpool status command, you should see the command similar as below:
Configure the custom topology keys (if needed). This can be used for many purposes like if we want to create the PV on nodes in a particular zone or building. We can label the nodes accordingly and use that key in the storageclass for making the scheduling decision.
#
InstallationFor installation instructions, see here.
#
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.