CSI driver for provisioning Local PVs backed by LVM and more.
Currently the LVM CSI Driver is in alpha.
Before installing LVM driver please make sure your Kubernetes Cluster must meet the following prerequisites:
- all the nodes must have lvm2 utils installed
- volume group has been setup for provisioning the volume
- You have access to install RBAC components into kube-system namespace. The OpenEBS LVM driver components are installed in kube-system namespace to allow them to be flagged as system critical components.
K8S : 1.17+
OS : Ubuntu
LVM : 2
Find the disk which you want to use for the LVM, for testing you can use the loopback device
truncate -s 1024G /tmp/disk.img
sudo losetup -f /tmp/disk.img --show
Create the Volume group on all the nodes, which will be used by the LVM Driver for provisioning the volumes
sudo pvcreate /dev/loop0
sudo vgcreate lvmvg /dev/loop0
Deploy the Operator yaml
kubectl apply -f https://raw.githubusercontent.com/openebs/lvm-localpv/master/deploy/lvm-operator.yaml
deploy the sample fio application
kubectl apply -f https://raw.githubusercontent.com/openebs/lvm-localpv/master/deploy/sample/fio.yaml
- Access Modes
- ReadWriteOnce
ReadOnlyManyReadWriteMany
- Volume modes
-
Filesystem
mode -
Block
mode
-
- Supports fsTypes:
ext4
,btrfs
,xfs
- Volume metrics
- Topology
- Snapshot
- Clone
- Volume Resize
- Backup/Restore
- Ephemeral inline volume