Summary: Broken mirror

From: Andreas Höschler <ahoesch_at_smartsoft.de>
Date: Thu Jul 27 2006 - 16:41:18 EDT
Dear managers,

thanks to

Joon Martin Hansen <joon.hansen@gmail.com>
Marcel Knol <marcel@iunxi.nl>
"Christopher L. Barnard" <cbar44@tsg.cbot.com>

I did:

metadetach -f d0 d20
metadetach -f d1 d21
metadetach -f d3 d23

metaclear -f d23 1 1 c1t1d0s3
metaclear -f d21 1 1 c1t1d0s1
metaclear -f d20 1 1 c1t1d0s0


dd if=/dev/rdsk/c1t0d0s2 of=/dev/rdsk/c1t1d0s2 count=16

metadb -a -c 2 c1t1d0s7

metainit d20 1 1 c1t1d0s0
metainit d21 1 1 c1t1d0s1
metainit d23 1 1 c1t1d0s3

metattach d0 d20
metattach d1 d21
metattach d3 d23

Now metastat looks better, it''s at least resyncing:

bash-2.05# metastat | grep Resy
       State: Resyncing
     Resync in progress: 14 % done
     State: Resyncing
       State: Resyncing
     Resync in progress: 10 % done
     State: Resyncing
       State: Resyncing
     Resync in progress: 0 % done
     State: Resyncing
bash-2.05#

d20 is still at 0% but I hope this is because it's so large....

Thanks a lot!!!

Regards,

   Andreas

Original message:
> we had a power outage (UPS didn't make it). I was able to get the
> SunFire 240 (Solaris 9) to boot again, but doing a metatstat gives me:
>
> bash-2.05# metastat
> d3: Mirror
>      Submirror 0: d13
>        State: Okay
>      Submirror 1: d23
>        State: Needs maintenance
>      Pass: 1
>      Read option: roundrobin (default)
>      Write option: parallel (default)
>      Size: 10247232 blocks (4.9 GB)
>
> d13: Submirror of d3
>      State: Okay
>      Size: 10247232 blocks (4.9 GB)
>      Stripe 0:
>          Device     Start Block  Dbase        State Reloc Hot Spare
>          c1t0d0s3          0     No            Okay   Yes
>
>
> d23: Submirror of d3
>      State: Unavailable
>      Size: 10247232 blocks (4.9 GB)
>      Stripe 0:
>          Device     Start Block  Dbase        State Reloc Hot Spare
>          c1t1d0s3          0     No               -   Yes
>
>
> d1: Mirror
>      Submirror 0: d11
>        State: Okay
>      Submirror 1: d21
>        State: Needs maintenance
>      Pass: 1
>      Read option: roundrobin (default)
>      Write option: parallel (default)
>      Size: 14337984 blocks (6.8 GB)
>
> d11: Submirror of d1
>      State: Okay
>      Size: 14337984 blocks (6.8 GB)
>      Stripe 0:
>          Device     Start Block  Dbase        State Reloc Hot Spare
>          c1t0d0s1          0     No            Okay   Yes
>
>
> d21: Submirror of d1
>      State: Unavailable
>      Size: 14337984 blocks (6.8 GB)
>      Stripe 0:
>          Device     Start Block  Dbase        State Reloc Hot Spare
>          c1t1d0s1          0     No               -   Yes
>
>
> d0: Mirror
>      Submirror 0: d10
>        State: Okay
>      Submirror 1: d20
>        State: Needs maintenance
>      Pass: 1
>      Read option: roundrobin (default)
>      Write option: parallel (default)
>      Size: 114591936 blocks (54 GB)
>
> d10: Submirror of d0
>      State: Okay
>      Size: 114591936 blocks (54 GB)
>      Stripe 0:
>          Device     Start Block  Dbase        State Reloc Hot Spare
>          c1t0d0s0          0     No            Okay   Yes
>
>
> d20: Submirror of d0
>      State: Unavailable
>      Size: 114591936 blocks (54 GB)
>      Stripe 0:
>          Device     Start Block  Dbase        State Reloc Hot Spare
>          c1t1d0s0          0     No               -   Yes
>
>
> Device Relocation Information:
> Device   Reloc  Device ID
> c1t0d0   Yes    id1,sd@SSEAGATE_ST373307LSUN72G_3HZ6Y1YR00007431G08H
> bash-2.05#
>
> It seems the second disk is gone!? How can I make sure the disk is
> really dead? I remember of having heard that detaching and reattaching
> a disk to the mirror solves some problems!? Please help! I have set up
> a bunch of mirrors but I never had to repair one.
>
> Thanks a lot!
>
> Regards,
>
>    Andreas
> _______________________________________________
> sunmanagers mailing list
> sunmanagers@sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Jul 27 16:41:51 2006

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