If you have domains configured on your system, first save the configuration so that you can restore it after installing the Oracle Solaris OS.
primary# ldm add-config config-name
primary# ldm list-constraints -x >/var/opt/SUNWldm/filename.xml
primary# cd /var/opt/SUNWldm primary# tar cvf filename.tar .