2. ● Overview
● Setup K8s with GPD Disks
● Volume Provisioning
○ GPD Storage Pool
○ StorageClass
○ Application
● GPD Snapshot and Clone
● Data Recovery
○ Mounting Clone Volumes
○ Recovery Volume and Application
Agenda
3. Overview
● OpenEBS Storage Pool can run
on any disks - both local as well
as remote.
● Why OpenEBS on GPD:
○ Apps can be short lived - no
need - Manage the
creation/deletion within the
K8s cluster. (Avoid -
mount/unmount)
○ Protect against Application or
K8s Failures
v1 v1 v1
a2 a3a1
Storage Pool Storage Pool Storage Pool
GPD1 GPD2 GPD3
v2 v3 v2 v3 v2 v3
4. Setup
Attach GPD disks to each of the
Storage Node within K8s cluster
Format and mount the GPD
sudo mkfs.ext4 /dev/sdb
sudo mkdir /mnt/openebs_gpd
sudo mount /dev/sdb /mnt/openebs_gpd
https://docs.openebs.io/docs/next/setupstoragepools.html
10. GPD - Clone Attach
Attach Cloned GPD disks to the
Storage Node
Format and mount the GPD
sudo mkdir /mnt/openebs_gpd_snap
sudo mount /dev/sdb /mnt/openebs_gpd_snap
13. Step 1 : SSH into node and copy the backup data into Recovery Replica
cd /mnt/openebs_gpd/default-demo-vol1-recover-claim-1811457354/
sudo rm -rf *
sudo cp /mnt/openebs_gpd_snap/default-demo-vol1-claim-2643725570/* .
# Edit peer.details to Replica = 1
Step 2: Restart the Replica and Controller Pods
Step 3: Launch Recovery Application using the above Recovery Volume.
Recovery Steps
https://github.com/kmova/bootstrap/tree/master/gke-openebs/jiva-gpd