Thank you for the file.
root@PKEND021 # metadb
flags first blk block count
a m p lu 16 8192 /dev/dsk/c0t0d0s7
a p l 8208 8192 /dev/dsk/c0t0d0s7
a p l 16400 8192 /dev/dsk/c0t0d0s7
M p 16 unknown /dev/dsk/c1t0d0s7
M p 8208 unknown /dev/dsk/c1t0d0s7
M p 16400 unknown /dev/dsk/c1t0d0s7
From the output, we can see all the state replica on c1t0d0 are bad.
Use the metadb command to delete them. For example:
# metadb -d c1t0d0s7
Once that is deleted, the next steps is to replaced the disk.
Part II: Replacing failed boot device
1. Gracefully power-down the system with this command:
# init 5
2. Physically replace the failed boot device.
Part III: Repairing state replica database
1. If you use Solaris[TM] Volume Manager on Solaris[TM] 9 or later,
update the state database with the device ID for the new disk using
metadevadm -u c#t#d# .
# metadevadm -u c1t0d0s7
2. Once new boot disk is repartitioned, add new working state replicas
back into the newly replaced disk drive. For example:
# metadb -a -c 3 c1t0d0s7
(The -c #; specifies how many replicas to put into the specified partition)
Part IV: Resyncing the sub-mirrors
1. Run metstat to find all the metadevices that the failed boot device
belongs to. For example:
d0: Mirror
Submirror 0: d1
State: Needs maintenance
Submirror 1: d2
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 205200 blocks
d1: Submirror of d0
State: Needs maintenance
Size: 205200 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c0t0d0s0 0 No Okay
d2: Submirror of d0
State: Okay
Size: 205200 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t2d0s0 0 No Okay
2. Use the metareplace command to re-enable the sub-mirror. For example:
# metareplace -e d0 c0t0d0s0
(Resync operation may take about 15-20 minutes per every gigabyte of
filesystem)
3. Repeat metareplace command to re-enable the other sub-mirrors located
on the same disk:
# metareplace -e d
4. Reboot system to have it boot from the newly repaired boot device:
Before rebooting, wait for the resync : all metadevices must be in
'Okay' state, then :
# init 6
I will proceed to order the 146 GB disk on D240 storage.
No comments:
Post a Comment