[one-users] Script to delete stuck VMs and fix database problems

Javier Fontan jfontan at fdi.ucm.es
Wed May 20 11:38:45 PDT 2009


Hello,

A new utility script to delete those VM's that are stuck in a state  
that does not let standard ONE commands to delete them is uploaded  
here: http://dev.opennebula.org/projects/scripts/wiki/Onedb

Be careful as the code is very experimental. I have been testing it  
with several databases but still it was only me testing it. MAKE  
BACKUPS OF THE DATABASE BEFORE USING IT.

It is also very important to stop OpenNebula daemons before using it.

It also comes with a database checker to look and fix possible  
inconsistencies (after deleting stuck VM's there will be some for  
sure). In fact the database check/fix functionality takes most of the  
lines in the script.

Again, make backups of the database (just after stopping OpenNebula  
daemons).

Tell me if it works for you as I want to improve it.

Bye

-- 
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org




More information about the Users mailing list