Subject: Re: RAIDframe error recovery procedures.....
To: NetBSD User's Discussion List <netbsd-users@netbsd.org>
From: Wojciech Puchar <wojtek@chylonia.3miasto.net>
List: netbsd-users
Date: 09/10/2002 00:51:05
>
> I have a RAIDframe device in the following state.  I believe sd11d will
> come back A-OK after a reboot.  If so how do I recover it to "normal"

maybe even no reboot is necessery?
plug/unplug or scsictl format


> state in RAIDframe?

1) recreate disklabel if any (looks like no as you use d devices)
2) read raidctl(8)


looks like

raidctl -R /dev/sd11d raid0

is what you want

>
> 17:48 [2038] # raidctl -s raid0
> Components:
>            /dev/sd6d: optimal
>            /dev/sd7d: optimal
>            /dev/sd8d: optimal
>            /dev/sd9d: optimal
>           /dev/sd10d: optimal
>           /dev/sd11d: failed
> Spares:
>           /dev/sd12d: spare
> Component label for /dev/sd6d:
>    Row: 0, Column: 0, Num Rows: 1, Num Columns: 6
>    Version: 2, Serial Number: 2, Mod Counter: 119
>    Clean: No, Status: 0
>    sectPerSU: 32, SUsPerPU: 1, SUsPerRU: 1
>    Queue size: 100, blocksize: 512, numBlocks: 8890688
>    RAID Level: 5
>    Autoconfig: Yes
>    Root partition: No
>    Last configured as: raid0
> Component label for /dev/sd7d:
>    Row: 0, Column: 1, Num Rows: 1, Num Columns: 6
>    Version: 2, Serial Number: 2, Mod Counter: 119
>    Clean: No, Status: 0
>    sectPerSU: 32, SUsPerPU: 1, SUsPerRU: 1
>    Queue size: 100, blocksize: 512, numBlocks: 8890688
>    RAID Level: 5
>    Autoconfig: Yes
>    Root partition: No
>    Last configured as: raid0
> Component label for /dev/sd8d:
>    Row: 0, Column: 2, Num Rows: 1, Num Columns: 6
>    Version: 2, Serial Number: 2, Mod Counter: 119
>    Clean: No, Status: 0
>    sectPerSU: 32, SUsPerPU: 1, SUsPerRU: 1
>    Queue size: 100, blocksize: 512, numBlocks: 8890688
>    RAID Level: 5
>    Autoconfig: Yes
>    Root partition: No
>    Last configured as: raid0
> Component label for /dev/sd9d:
>    Row: 0, Column: 3, Num Rows: 1, Num Columns: 6
>    Version: 2, Serial Number: 2, Mod Counter: 119
>    Clean: No, Status: 0
>    sectPerSU: 32, SUsPerPU: 1, SUsPerRU: 1
>    Queue size: 100, blocksize: 512, numBlocks: 8890688
>    RAID Level: 5
>    Autoconfig: Yes
>    Root partition: No
>    Last configured as: raid0
> Component label for /dev/sd10d:
>    Row: 0, Column: 4, Num Rows: 1, Num Columns: 6
>    Version: 2, Serial Number: 2, Mod Counter: 119
>    Clean: No, Status: 0
>    sectPerSU: 32, SUsPerPU: 1, SUsPerRU: 1
>    Queue size: 100, blocksize: 512, numBlocks: 8890688
>    RAID Level: 5
>    Autoconfig: Yes
>    Root partition: No
>    Last configured as: raid0
> /dev/sd11d status is: failed.  Skipping label.
> /dev/sd12d status is: spare.  Skipping label.
> Parity status: clean
> Reconstruction is 100% complete.
> Parity Re-write is 100% complete.
> Copyback is 100% complete.
>
> --
> 								Greg A. Woods
>
> +1 416 218-0098;            <g.a.woods@ieee.org>;           <woods@robohack.ca>
> Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>
>