1. fix the underlying hardware fault
2. prtvtoc + fmthard
3. metareplace -e
4. If this is a boot device, installboot
5. If there are metadbs, make sure those are happy.


On Mon, 18 May 2020, Duncan Gray wrote:

> Hi,
>
> I have an issue with a mirror needing maintenance, on Solaris 10.
>
> How can I  resync the submirror?
>
> Oracle Corporation      SunOS 5.10      Generic Patch   January 2005
> You have mail.
> [root@GATER]/#metastat
> d7: Mirror
>    Submirror 0: d17
>      State: Okay
>    Submirror 1: d27
>      State: Okay
>    Pass: 1
>    Read option: roundrobin (default)
>    Write option: parallel (default)
>    Size: 184328064 blocks (87 GB)
>
> d17: Submirror of d7
>    State: Okay
>    Size: 184328064 blocks (87 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t0d0s7          0     No            Okay   Yes
>
>
> d27: Submirror of d7
>    State: Okay
>    Size: 184328064 blocks (87 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t1d0s7          0     No            Okay   Yes
>
>
> d5: Mirror
>    Submirror 0: d15
>      State: Okay
>    Submirror 1: d25
>      State: Okay
>    Pass: 1
>    Read option: roundrobin (default)
>    Write option: parallel (default)
>    Size: 16403712 blocks (7.8 GB)
>
> d15: Submirror of d5
>    State: Okay
>    Size: 16403712 blocks (7.8 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t0d0s5          0     No            Okay   Yes
>
>
> d25: Submirror of d5
>    State: Okay
>    Size: 16403712 blocks (7.8 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t1d0s5          0     No            Okay   Yes
>
>
> d4: Mirror
>    Submirror 0: d14
>      State: Okay
>    Submirror 1: d24
>      State: Okay
>    Pass: 1
>    Read option: roundrobin (default)
>    Write option: parallel (default)
>    Size: 16403712 blocks (7.8 GB)
>
> d14: Submirror of d4
>    State: Okay
>    Size: 16403712 blocks (7.8 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t0d0s4          0     No            Okay   Yes
>
>
> d24: Submirror of d4
>    State: Okay
>    Size: 16403712 blocks (7.8 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t1d0s4          0     No            Okay   Yes
>
>
> d1: Mirror
>    Submirror 0: d11
>      State: Okay
>    Submirror 1: d21
>      State: Okay
>    Pass: 1
>    Read option: roundrobin (default)
>    Write option: parallel (default)
>    Size: 19456512 blocks (9.3 GB)
>
> d11: Submirror of d1
>    State: Okay
>    Size: 19456512 blocks (9.3 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t0d0s1          0     No            Okay   Yes
>
>
> d21: Submirror of d1
>    State: Okay
>    Size: 19456512 blocks (9.3 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t1d0s1          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: 20494464 blocks (9.8 GB)
>
> d10: Submirror of d0
>    State: Needs maintenance
>    Invoke: metareplace d0 c1t0d0s0 <new device>
>    Size: 20494464 blocks (9.8 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t0d0s0          0     No     Maintenance   Yes
>
>
> d20: Submirror of d0
>    State: Okay
>    Size: 20494464 blocks (9.8 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t1d0s0          0     No            Okay   Yes
>
>
> d6: Mirror
>    Submirror 0: d16
>      State: Okay
>    Submirror 1: d26
>      State: Okay
>    Pass: 1
>    Read option: roundrobin (default)
>    Write option: parallel (default)
>    Size: 12292608 blocks (5.9 GB)
>
> d16: Submirror of d6
>    State: Okay
>    Size: 12292608 blocks (5.9 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t0d0s6          0     No            Okay   Yes
>
>
> d26: Submirror of d6
>    State: Okay
>    Size: 12292608 blocks (5.9 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t1d0s6          0     No            Okay   Yes
>
>
> Device Relocation Information:
> Device   Reloc  Device ID
> c1t1d0   Yes    id1,sd@TSEAGATE_ST314670LSUN146G3KS0LZET
> c1t0d0   Yes    id1,sd@TSEAGATE_ST314670LSUN146G3KS3Y2TB
> [root@GATER]/#metastat
> d7: Mirror
>    Submirror 0: d17
>      State: Okay
>    Submirror 1: d27
>      State: Okay
>    Pass: 1
>    Read option: roundrobin (default)
>    Write option: parallel (default)
>    Size: 184328064 blocks (87 GB)
>
> d17: Submirror of d7
>    State: Okay
>    Size: 184328064 blocks (87 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t0d0s7          0     No            Okay   Yes
>
>
> d27: Submirror of d7
>    State: Okay
>    Size: 184328064 blocks (87 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t1d0s7          0     No            Okay   Yes
>
>
> d5: Mirror
>    Submirror 0: d15
>      State: Okay
>    Submirror 1: d25
>      State: Okay
>    Pass: 1
>    Read option: roundrobin (default)
>    Write option: parallel (default)
>    Size: 16403712 blocks (7.8 GB)
>
> d15: Submirror of d5
>    State: Okay
>    Size: 16403712 blocks (7.8 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t0d0s5          0     No            Okay   Yes
>
>
> d25: Submirror of d5
>    State: Okay
>    Size: 16403712 blocks (7.8 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t1d0s5          0     No            Okay   Yes
>
>
> d4: Mirror
>    Submirror 0: d14
>      State: Okay
>    Submirror 1: d24
>      State: Okay
>    Pass: 1
>    Read option: roundrobin (default)
>    Write option: parallel (default)
>    Size: 16403712 blocks (7.8 GB)
>
> d14: Submirror of d4
>    State: Okay
>    Size: 16403712 blocks (7.8 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t0d0s4          0     No            Okay   Yes
>
>
> d24: Submirror of d4
>    State: Okay
>    Size: 16403712 blocks (7.8 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t1d0s4          0     No            Okay   Yes
>
>
> d1: Mirror
>    Submirror 0: d11
>      State: Okay
>    Submirror 1: d21
>      State: Okay
>    Pass: 1
>    Read option: roundrobin (default)
>    Write option: parallel (default)
>    Size: 19456512 blocks (9.3 GB)
>
> d11: Submirror of d1
>    State: Okay
>    Size: 19456512 blocks (9.3 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t0d0s1          0     No            Okay   Yes
>
>
> d21: Submirror of d1
>    State: Okay
>    Size: 19456512 blocks (9.3 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t1d0s1          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: 20494464 blocks (9.8 GB)
>
> d10: Submirror of d0
>    State: Needs maintenance
>    Invoke: metareplace d0 c1t0d0s0 <new device>
>    Size: 20494464 blocks (9.8 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t0d0s0          0     No     Maintenance   Yes
>
>
> d20: Submirror of d0
>    State: Okay
>    Size: 20494464 blocks (9.8 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t1d0s0          0     No            Okay   Yes
>
>
> d6: Mirror
>    Submirror 0: d16
>      State: Okay
>    Submirror 1: d26
>      State: Okay
>    Pass: 1
>    Read option: roundrobin (default)
>    Write option: parallel (default)
>    Size: 12292608 blocks (5.9 GB)
>
> d16: Submirror of d6
>    State: Okay
>    Size: 12292608 blocks (5.9 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t0d0s6          0     No            Okay   Yes
>
>
> d26: Submirror of d6
>    State: Okay
>    Size: 12292608 blocks (5.9 GB)
>    Stripe 0:
>        Device     Start Block  Dbase        State Reloc Hot Spare
>        c1t1d0s6          0     No            Okay   Yes
>
>
> Device Relocation Information:
> Device   Reloc  Device ID
> c1t1d0   Yes    id1,sd@TSEAGATE_ST314670LSUN146G3KS0LZET
> c1t0d0   Yes    id1,sd@TSEAGATE_ST314670LSUN146G3KS3Y2TB
> [root@GATER]/#metastat -p
> d7 -m d17 d27 1
> d17 1 1 c1t0d0s7
> d27 1 1 c1t1d0s7
> d5 -m d15 d25 1
> d15 1 1 c1t0d0s5
> d25 1 1 c1t1d0s5
> d4 -m d14 d24 1
> d14 1 1 c1t0d0s4
> d24 1 1 c1t1d0s4
> d1 -m d11 d21 1
> d11 1 1 c1t0d0s1
> d21 1 1 c1t1d0s1
> d0 -m d10 d20 1
> d10 1 1 c1t0d0s0
> d20 1 1 c1t1d0s0
> d6 -m d16 d26 1
> d16 1 1 c1t0d0s6
> d26 1 1 c1t1d0s6
> [root@GATER]/#metastat -c
> d7               m   87GB d17 d27
>    d17          s   87GB c1t0d0s7
>    d27          s   87GB c1t1d0s7
> d5               m  7.8GB d15 d25
>    d15          s  7.8GB c1t0d0s5
>    d25          s  7.8GB c1t1d0s5
> d4               m  7.8GB d14 d24
>    d14          s  7.8GB c1t0d0s4
>    d24          s  7.8GB c1t1d0s4
> d1               m  9.3GB d11 d21
>    d11          s  9.3GB c1t0d0s1
>    d21          s  9.3GB c1t1d0s1
> d0               m  9.8GB d10 (maint) d20
>    d10          s  9.8GB c1t0d0s0 (maint)
>    d20          s  9.8GB c1t1d0s0
> d6               m  5.9GB d16 d26
>    d16          s  5.9GB c1t0d0s6
>    d26          s  5.9GB c1t1d0s6
>
> Regards,
>
> Duncan
>

-- 
Andre van Eyssen.                  Phone:     +61 417 211 788
mail:     [email protected]      http://andre.purplecow.org
About & Contact:          http://www.purplecow.org/andre.html

_______________________________________________
msosug mailing list
[email protected]
http://mexico.purplecow.org/m/listinfo/msosug
Delivered for: [email protected]

Reply via email to