>> Raidhotadd just adds the devices as spare disks,
>
>Does one have to manually update /etc/raidtab to show which disks are now
>"spare" and which are the main disks ?
raidhotadd doesn't consult the raidtab file, all the info it needs is
contained in the raid superblock. Since the disk you add gets used right
away the info in /etc/raidtab should be correct (after reconstruction
finishes).
So: If the new disk is on a different device than the failed one, I'd
update raidtab at some point to keep info consistent; the file will be
consulted for manual raidstart / raidstop operations.
>It fails when I try it :-(
Do you get any info in the syslog when it failes?
>> No. There is however another way to do this: use the "root raid install
>> patches" (posted last week, see archive at
>
>Ta -- but I already *HAVE* the data -- I want to make it RAID1 ...
Yes. Creating the raid device in degraded state allows you to have your
original disk and the raid device at the same time without interfering with
each other. Now you can copy your system over to the raid device, restart
and finish by raidhotadding your old root device as the 2nd disk to the
raid device.
you start with
a) /dev/sda1 -> ext2fs, mounted as /
/dev/sdb1 -> new, empty disk
next, install raid stuff, create raid mirror with /dev/sda1 entered as
"failed-disk" in raidtab
copy your system to the raid device
b) /dev/sda1 -> ext2fs, mounted as /
/dev/sdb1 -> disk1 in /dev/md0
/dev/sda1 -> disk2 in /dev/md0 NOT accessed by raid
/dev/md0 -> ext2fs, mounted as /mnt
now reboot with root on /dev/md0
c) /dev/sda1 -> not mounted
/dev/sdb1 -> disk1 in /dev/md0
/dev/md0 -> ext2fs, mounted as /
and finish by raidhotadding /dev/md0 /dev/sda1
d) /dev/sda1 -> disk2 in /dev/md0
/dev/sdb1 -> disk1 in /dev/md0
/dev/md0 -> ext2fs, mounted as /
>Also, how do I add a persistent super block to an old linear or RAID0 FS ?
Sorry, don't know if this can be done.
>Does anyone have utilities to peek/poke SBs ?
>If not, should I write private perl scripts to do the HACKs I want, or
should
>I write some C code to contribute to the package -- or would it be too
>dangerous to let loose ? Things like:
you can find out quite a lot by doing a mkraid --debug. This will dump your
current raid setup to syslog.
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