Can someone advise the proper procedure for replacing a mirrored disk in SVM. I have checked the docs and various websites but the procedure seems to vary. This is what I would do...
Remove the db replicas from the bad disk.
Detach it from the mirror
Clear it with metaclear.
Replace the Disk
Copy the label from the good disk using prtvtoc and ftmhard
Create new db replicas
Create all the metadevices again then attach them which should start the resync?
Is this all necessary or can I just do a metareplace -e ?
I hope this is roughly right, What im not sure about is the need to use cfgadm to deconfig the failed disk then configure the new on back in, is this dependant on what hardware you are running?
Thanks for the reply, however when I keep getting errors from metadevadm relating to invalid device information on the replaced disk. This has led me to believe that I need to configure the new disk to get a new DevID generated.
I have sued both! The trick is to use 'metareplace' in case the entire disk goes bad!! That is faster and works okay
If only some slices are bad, then you need to follow the 'tedious' procedure that you mentioned in the very first post.
Extra:
Concerning usuing the cfgadm command, I have seen most sun engineers not using them while many sys admins use that - may be for security / satisfaction sake. Remember, cfgadm will eb used if you have scsi disks on your machine. ** 'luxadm' command is used instead of cfgadm incase your machine has fiber channel disks. (To find out if your system has FCAL disks, run format command and see if there is a long series of numbers after t (target) of the disks).