xfs
[Top] [All Lists]

XFS on md (RAID1) with devfs fixed

To: linux-xfs <linux-xfs@xxxxxxxxxxx>
Subject: XFS on md (RAID1) with devfs fixed
From: Simon Matter <simon.matter@xxxxxxxxxxxxxxxx>
Date: Wed, 09 May 2001 08:29:14 +0200
>received: from mobile.sauter-bc.com (unknown [10.1.6.21]) by basel1.sauter-bc.com (Postfix) with ESMTP id 5245D57306 for <linux-xfs@xxxxxxxxxxx>; Wed, 9 May 2001 08:34:53 +0200 (CEST)
Organization: Sauter AG, Basel
Sender: owner-linux-xfs@xxxxxxxxxxx
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

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]



<Prev in Thread] Current Thread [Next in Thread>