SVM (disksuite) replacing a disk drive correct steps..

From: Dave Martini 1 (martini1@llnl.gov)
Date: Fri Jan 25 2008 - 11:56:26 EST


I have a 280R with an S1 array attached to it that has 2 drives in it.
According to /var/adm/messages one of the drives in the S1 is failing
and needs to be replaced.

There is only one metadevice mirror on this drive and it's mirrored
to the other disk in the same array. The affected submirror is d2 listed
below which
is physical disk c3t1d0s0 and so I'll be removing the c3t1d0 disk from
the S1 array.

So I'll be removing that disk and installing a new one. I'm not sure of
the steps I should
perform do these look right???

d0: Mirror
    Submirror 0: d1
      State: Okay
    Submirror 1: d2
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 104863680 blocks (50 GB)

d1: Submirror of d0
    State: Okay
    Size: 104863680 blocks (50 GB)
    Stripe 0:
        Device Start Block Dbase State Reloc Hot Spare
        c3t0d0s0 0 No Okay Yes

d2: Submirror of d0
    State: Okay
    Size: 104863680 blocks (50 GB)
    Stripe 0:
        Device Start Block Dbase State Reloc Hot Spare
        c3t1d0s0 0 No Okay Yes

I have some replica's on the affected drive

ton# metadb
       flags first blk block count
    a m p luo 16 8192 /dev/dsk/c3t0d0s3
    a p luo 8208 8192 /dev/dsk/c3t0d0s3
    a p luo 16400 8192 /dev/dsk/c3t0d0s3
    a p luo 16 8192 /dev/dsk/c3t1d0s3
    a p luo 8208 8192 /dev/dsk/c3t1d0s3
    a p luo 16400 8192 /dev/dsk/c3t1d0s3
    a p luo 16 8192 /dev/dsk/c1t0d0s6
    a p luo 8208 8192 /dev/dsk/c1t0d0s6
    a p luo 16 8192 /dev/dsk/c1t1d0s6
    a p luo 8208 8192 /dev/dsk/c1t1d0s6

So I'll remove them first

# metadb -d C3t1d0s3

Then I need to detach the submirror d2 from d0

# metadetach d2 d0

I'll then remove the bad drive from the S1 array which I think I can do
without
powering down the S1 array because they are hot swappable??

I'll then install the new drive and create the disk partitions to match
the other
drive that's in the S1 array.

Would I then re-create the d2 submirror with

# metainit d2 1 1 c3t1d0s0

Then attach it to d0

metattach d2 d0

Are these steps right or am I missing something?
I'm assuming I can do all of this without unmounting
the volume that is d0 since it's mirrored and I'm just
removing half the mirror?

Thanks.
Dave Martini
LLNL
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:42 EDT