Subject: more RAID questions
To: None <netbsd-help@netbsd.org>
From: Chris Jones <chris@cjones.org>
List: netbsd-help
Date: 05/17/2001 10:58:02
--m1UC1K4AOz1Ywdkx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
I have my RAID 5 array working nicely now, but there's a lingering
quirk. When I created it, I only had 2 out of 3 components online.
Then I transferred data onto it and added the third component. Then I
did:
raidctl -a /dev/sd4e raid1
raidctl -F component2 raid1
So it added the third component (sd4e) as a spare, and it failed the
mythical component2 and did a reconstruction onto sd4e. I also
rebuilt the parity after this, using raidctl -P. But now I have this:
gamera# raidctl -s raid1
Components:
/dev/sd2e: optimal
/dev/sd3e: optimal
component2: spared
Spares:
/dev/sd4e: used_spare
How do I get sd4e to be a component, rather than a spare?
The last time I rebooted, it came up again in degraded mode, with
component2. So I had to re-do the reconstruction.
This array is in auto-configure mode, also; does that have something
to do with the trouble here? It almost sounds like I need to:
raidctl -A no raid1
edit /etc/raid1.conf
raidctl -u raid1
raidctl -c /etc/raid1.conf raid1
raidctl -A yes raid1
Is that right? (Actually, raid1.conf already has the right data in
it, so I shouldn't have to edit anything. Here's the contents of the
file:)
--------------------------------------------
START array
1 3 0
START disks
/dev/sd2e
/dev/sd3e
/dev/sd4e
START layout
# sectPerSU SUsPerParityUnit SUsPerReconUnit RAID_level
32 1 1 5
START queue
fifo 100
--------------------------------------------
Thanks in advance for any help.
Chris
--=20
---------------------------------------------------- chris@cjones.org
Chris Jones Mad scientist at large
www.netbsd.org www.postgresql.org www.schemers.org www.python.org
--m1UC1K4AOz1Ywdkx
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (NetBSD)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjsEAxoACgkQDPY2T8RzaD+1owCggleYlsSmLI9N5CkafsCw3xCL
WvAAoI2aoEwsdN8JlRIh+/brgHiS7Nb+
=r2Mp
-----END PGP SIGNATURE-----
--m1UC1K4AOz1Ywdkx--