I am solaris system administrator.I have a query about disk replacement in svm.If I want to replace a faulty 'rootdisk' (primary boot disk) from svm ,provided the rootmirror disk is good ,then should i do the following ? query1)  ----->       `#>  init 0`                      `ok>  boot <rootmirror>`         (as rootdisk is faulty)                     (and then replace the faulty rootdisk)OR should i just do the following ?query2)  ----->           `eeprom boot-device=rootmirror rootdisk`                     (without booting from rootmirror  )Thanks in advance.
how to replace faulty root disk in svm
solaris
It is not exactly clear what you are asking. So I will first address, what is for me, the mistake in your logic.Your first option will only boot the system if the SVM metadbs are over 50%. Traditionally, both boot disks have metadbs. If you lost one disk and you reboot the system, it will stop because it does not have 50% of the metadbs in a stable condition. See more here.Your second option is in fact pointless. You don't need to change the boot order when you are replacing the disk online.To replace the disk itself, Oracle has clear defined way to do so. I have done it multiple times wihtout a hitch from Solaris 8 upwards.Overall the procedure is as follows:Delete metadbs that were on the failed disks,Replace the failed disk as per service instructions for the server,Copy the partition table from the mirror disk to the replaced disks,Use metareplace to replace the submirrors,Install boot block on the new disk,Create the metadbs on the new disk.Step-by-step instructions can also be found here.If you wish indeed to reboot the system, see here.Wait for the synchronization to finish before doing further maintenance.