destroy orphaned vdis
This commit is contained in:
parent
ad0378613b
commit
fa4ecc6e2b
1 changed files with 5 additions and 0 deletions
|
@ -240,6 +240,11 @@ if [ "$DO_SHUTDOWN" = "1" ]; then
|
||||||
xe vm-shutdown uuid=$uuid
|
xe vm-shutdown uuid=$uuid
|
||||||
xe vm-destroy uuid=$uuid
|
xe vm-destroy uuid=$uuid
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Destroy orphaned vdis
|
||||||
|
for uuid in `xe vdi-list | grep -1 Glance | grep uuid | sed "s/.*\: //g"`; do
|
||||||
|
xe vdi-destroy uuid=$uuid
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Path to head xva. By default keep overwriting the same one to save space
|
# Path to head xva. By default keep overwriting the same one to save space
|
||||||
|
|
Loading…
Reference in a new issue