Solaris LDOM's Back-up and Restoration Procedure


How to add vdisk to Guest LDOM:


#ldm ls -e -l -o disk|grep san|sed 's/primary-vds0//'|awk '{print "ldm add-vdsdev",$2, $1"@primary-vds0"}' > Virtualdisk.out_`date +%d%m%y`


LDOM Migration from One node to another Node:

#for i in `ldm ls |awk '{print $1}' | egrep -vi "name|primary"`;do ldm migrate -p pswd $i ldmadmin@targetserver


How to set the Host ID for Guest LDOM:


#ldm set-dom hostid=82a85641 ldom1


How to restore the Guest LDOMs from XML Files:


#for i in `ls -l |grep xml|awk '{print $9}'|egrep -iv primary`; do ldm add-domain -i $i ;done


How to Bind the Guest LDOM:


#for i in `ldm ls |awk '{print $1}' | egrep -vi "name|primary"`;do ldm bind $i ; done

How to start the Guest LDOM


#for i in `ldm ls |awk '{print $1}' | egrep -vi "name|primary"`;do ldm start $i;done



Single  Guest LDOM Restoration steps:

#ldm add-domain -i domainname.xml
#ldm bind domainname
#ldm start domainname


Note: we need to remember one thing when we restore Guest domains from xml file , we need to import the zpool if we have anything in the Guest domain.

Taking xml backup of Guest domain(LDOM):


#ldm list-constraints -x  ldom > ldom.xml


Comments

Popular posts from this blog

Veritas Cluster Server (VCS) Commands - Cheat Sheet

Solaris 11.4 Network Administration Cheatsheet

Oracle Logical Domains (LDOM) Back up & Restoration from Backup Files