Each time I have to make any change to the OVM environment I backup with the following
332 DATE=`date '+%Y%m%d%H%M'`
333 ldm add-config $DATE
334 sudo sh -c "ldm list -p | sed -ne 's/.*|name=\\([^|]*\\)|.*/\\1/p' | while read i; do ldm list-constraints -x \$i > /rpool/ldom-${DATE}-\$i.xml; done
This creates the xml file for the environment. My question is, using the xml file to restore the environment would I first need to have Oracle VM environment setup with the I/O domain in place? If so would I just install the OS (Solaris 11.3) then follow up by running the ldm commands to restore the xml file
ldm init-system [-frs] -i filename.xml