Trying to do a root-raid installation for raid-1 without using extra
partitions would be nice:
1) Do a normal install to 1st disk
2) Install raid stuff, build & install raid kernel
3) Make the 2nd disk a raid-1 device with just one disk.
4) copy your complete installation over to the raid device, change lilo to
boot off raid.
5) now add the installation disk to your raid device using raidhotadd.
Unfortunately, This doesn't work for (at least) two reasons:
1) You can't create a raid-1 device with one disk in the first place; this
can be fixed with your patch:
At 10:28 21.01.99 +0100, you wrote:
>does it work if you change this line in raid1.c:
> if ((conf->raid_disks > 1) && !start_recovery && !(sb->state & (1
> << MD_SB_CLEAN)))
2) if you hotadd a second disk to your md device it just gets added as a
spare disk.
Looking at the source in raid1.c I think I'll first have to increment
nr_disks so I get a raid device with two mirrors. (currently just checking
for nr_disks==1 in RAID_HOT_ADD code). Next I must convince raid1syncd
thread to activate the spare disk and synchronize it to the existing one -
and I haven't yet figured out how to do this. Add a failed "phantom" raid
disk before the spare one so the activate_spare stuff can work aus usual?
Any ideas?
Bye, Martin
--------------------------------------------------
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