Last edit
Summary: get rid of N-Dash \x96
Changed:
< * metadetach d10 d11 ——(remove d11 from the d10 mirror. Do this for all slices on the failed disk)
< * metaclear d11 ——(Do this for all slices on the failed disk)
< * metadb -d /dev/dsk/c0t0d0s1 ——(clear the meta databases off of the failed disk)
< * –replace physical disk.
to
> * metadetach d10 d11 # (remove d11 from the d10 mirror. Do this for all slices on the failed disk)
> * metaclear d11 # (Do this for all slices on the failed disk)
> * metadb -d /dev/dsk/c0t0d0s1 # (clear the meta databases off of the failed disk)
> * replace physical disk.
Changed:
< * prtvtoc /dev/rdsk/c0t1d0s2 | fmthard -s - /dev/rdsk/c0t0d0s2 ——(copy the good disk's partition table to the new replacement disk)
< * metadb -a -c 3 c0t0d0s2 ——(Recreate databases)
< * metainit d11 1 1 c0t0d0s0 ——-(Recreate submirrors. Do this for all slices on the disk)
< * metattach d10 d11 ——-(Reattach the new drive sub mirror to the mirror -- rebuilding starts!)
to
> * prtvtoc /dev/rdsk/c0t1d0s2 | fmthard -s - /dev/rdsk/c0t0d0s2 # (copy the good disk's partition table to the new replacement disk)
> * metadb -a -c 3 c0t0d0s2 # (Recreate databases)
> * metainit d11 1 1 c0t0d0s0 # (Recreate submirrors. Do this for all slices on the disk)
> * metattach d10 d11 # (Reattach the new drive sub mirror to the mirror -- rebuilding starts!)
Using a software mirroring system on Solaris can be brutal. It is prone to configuration error and recovery can be a bitch. My personal point of view is buy as much central storage as you can afford and use a hardware raid, so you don't have to use to disksuite..
Since you are still reading, I guess you haven't splurged on the $50k raid NAS (Network Attached Storage). Let move on.
Use the 256M slice 7 of the drive for the metadata partition. Naming convention
Copy partition from one drive to another. The easiest way:
Set up meta database
Repeat for each slice that we're going to use. Map the new drive to the metadrive name
Now, tell vfstab to boot off off the metadevice
In the ROM monitor: ok>
*Probably* all you need to do is
metareplace -e d10 c0t0d0s0
... which will replace the device and enable it.
Here's the much longer way:
To replace a disk: