migrate lxc container to ganeti
[sysadmin-cookbook] / recepies / ganeti / migrate-lxc / 6-lxc-snapshot-remove.sh
diff --git a/recepies/ganeti/migrate-lxc/6-lxc-snapshot-remove.sh b/recepies/ganeti/migrate-lxc/6-lxc-snapshot-remove.sh
new file mode 100755 (executable)
index 0000000..b19921f
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh -x
+
+. ./0-host.sh
+. ./0-lxc.sh
+
+ssh_lxc umount /tmp/ganeti-$host
+ssh_lxc dmsetup remove raid5-ganeti--$host-cow
+ssh_lxc dmsetup remove raid5-ganeti--$host
+ssh_lxc lvremove /dev/raid5/ganeti-$host
+