
Re-creates the loopback devices on rebuild/update. Re-enables volume groups and also logical volumes Change-Id: Ib319eebecfd29c71bc346c48ed47525552d54e94
7 lines
168 B
Bash
7 lines
168 B
Bash
#!/bin/bash
|
|
set -eux
|
|
|
|
for CINDER_VOLUME in `lvdisplay | grep cinder-volumes | grep 'LV Path' | awk '{print $3}'`; do
|
|
lvchange -a n $CINDER_VOLUME
|
|
done
|
|
vgchange -a n |