tripleo-ansible/playbooks/files/cleanup_cinder_devices.sh
Cian O'Driscoll 82eb9d86ec Re-activate vg and lvs on rebuild
Re-creates the loopback devices on rebuild/update.
Re-enables volume groups and also logical volumes

Change-Id: Ib319eebecfd29c71bc346c48ed47525552d54e94
2015-01-13 16:45:54 -05:00

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