OpenEBS is the most popular open source storage software and contains different types of data engines suitable for different workload requirements. The supported engines are Jiva, cStor, Dynamic Local PV, and soon-to-be-releasing-and-very-fast Mayastor. The below image shows a feature-based comparison of the storage engines.
cStor data engine is popular for workloads needing efficient capacity management, replicas, point in time snapshots, incremental backups, etc. A new schema of cStor pool cStorPoolCluster(CSPC) allows you to create and manage your cStor pools in an easy way. Starting with release 1.9 OpenEBS Director and Data agility operators make this process seamless, and at the same time, keeps the User Experience relatively easy. OpenEBS Director is the management and visualization tool for your OpenEBS storage.
This feature requires 3 prerequisites:
- You need to connect your cluster to OpenEBS Director.
- This feature is supported for OpenEBS version >= 1.9. Make sure you have installed OpenEBS 1.9 using OpenEBS Director. If you installed an older version of OpenEBS using OpenEBS Director, then upgrade your OpenEBS version to 1.9. If OpenEBS is already installed manually, then upgrade it to 1.9 and install the cspc-operator.
- Unformatted disks are required to provision the cStor pool. Make sure you have attached some unformatted disks in your data/storage node(s).
Steps to provision a cStor pool
- In the OpenEBS Director, go to the Block Devices section, which is inside the Management section of your selected Cluster, and verify your block devices.
NOTE:- Only unclaimed, active, and unmounted block devices will be used to create a cStor pool. - Inside the Storage Pool section of the Management section, you will find an option to create a new pool. Click on that button and then select the CStor storage pool option and Continue.
- Provide a name for your CSPC and select the RAID type. The supported RAID types are stripe, mirror, raidz, raidz2. The pros and cons of each type are listed for better understanding as shown in the below image.
- Once you’ve provided the name for your CSPC and selected the RAID type, you need to select the device group. A Device Group represents a group of eligible block devices having similar characteristics like type and physical block size. For instance, if you have some block devices of type HDD and block size 4k and 16k, then it will give you 2 group options - HDD-4096, HDD-16384. Select HDD-4096, if you want to create a cStor pool using HDD block devices of block size 4k, & select HDD-16384 if you want to create a cStor pool using HDD block devices of block size 16k.
- Once you select a device group, our recommendation engine will give you two kinds of recommendations.
- Based on available Block Devices and RAID type, it will suggest that you can create a minimum of MIN_SIZE pool and a maximum of MAX_SIZE pool.
- Once you provide the capacity for the cStor pool, it tells you that it found N possible instance configurations for requested capacity. Based on the requirement of replication, you can select X number of instances out of N instances. For example, in the below image, 3 nodes have the needed block devices to create instances of 107 GB. You can select any number between 1 to 3 based on your replication requirements.
- After selecting instances for your cStor pool, generate the configuration by clicking on Generate Cluster Config. Once it is generated, verify it and apply the configuration in your cluster by clicking on the Create button.
- Verify the status of your CStorPool creation. After the creation process is successful, you can click on the View created pool button to see the pool details.
- Once a CSPC is created, follow the steps here to create a Storage Class and PVs. We will soon be adding Storage Class provisioning support in Director.
Important Links
Access Director online - https://director.mayadata.io
For help - https://help.mayadata.io
Join OpenEBS community — https://slack.openebs.io
Game changer in Container and Storage Paradigm- MayaData gets acquired by DataCore Software
Don Williams
Don Williams
Managing Ephemeral Storage on Kubernetes with OpenEBS
Kiran Mova
Kiran Mova
Understanding Persistent Volumes and PVCs in Kubernetes & OpenEBS
Murat Karslioglu
Murat Karslioglu