Core iTOps Tube

Monday, 14 May 2012

Broken Disks (?)

Hello Folks,

I´m a New Unix admin (by forceps) and I got a warning from one server saying:




Code:


Solaris Volume Manager: hostnamehere: metacheck: Report: Mon May 14 18:45:00 BRT 2012

--------------------------------------------------------------

metacheck: metadb problem, for more detail run:

      /usr/sbin/metadb -i

metacheck: metadevice problem, for more detail run:

      /usr/sbin/metastat d5

              /usr/local mounted on d5

      /usr/sbin/metastat d4

              /var mounted on d4

      /usr/sbin/metastat d3

              /opt mounted on d3

      /usr/sbin/metastat d2

              /usr mounted on d2

      /usr/sbin/metastat d0

              / mounted on d0

      /usr/sbin/metastat d1



exec usr/sbin/metadb -i



# usr/sbin/metadb -i

        flags          first blk      block count

      Wm  p  l          16              8192            /dev/dsk/c1t0d0s7

    a    p  luo        16              8192            /dev/dsk/c1t1d0s7

    a    p  luo        16              8192            /dev/dsk/c1t2d0s7

    a    p  luo        16              8192            /dev/dsk/c1t3d0s7



So far I understood that the hardisk c1t0d0s7 is damaged. Is that right?:confused:



Running metastat



# /usr/sbin/metastat

d7: Mirror

    Submirror 0: d17

      State: Okay

    Submirror 1: d27

      State: Okay

    Pass: 1

    Read option: roundrobin (default)

    Write option: parallel (default)

    Size: 70886016 blocks (33 GB)



d17: Submirror of d7

    State: Okay

    Size: 70886016 blocks (33 GB)

    Stripe 0:

        Device    Start Block  Dbase        State Reloc Hot Spare

        c1t4d0s5          0    No            Okay  Yes





d27: Submirror of d7

    State: Okay

    Size: 71069400 blocks (33 GB)

    Stripe 0:

        Device    Start Block  Dbase        State Reloc Hot Spare

        c1t5d0s6          0    No            Okay  Yes





d6: Mirror

    Submirror 0: d26

      State: Okay

    Submirror 1: d16

      State: Okay

    Pass: 1

    Read option: roundrobin (default)

    Write option: parallel (default)

    Size: 71069400 blocks (33 GB)



d26: Submirror of d6

    State: Okay

    Size: 71069400 blocks (33 GB)

    Stripe 0:

        Device    Start Block  Dbase        State Reloc Hot Spare

        c1t3d0s6          0    No            Okay  Yes





d16: Submirror of d6

    State: Okay

    Size: 71069400 blocks (33 GB)

    Stripe 0:

        Device    Start Block  Dbase        State Reloc Hot Spare

        c1t2d0s6          0    No            Okay  Yes





d5: Mirror

    Submirror 0: d15

      State: Needs maintenance

    Submirror 1: d25

      State: Okay

    Pass: 1

    Read option: roundrobin (default)

    Write option: parallel (default)

    Size: 11674449 blocks (5.6 GB)



d15: Submirror of d5

    State: Needs maintenance

    Invoke: metareplace d5 c1t0d0s6 <new device>

    Size: 11674449 blocks (5.6 GB)

    Stripe 0:

        Device    Start Block  Dbase        State Reloc Hot Spare

        c1t0d0s6          0    No    Maintenance  Yes





d25: Submirror of d5

    State: Okay

    Size: 11674449 blocks (5.6 GB)

    Stripe 0:

        Device    Start Block  Dbase        State Reloc Hot Spare

        c1t1d0s6          0    No            Okay  Yes





d4: Mirror

    Submirror 0: d14

      State: Needs maintenance

    Submirror 1: d24

      State: Okay

    Pass: 1

    Read option: roundrobin (default)

    Write option: parallel (default)

    Size: 10241505 blocks (4.9 GB)



d14: Submirror of d4

    State: Needs maintenance

    Invoke: metareplace d4 c1t0d0s5 <new device>

    Size: 10241505 blocks (4.9 GB)

    Stripe 0:

        Device    Start Block  Dbase        State Reloc Hot Spare

        c1t0d0s5          0    No    Maintenance  Yes





d24: Submirror of d4

    State: Okay

    Size: 10241505 blocks (4.9 GB)

    Stripe 0:

        Device    Start Block  Dbase        State Reloc Hot Spare

        c1t1d0s5          0    No            Okay  Yes





d3: Mirror

    Submirror 0: d13

      State: Needs maintenance

    Submirror 1: d23

      State: Okay

    Pass: 1

    Read option: roundrobin (default)

    Write option: parallel (default)

    Size: 14338107 blocks (6.8 GB)



d13: Submirror of d3

    State: Needs maintenance

    Invoke: metareplace d3 c1t0d0s4 <new device>

    Size: 14338107 blocks (6.8 GB)

    Stripe 0:

        Device    Start Block  Dbase        State Reloc Hot Spare

        c1t0d0s4          0    No    Maintenance  Yes





d23: Submirror of d3

    State: Okay

    Size: 14338107 blocks (6.8 GB)

    Stripe 0:

        Device    Start Block  Dbase        State Reloc Hot Spare

        c1t1d0s4          0    No            Okay  Yes





d2: Mirror

    Submirror 0: d12

      State: Needs maintenance

    Submirror 1: d22

      State: Okay

    Pass: 1

    Read option: roundrobin (default)

    Write option: parallel (default)

    Size: 14338107 blocks (6.8 GB)



d12: Submirror of d2

    State: Needs maintenance

    Invoke: metareplace d2 c1t0d0s3 <new device>

    Size: 14338107 blocks (6.8 GB)

    Stripe 0:

        Device    Start Block  Dbase        State Reloc Hot Spare

        c1t0d0s3          0    No    Maintenance  Yes





d22: Submirror of d2

    State: Okay

    Size: 14338107 blocks (6.8 GB)

    Stripe 0:

        Device    Start Block  Dbase        State Reloc Hot Spare

        c1t1d0s3          0    No            Okay  Yes





d0: Mirror

    Submirror 0: d10

      State: Needs maintenance

    Submirror 1: d20

      State: Okay

    Pass: 1

    Read option: roundrobin (default)

    Write option: parallel (default)

    Size: 10241505 blocks (4.9 GB)



d10: Submirror of d0

    State: Needs maintenance

    Invoke: metareplace d0 c1t0d0s0 <new device>

    Size: 10241505 blocks (4.9 GB)

    Stripe 0:

        Device    Start Block  Dbase        State Reloc Hot Spare

        c1t0d0s0          0    No    Maintenance  Yes





d20: Submirror of d0

    State: Okay

    Size: 10241505 blocks (4.9 GB)

    Stripe 0:

        Device    Start Block  Dbase        State Reloc Hot Spare

        c1t1d0s0          0    No            Okay  Yes





d1: Mirror

    Submirror 0: d11

      State: Needs maintenance

    Submirror 1: d21

      State: Okay

    Pass: 1

    Read option: roundrobin (default)

    Write option: parallel (default)

    Size: 10241505 blocks (4.9 GB)



d11: Submirror of d1

    State: Needs maintenance

    Invoke: metareplace d1 c1t0d0s1 <new device>

    Size: 10241505 blocks (4.9 GB)

    Stripe 0:

        Device    Start Block  Dbase        State Reloc Hot Spare

        c1t0d0s1          0    No    Maintenance  Yes





d21: Submirror of d1

    State: Okay

    Size: 10241505 blocks (4.9 GB)

    Stripe 0:

        Device    Start Block  Dbase        State Reloc Hot Spare

        c1t1d0s1          0    No            Okay  Yes





Device Relocation Information:

Device  Reloc  Device ID

c1t5d0  Yes    id1,ssd@n20000011c6412680

c1t3d0  Yes    id1,ssd@n20000004cf96f0a2

c1t2d0  Yes    id1,ssd@n20000004cf96ed25

c1t4d0  Yes    id1,ssd@n500000e01a6809c0

c1t1d0  Yes    id1,ssd@n20000004cf96e2f7

c1t0d0  Yes    id1,ssd@n20000004cf96e769



# uname -a

SunOS hostnamehere 5.10 Generic_141444-09 sun4u sparc SUNW,Sun-Fire-880




What should be the easiest way to change this disk and have the mirror fully operational again?



Thanks in advance:b:











Moderator's Comments:









Code tags for code, please.





No comments:

Post a Comment