File fireactions-fix-thinpool of Package fireactions-reset-devmapper-snapshotter
#!/usr/bin/bash export CONTAINERD_SNAPSHOTTER_DEVICE=/dev/md127p4 echo "Stopping containerd and firecations" systemctl stop containerd.service fireactions.service echo "Removing devicemapper devices" dmsetup remove_all echo "Stopping lvm thinpool" lvchange -an --force /dev/containerd/thinpool echo "Force creating lvm pv on the snapshotter device" pvcreate --yes -ff $CONTAINERD_SNAPSHOTTER_DEVICE echo "Creating lvm volume group for thinpool on lvm pv" vgcreate containerd $CONTAINERD_SNAPSHOTTER_DEVICE echo "Creating lvm logical volume for thinpool" lvcreate --type thin-pool -q -n thinpool --poolmetadatasize 1G --profile containerd --monitor y -l "95%VG" containerd echo "Cleaning containerd data directory" rm -r /var/lib/containerd/ echo "Starting containerd" systemctl start containerd.service echo "Starting fireactions" systemctl start fireactions.service