I have a Solaris 6 server where the disks used in each metadevice does not correspond to the real disk numbers. For example, most of the disks that are part of metadevices start with c2tXdXsX, while the actual disk names in the system are c1tXdXsX. I believe this was caused by a hardware change that probably happened somewhere along the line. The metadevices still work somehow, but I'm not sure why or how they still work. I found out about this when one of the devices needed maintenance and I ran the metareplace command....
The new disk name would be c1t5d0s3. I need to fix all of these for each metadevice. Here's an example of one...
What is the best way to recreate this RAID 5 mirror? Replace the disk, boot into single user mode, unmount the device, metaclear the d1 metadevice, ....but then I'm not sure of the commands I should run from there for RAID 5. I know how to take care of the mirrors, but not the RAID devices.
How are these devices still working when they are referencing disk names that do not exist anymore?
What, besides a defective disk, causes metadevices to require maintenance? This happens often, and a lot of times simply running the metareplace command fixes the situation.
Thanks for the help!
Code:
bash-2.05# metareplace -e d1 c2t5d0s3
metareplace: earthquake: c2t5d0s3: No such file or directory
The new disk name would be c1t5d0s3. I need to fix all of these for each metadevice. Here's an example of one...
Code:
d1: RAID
State: Needs Maintenance
Invoke: metareplace d1 c2t5d0s3 <new device>
Interlace: 64 blocks
Size: 100615336 blocks
Original device:
Size: 100617984 blocks
Device Start Block Dbase State Hot Spare
c2t5d0s3 5362 No Maintenance
c2t5d1s3 5362 No Okay
c2t5d3s3 5362 No Okay
c2t5d4s3 5362 No Okay
What is the best way to recreate this RAID 5 mirror? Replace the disk, boot into single user mode, unmount the device, metaclear the d1 metadevice, ....but then I'm not sure of the commands I should run from there for RAID 5. I know how to take care of the mirrors, but not the RAID devices.
How are these devices still working when they are referencing disk names that do not exist anymore?
What, besides a defective disk, causes metadevices to require maintenance? This happens often, and a lot of times simply running the metareplace command fixes the situation.
Thanks for the help!