Disk replacement with svm

I dont even know what raid level this is, but its raid 5 mirrored from the looks of it.

I have a failed disk (t12) within this mirror. What is the best way to replace this disk? 2 things concern me, isn't there a command to prepare the disk for a hot swap? and what should i do with the metadevices? and metadb's? delete them and rebuild after the disk is replaced? I thgouth there was an easier way to do it without reconfigure rebooting.

su25e1n: / # metastat -p

d100 -m d103 d113 1
d103 3 1 d102 \
1 d104 \
1 d106
d102 -p c0t11d0s0 -o 1 -b 2097152
d104 -p c0t11d0s0 -o 2097154 -b 2097152
d106 -p c0t11d0s0 -o 4194307 -b 2097152
d113 3 1 d112 \
1 d114 \
1 d116
d112 -p c0t12d0s0 -o 1 -b 2097152
d114 -p c0t12d0s0 -o 2097154 -b 2097152
d116 -p c0t12d0s0 -o 4194307 -b 2097152
su25e1n: / # echo | format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1f,4000/scsi@3/sd@0,0
1. c0t8d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1f,4000/scsi@3/sd@8,0
2. c0t9d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1f,4000/scsi@3/sd@9,0
3. c0t10d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1f,4000/scsi@3/sd@a,0
4. c0t11d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1f,4000/scsi@3/sd@b,0
5. c0t12d0 <drive not available: formatting>
/pci@1f,4000/scsi@3/sd@c,0

I am not 100% sure about this, but you could just use metadetach to detach the d113 metadevice. Then replace the disk (you may have to recreate d113). The use metattach to recreate the mirror. The sync will be carried out by the system after the new mirror is attached.

You may also need to use cfgadm or luxadm to ensure the disk is OK2RM (OK to remove) - what platform are you using (uname -i)

Cheers
ZB

Wow, that is a convoluted way to create a simple mirror(its not raid5 mirrored).. Why has it been setup this way ?

How did you go with your didk replacement, I hope it all went well.

If I was you I would fix that config aswell.

d102, d104 and d106 are soft partitions
d103 is a concat of these soft partitions

d112, d114 and d116 are soft partitions
d113 is a concat of these soft partitions

d100 is a mirror of d103 and d113

A better layout would be.

d100 -m d103 d113 1
d103 1 1 c0t11d0s0
d113 1 1 c0t12d0s0