Replace failed disk and restore redundancy

The administrator replaces the failed disk with a new disk of the same geometry. Depending on the system model, the disk replacement may require that the system be powered down. The replacement disk is then partitioned identically to the mirror, and state database replicas are copied onto the replacement disk. Finally, the metareplace command copies that data from the mirror to the replacement disk, restoring redundancy to the system.


# prtvtoc /dev/rdsk/c0t1d0s2 | fmthard -s - /dev/rdsk/c0t0d0s2

fmthard: New volume table of contents now in place

# installboot /usr/platform/sun4u/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0

# metadb -f -a /dev/dsk/c0t0d0s5

# metadb -f -a /dev/dsk/c0t0d0s6

# metadb -i

flags first blk block count

a u 16 1034 /dev/dsk/cotodos5

a u 16 1034 /dev/dsk/c0t0d0s6

a m p luo 16 1034 /dev/dsk/c0t1d0s5

a m p luo 16 1034 /dev/dsk/c0t1d0s6

# metareplace -e d0 c0t0d0s0

d0: device c0t0d0s0 is enabled

# metareplace -e d1 c0t0d0s1

d1: device c0t0d0s1 is enabled

# metareplace -e d4 c0t0d0s4

d4: device c0t0d0s4 is enabled

0 comments: