balug-bootable_software_raid

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



To: Balug <balug-talk@balug.org>
From: "David L. Sifry" <dsifry@sputnik.com>
Subject: [Balug-talk] Booting onto software RAID-1?
Date: 02 Mar 2002 01:44:54 -0800

--=-wCkRxUB1cFaiM/x8DAbj
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Has anyone out there actually gotten a bootable system that uses
Software RAID?

I've tried RTFM, but the Software-RAID HOWTO
<http://www.linuxdoc.org/HOWTO/Software-RAID-HOWTO.html> hasn't been
updated since 1/19/2000, and the Boot + Root + Raid + Lilo : Software
Raid HOWTO <http://www.linuxdoc.org/HOWTO/Boot+Root+Raid+LILO.html>
hasn't been updated since 7/20/2000.  There's got to be a lot of changes
in the past 2 years.

I've followed the instructions, but I end up with a system that is
completely hosed. =20

Any pointers to better documentation would be greatly appreciated!

Thanks.

===
To: "David L. Sifry" <dsifry@sputnik.com>
From: Marc MERLIN <marc_news@vasoftware.com>
Subject: Re: [Balug-talk] Booting onto software RAID-1?
Date: Sat, 2 Mar 2002 08:13:27 -0800

On Sat, Mar 02, 2002 at 01:44:54AM -0800, David L. Sifry wrote:
> Has anyone out there actually gotten a bootable system that uses
> Software RAID?

Yep, I have many in production.

The only "trick" is to have lilo configured as such:
boot=/dev/md0
root=/dev/md0

Running lilo then gives you:
gargamel:~# lilo
boot = /dev/sda, map = /boot/map.0801
Added linux *
Added linuxold
Added linuxsafe
Added linuxsafeold
boot = /dev/sdb, map = /boot/map.0811
Added linux *
Added linuxold
Added linuxsafe
Added linuxsafeold

On that machine, I have:
gargamel:~# mount
/dev/md0 on / type ext3 (rw)
proc on /proc type proc (rw)
/dev/md1 on /safe type ext3 (ro)
/dev/BootSWRaid5/usr on /usr type ext3 (rw)
/dev/BootSWRaid5/var on /var type ext3 (rw)
/dev/BootSWRaid5/home on /home type ext3 (rw)
/dev/Eurologic1SWRaid5/media1 on /home/bigraid1 type ext3 (rw)

gargamel:~# cat /proc/mdstat 
Personalities : [linear] [raid0] [raid1] [raid5] 
read_ahead 1024 sectors
md0 : active raid1 scsi/host0/bus0/target1/lun0/part1[1] scsi/host0/bus0/target0/lun0/part1[0]
      131968 blocks [2/2] [UU]
      
md1 : active raid1 scsi/host0/bus0/target1/lun0/part2[1] scsi/host0/bus0/target0/lun0/part2[0]
      132032 blocks [2/2] [UU]
      
md2 : active raid5 scsi/host0/bus0/target1/lun0/part3[1] scsi/host0/bus0/target10/lun0/part3[4] scsi/host0/bus0/target4/lun0/part3[3] scsi/host0/bus0/target3/lun0/part3[2] scsi/host0/bus0/target0/lun0/part3[0]
      142315264 blocks level 5, 32k chunk, algorithm 0 [5/5] [UUUUU]
      
md3 : active raid0 scsi/host0/bus0/target10/lun0/part4[7] scsi/host0/bus0/target10/lun0/part2[5] scsi/host0/bus0/target10/lun0/part1[2] scsi/host0/bus0/target4/lun0/part4[6] scsi/host0/bus0/target4/lun0/part2[4] scsi/host0/bus0/target4/lun0/part1[1] scsi/host0/bus0/target3/lun0/part2[3] scsi/host0/bus0/target3/lun0/part1[0]
      1310016 blocks 4k chunks
      
md5 : active raid5 scsi/host1/bus0/target5/lun0/part1[5] scsi/host1/bus0/target6/lun0/part1[6] scsi/host1/bus0/target4/lun0/part1[4] scsi/host1/bus0/target3/lun0/part1[3] scsi/host1/bus0/target2/lun0/part1[2] scsi/host1/bus0/target1/lun0/part1[1] scsi/host1/bus0/target0/lun0/part1[0]
      430091520 blocks level 5, 32k chunk, algorithm 0 [7/7] [UUUUUUU]


===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu