Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-amd64
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-amd64@g.o
From: Duncan <1i5t5.duncan@...>
Subject: Re: Root on Raid and LVM
Date: Mon, 31 Oct 2005 01:50:33 -0700
Florian D. posted <433FDF0A.4090306@...>, excerpted below,  on Sun, 02
Oct 2005 15:22:18 +0200:

> i cannot understand, how you got things working without an extra /boot 
> partition. the system needs initrd to start the LVM, right? but if 
> initrd itself is on the LVM...? very interesting ;-)

He didn't say he didn't have an extra boot.  He only enumerated the LVs
(logical volumes) on the MD/RAID, which he said was on sda5, sdb5, etc,
all partition 5, on /dev/md5.

The usual way to handle that, if you are booting from the RAID array
as well, is to create a small raid1 array out of small partitions toward
the front of each physical disk, for /boot. Being raid1 (mirrored), the
same data is imaged to all disks in the raid1 identically.  Both GRUB and
LILO can read individual disk partitions belonging to the mirror array as
if they were stand-alone partitions, so can boot from any of them, altho
they do boot from only one at a time.  The kernel and initrd are on this
boot array (so mirrored to each physical disk in the array), and can then
be loaded.  Root and other LVs are then created on the main VG (volume
group (or multiple groups) taking the rest of the disks, to be loaded from
the initrd.  Once /they/ are loaded, and the pivot_root to the main-root
on the main VG is accomplished, the raid1 array containing /boot can be
mounted, if desired.  (As usual, Gentoo keeps /boot unmounted by default.)

...  As some may guess, I've been studying this stuff recently!  =8^)  I
don't have my own RAID setup yet, but probably will by late this week.  (I
plan to go pickup the drives probably Tue or Wed.)

Of course, he didn't actually say /boot is on raid1, either.  It may be on
a conventional disk, perhaps manually backed up.  There is some clue that
there are extra partitions, however, and probably extra RAID volumes as
well, since both the partitions and the md's mentioned were #5.  Now, #5
is the first secondary partition in the extended partition, so there
wouldn't /have/ to be a 1-4.  However, there's likely at least an sdX1 on
all the disks, which would form the raid1 for /boot.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman in
http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html


-- 
gentoo-amd64@g.o mailing list


Replies:
Re: Re: Root on Raid and LVM
-- Florian D.
References:
Root on Raid and LVM
-- Chris S
Re: Root on Raid and LVM
-- Chris Smart
Re: Root on Raid and LVM
-- Florian D.
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Root on Raid and LVM
Next by thread:
Re: Re: Root on Raid and LVM
Previous by date:
Re: Root on Raid and LVM - Solved
Next by date:
2005.1 installcd mini can't be used as rescue cd ?


Updated Oct 31, 2011

Summary: Archive of the gentoo-amd64 mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.