
Correcting cinder cleanup to first remove the cinder volumes and then remove the loop devices and not the other way around. Additionally an intentional deactivation of the volume groups has been added. Change-Id: I86a0851d660b4435bba355a13f0ec6e41dd3f1e5
8 lines
172 B
Bash
8 lines
172 B
Bash
#!/bin/bash
|
|
set -eux
|
|
|
|
for CINDER_VOLUME in `dmsetup ls 2>/dev/null | cut -f 1 |grep 'cinder--volumes'|grep -v pool`; do
|
|
dmsetup remove $CINDER_VOLUME
|
|
done
|
|
vgchange -a n
|