Hi Stephen,
At 22:24 09.03.99 -0600, you wrote:
>Here's my situation.
>
>I made a nice raid 5 with only two drives naively expecting to
>add the third non-raided disk later. Unfortunately I have no
>clue how to do that since I did the mkraid with nr-raid-disks set
>to 2.
Nope, you can't change the number of raid disks at a later time - would
change the size of the raid array and thus would nedd a new ext2 filesystem...
>> > 3) create a raid 1/4/5 array with the current root disk configuread as a
>> > failed disk.
>
>How do I configure it to know that a disk is failed?
1) apply the supplied patches to raidtools + kernel
2) install raidtools, build new kernel
3)
> device /dev/sda2
> failed-disk 2
>If I designate raid-disk 2 as the "failed" disk, when I do a
>mkraid, and the raid-disk 2 is my current non-raid /, wouldn't I
>see smoke, or does mkraid know about these things? I thought it
>would wipe out the partitions.
Nope, no smoke - by designating a device as failed in the raiddtab you
prevent the raidtools from accessing it, just as if the device had been
physically removed.
>> > 5) raidhotadd the original installation disk to the raid array.
Background
>> > reconstrunction starts and you get a clean raid array.
>
>Is raidhotadd still a valid command for raidtools-0.90?
Yes. After you have copied your system to the raid device and are running
with root mounted on /dev/md0 you must use
raidhotadd /dev/md0 /dev/sda2
to add your original installation disk to the raid array.
raidhotadd just adds the specified device to the array as a spare; as soon
as a spare is available the background reconstruction of the raid array
will start and the spare disk will replace the "failed" one after
reconstruction finishes. -> You end up with a healthy raid array configured
just like you wanted it.
Bye, Martin
"you have moved your mouse, please reboot to make this change take effect"
--------------------------------------------------
Martin Bene vox: +43-664-3251047
simon media fax: +43-316-813824-6
Andreas-Hofer-Platz 9 e-mail: [EMAIL PROTECTED]
8010 Graz, Austria
--------------------------------------------------
finger [EMAIL PROTECTED] for PGP public key