On my personal microk8s cluster I unfortunately recently had a power failure affecting all nodes. I was using the default settings which create a file on /data/xxx.img. Unfortunately this file was missing from all my nodes.

Create Logical Volume

The first step was to create a dedicated logical volume for my data on each node, that could easily be picked up after a restart:

sudo lvcreate --name mayastor-data --size 200g ubuntu-vg

Create DiskPool

Then, for each node:

apiVersion: "openebs.io/v1alpha1"
kind: DiskPool
metadata:
  name: <node-name>-vg-mayastor--data
  namespace: mayastor
spec:
  node: <node-name>
  disks: ["/dev/disk/by-id/dm-name-ubuntu--vg-mayastor--data"]