commit | fa4ecc6e2be8b2e08b489cba4a15334c5db68ad8 | [log] [tgz] |
---|---|---|
author | Anthony Young <sleepsonthefloor@gmail.com> | Fri Nov 11 10:23:22 2011 -0800 |
committer | Anthony Young <sleepsonthefloor@gmail.com> | Fri Nov 11 10:23:22 2011 -0800 |
tree | e8f97fc265bfd921994a264c68d66c4527fafdcd | |
parent | ad0378613b44bea53db74fcb26909c2f815458ad [diff] [blame] |
destroy orphaned vdis
diff --git a/tools/xen/build_domU.sh b/tools/xen/build_domU.sh index 6362849..d79d5c3 100755 --- a/tools/xen/build_domU.sh +++ b/tools/xen/build_domU.sh
@@ -240,6 +240,11 @@ xe vm-shutdown uuid=$uuid xe vm-destroy uuid=$uuid 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 # Path to head xva. By default keep overwriting the same one to save space