Re: RAID1 root and swap and initrd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2006-12-15 19:14 +0000, Gordon Henderson wrote:
> On Fri, 15 Dec 2006, Andre Majorel wrote:
>
> >Can you use RAID1 devices for your root and swap with a "straight"
> >kernel ? (i.e. without the need for initrd/initramfs.)
> 
> Yes - but you need the md (and ide/scsi/sata) drivers compiled
> into your kernel, and make sure the parition types are 0xFD and
> trust the kernel auto-detection.
[...]
> >If that matters, the boot manager would be LILO and each MD device
> >would be assembled from "parallel" logical partitions.
> 
> Lilo is fine. Even kernel auto-detection is fine for me.

Thanks Jurriaan and Gordon. I think I may still be f*cked,
however. The Lilo doc says you can't use raid-extra-boot=mbr-only
if boot= does not point to a raid device. Which it doesn't because
in my setup, boot=/dev/sda.

Using boot=/dev/md5 would solve the raid-extra-boot issue but the
components of /dev/md5 are not primary partitions (/dev/sda5,
/dev/sdb5) so I don't think that would work.

I *could* run lilo once for each disk after tweaking boot= in
lilo.conf, or just supply a different -M option but I'm not sure.
The Lilo doc is not terribly enlightening. Not for me, anyway. :-)

> A nice little tip I learned from someone else on the list is to
> have your md devices named after the partition numbers. So:
> 
> md1 is /dev/hda1 and /dev/hdc1
> md2 is /dev/hda2 and /dev/hdc2

That's an improvement on what I was doing. Just "renumbered" my
devices that way (mdadm --assemble /dev/md8 -U super-minor
/dev/sda8 /dev/sdb8 ...). Thanks.

-- 
André Majorel <URL:http://www.teaser.fr/~amajorel/>
Do not use this account for regular correspondence.
See the URL above for contact information.
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux