feedburner

Lorem ipsum dolor sit amet,
consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore
et dolore magna aliqua.

PROCEDURE FOR REPLACING MIRRORED DISKS

1. Run cfgadm to view the status of the SCSI devices

a) cfgadm -al
2. Remove the failed disk.hard drive from the device tree.
a) cfgadm –f -c unconfigure c0::dsk/c0t0d0
b) cfgadm –f -x remove_device c0::dsk/c0t0d0
3. Verify the status of SCSI devices. The required of the defective disk must not appear
a) cfgadm –al

4. Verify the existing metadevices left on the disk by running

a) metastat -p | grep c0t0d0

5. If there are any replicas on this disk, remove them using
a) metadb -d c0t0d0s7 (with –f )
6. To configure the new hard drive, type the following command

a) cfgadm -c configure c0::dsk/c0t0d0
b) cfgadm -x install_device c0::dsk/c0t0d0

7. Create device special files in /devices and logical links in /dev folders

a) devfsadm (no need)

8. Verify the availability of the newly reinstalled disk, type the following command

a) cfgadm –al or with format

9. Copy the disk slice information to new disk run 'prtvtoc' to put the desired partition table on the new disk
a) prtvtoc /dev/rdsk/c0t8d0s2 > c0t8d0_prtvtoc_info (copying from working Mirrored disk)
b) fmthard -s > c0t8d0_prtvtoc_info /dev/rdsk/c0t0d0s2
c) format ; p ; p (to verify slice info)
10) Recreate any replicas on the new disk.
a) metadb -a c0t0d0s7 (-f)
11). Replace and sync the data by running metareplace.
a) metareplace -e d10 c0t0d0s3
b) metareplace -e d100 c0t0d0s0
c) metareplace -e d110 c0t0d0s1
12) Verify the data syncing process
a) metastat |grep sync
b) metastat –p
c) metasync

0 comments:

Post a Comment