I have a v480 with a mirrored boot disk c1t0 and c1t1. The drives themselves don't show a failure but the mirror's need maintenance.
This is my plan for replacing the drive. I would love feedback to point out what I"m missing or where my steps are incorrect.
Two things I believe I'm missing is do I need to newfs the replacement drive and/or create a bootblk on the replacement drive?
Do i need to change the devalias in OBP to point to the new device name?
Anyone know which drive is t1 and t0? I believe slot 0 is t0.
Here is the information I've gathered and the steps I intend to take.
Failed mirrors:
d14: Mirror
Submirror 0: d84
State: Okay
Submirror 1: d94
State: Needs maintenance
d84: Submirror of d14
State: Okay
Size: 4090752 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t0d0s4 10176 Yes Okay
d94: Submirror of d14
State: Needs maintenance
Invoke: metareplace d14 c1t1d0s4 <new device>
Size: 4090752 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t1d0s4 10176 Yes Maintenance
d13: Mirror
Submirror 0: d83
State: Okay
Submirror 1: d93
State: Needs maintenance
d83: Submirror of d13
State: Okay
Size: 203520 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t0d0s3 10176 Yes Okay
d93: Submirror of d13
State: Needs maintenance
Invoke: metareplace d13 c1t1d0s3 <new device>
Size: 203520 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t1d0s3 10176 Yes Maintenance
d0: Mirror
Submirror 0: d80
State: Okay
Submirror 1: d90
State: Needs maintenance
d80: Submirror of d0
State: Okay
Size: 4100928 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t0d0s0 0 No Okay
d90: Submirror of d0
State: Needs maintenance
Invoke: metareplace d0 c1t1d0s0 <new device>
Size: 4100928 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t1d0s0 0 No Maintenance
Replica state
metadb -i
flags first blk block count
a m p luo 16 1034 /dev/dsk/c1t0d0s3
a p luo 16 1034 /dev/dsk/c1t1d0s3
a p luo 16 1034 /dev/dsk/c1t0d0s4
a p luo 16 1034 /dev/dsk/c1t1d0s4
a p luo 16 1034 /dev/dsk/c1t0d0s7
a p luo 16 1034 /dev/dsk/c1t1d0s7
metadetach -f d14 d94
metadetach -f d13 d93
metadetach -f d0 d90
metaclear d94
metaclear d93
metaclear d90
- Verify there are no metadevices still on the drive
metastat -p | grep c1t1d0
- Clear replicas (three replicas left on c1t0)
metadb -d c1t1d0s3
metadb -d c1t1d0s4
metadb -d c1t1d0s7
- Save disk partition for later
prtvtoc /dev/rdsk/c1t1d0s2 > /tmp/disk2vtoc
- Prep drive for removal
- a. luxadm remove_device -F /dev/rdsk/c1t1d0s2
- Wait for the prompt telling you to remove the drive
- Remove the drive from the system
- devfsadm -Cc disk (cleans up)
- verify new drive paths are in solaris (ls -ld /dev/dsk/c1t1d*)
- Format the drive with the file saved in step 5
fmthard -s /tmp/disk2vtoc /dev/rdsk/c1t1d0s2
- Create and reattach submirror
- a. metainit d94 1 1 c1t1d0s4
- b. metattach d14 d94
- c. metainit d93 1 1 c1t1d0s3
- d. metattach d13 d93
- e. metainit d90 1 1 c1t1d0s0
- f. metattach d0 d90
Metadb -a -c3 c1t1d0s2