July 22, 2009 · CentOS cibadmin Clustering crm Linux-HA

Linux HA - CRM commands

Small reminder as I always tend to forget these :

Dump the CRM cib db :

cibadmin -Q > cib.backup.xml

Modify a resource , dump the cib, modify the xml for the resources and then import using cibadmin -M

cibadmin -V -M -o resources -x modified_resources.xml

Add a resource , create the xml for the resource and them use -C

cibadmin -V -C -o resources -x new_resource.xml

Move resource from one location to another, -f to force it …

crm_resource -M -r resource -H host
crm_resource -M -r resource -H host -f