Summary: Metadb

From: rmp dmd <rmp.dmd1229_at_gmail.com>
Date: Fri Jan 04 2008 - 10:33:59 EST
Hi,

Thanks for all who replied and special thanks to Andrew who've been very
helpful to all my queries.


Reboot will update the metadb.


---
original question:
Hi,

Just want to check why my metadevice replica does not have master.  What can
I do to correct?

% metadb
       flags           first blk       block count
    a        u         16              8192            /dev/dsk/c1t0d0s7
    a        u         8208            8192            /dev/dsk/c1t0d0s7
    a        u         16400           8192            /dev/dsk/c1t0d0s7
    a    p  luo        16              8192            /dev/dsk/c1t1d0s7
    a    p  luo        8208            8192            /dev/dsk/c1t1d0s7
    a    p  luo        16400           8192            /dev/dsk/c1t1d0s7

I recently changed a failed disk ( /dev/dsk/c1t0d0s7) and performed the
below.  All metadevice are in okay state.


#metadb -i  (verification)



#metadetach  f d6 d16

metadetach d0 d10

metadetach d1 d11

metadetach d3 d13

metadetach d4 d14

metadetach d5 d15



#metaclear d16

#metaclear d10

#metaclear d11

#metaclear d13

#metaclear d14

#metaclear d15



metadb -d c1t0d0s7



cfgadm -c unconfigure c1::dsk/c1t0d0

Pulled the old disk

Put the new disk

cfgadm -c configure c1::dsk/c1t0d0

cfgadm -al



prtvtoc /dev/rdsk/c1t1d0s2 | fmthard -s - /dev/rdsk/c1t0d0s2

or format



metainit d10 1 1 /dev/dsk/c1t0d0s0

metainit d11 1 1 /dev/dsk/c1t0d0s1

metainit d13 1 1 /dev/dsk/c1t0d0s3

metainit d14 1 1 /dev/dsk/c1t0d0s4

metainit d15 1 1 /dev/dsk/c1t0d0s5

metainit d16 1 1 /dev/dsk/c1t0d0s6





metattach d0 d10

metattach d1 d11

metattach d3 d13

metattach d4 d14

metattach d5 d15

metattach d6 d16



metadb -a -c 3 c1t0d0s7
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Jan 4 10:34:16 2008

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:08 EST