Simon Matter wrote:
> I did an install of XFS/RedHat on two IDE disks configured
> as RAID 1 the following way:
>
> /dev/md0 /
> /dev/md1 /boot
> /dev/md2 swap
>
> The first problem was that with the installer you can not
> create swap on RAID. Some time ago I read somewhere this can
> make troubles but I never had any using it on different
> servers for years (servers with very heavy swapping activity).
> The way around this problem is to create the swap partitions as
> swap when doing the install and later create the RAID with
> something like:
> swapoff -a
> use fdisk/cfdisk to change the partition type to FD
> edit /etc/raidtab and create the new entry fr the swap partition
> mkraid /dev/md? (or/and was it raidstart /dev/md?, sorry...)
> mkswap /dev/md?
> edit /dev/fstab to reflect the changes on swap
> swapon -a
>
> The second thing is that booting the system wasn't possible when
> the install was finished. Everybody knows now that with
> devfs=nomount as boot parameter, the system will boot but without
> devfs. I was wondering what really makes the troubles and I
> found it in the initrd image. Then I did the following:
> gunzip the initrd-XXXX.img
> mount it somewhere as loop
> edit the bootup script linuxrc:
> raidautostart /dev/md0 to raidautostart /dev/md/0
> unmounted initrd, gzipped it
> important step: mkdir /dev/md ; cp -a /dev/md0 /dev/md/0
> edit /etc/lilo.conf: root=/dev/md0 to root=/dev/md/0
> wrote new MBR with lilo
> rmoved the device with rm -r /dev/md
> rebooted the system
good catch...
You might want to try this patch to mkinitrd
it should rebuild your initrd correctly.
Check it before rebooting just to be sure.
--- mkinitrd~ Fri Mar 23 15:21:08 2001
+++ mkinitrd Wed May 9 10:22:14 2001
@@ -396,8 +396,9 @@
fi
if [ -n "$startraid" ]; then
- cp -a /dev/md0 $MNTIMAGE/dev
- echo "raidautorun /dev/md0" >> $RCFILE
+ mkdir $MNTIMAGE/dev/md
+ cp -a /dev/md/0 $MNTIMAGE/dev/md
+ echo "raidautorun /dev/md/0" >> $RCFILE
fi
chmod +x $RCFILE
>
>
> and voila, booting is fine with devfs enabled.
>
> --
> Simon Matter Tel: +41 61 695 57 35
> Fr.Sauter AG / CIT Fax: +41 61 695 53 30
> Im Surinam 55
> CH-4016 Basel [mailto:simon.matter@xxxxxxxxxxxxxxxx]
--
Russell Cattelan
--
Digital Elves inc. -- Currently on loan to SGI
Linux XFS core developer.
|