NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: raidframe - a configf question



> On Fri, Aug 29, 2014 at 01:34:22PM -0400, yancm%SDF.ORG@localhost wrote:
>> I've already reconfigured wd0 as a raid disk, installed bootblocks with
>> -t
>> raid and verified I can use it in the array manually.
>> But I think I'd like to add wd0 into raid0 as a hot spare.
>> I can do this interactively, but it is not persistent.
>
> For the "not persistent" part of your question, see raidctl(8):
>
>      -A yes dev
>              Make the RAID set auto-configurable.  The RAID set will be
>              automatically configured at boot before the root file system
> is
>              mounted.  Note that all components of the set must be of type
>              RAID in the disklabel.
>
> (and other parameters if you want to boot from it as a root partition)

Hi Patrick,

My question must not be clear. I already have raid0 set as -A root raid0.

Here is a live example where I try to add wd1 as a hot spare. I seem to be
able to get any two disks to be the raid0 set, but I cannot get any disk
to become a persistent hot spare:
root 27 # raidctl -v -s raid0
Components:
           /dev/wd0a: optimal
           /dev/wd2a: optimal
No spares.
Component label for /dev/wd0a:
   Row: 0, Column: 0, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 2014081612, Mod Counter: 1986949234
   Clean: No, Status: 0
   sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 234441472
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Yes
   Last configured as: raid0
Component label for /dev/wd2a:
   Row: 0, Column: 1, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 2014081612, Mod Counter: 1986949234
   Clean: No, Status: 0
   sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 234441472
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Yes
   Last configured as: raid0
Parity status: clean
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.
root 28 # raidctl -a /dev/wd1a raid0
root 29 # raidctl -v -s raid0
Components:
           /dev/wd0a: optimal
           /dev/wd2a: optimal
Spares:
           /dev/wd1a: spare
Component label for /dev/wd0a:
   Row: 0, Column: 0, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 2014081612, Mod Counter: 1986949234
   Clean: No, Status: 0
   sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 234441472
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Yes
   Last configured as: raid0
Component label for /dev/wd2a:
   Row: 0, Column: 1, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 2014081612, Mod Counter: 1986949234
   Clean: No, Status: 0
   sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 234441472
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Yes
   Last configured as: raid0
/dev/wd1a status is: spare.  Skipping label.
Parity status: clean
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.
root 30 # shutdown -r now
[reboot]
root 1 # raidctl -v -s raid0
Components:
           /dev/wd0a: optimal
           /dev/wd2a: optimal
No spares.
Component label for /dev/wd0a:
   Row: 0, Column: 0, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 2014081612, Mod Counter: 1986949244
   Clean: No, Status: 0
   sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 234441472
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Yes
   Last configured as: raid0
Component label for /dev/wd2a:
   Row: 0, Column: 1, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 2014081612, Mod Counter: 1986949244
   Clean: No, Status: 0
   sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 234441472
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Yes
   Last configured as: raid0
Parity status: clean
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.
************************

Note that the spare does not persist across the reboot.

How can I fix this?

thanks,
gene






Home | Main Index | Thread Index | Old Index