From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.50) id 1EWVSA-0003nl-6X for garchives@archives.gentoo.org; Mon, 31 Oct 2005 08:55:42 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j9V8sBYr015017; Mon, 31 Oct 2005 08:54:11 GMT Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j9V8sA6o027284 for ; Mon, 31 Oct 2005 08:54:10 GMT Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EWVOr-0007Ww-69 for gentoo-amd64@lists.gentoo.org; Mon, 31 Oct 2005 09:52:17 +0100 Received: from ip68-230-97-182.ph.ph.cox.net ([68.230.97.182]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Oct 2005 09:52:17 +0100 Received: from 1i5t5.duncan by ip68-230-97-182.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Oct 2005 09:52:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-amd64@lists.gentoo.org From: Duncan <1i5t5.duncan@cox.net> Subject: [gentoo-amd64] Re: Root on Raid and LVM Date: Mon, 31 Oct 2005 01:50:33 -0700 Organization: Sometimes Message-ID: References: <433F3135.5080708@internode.on.net> <433F4A28.5030708@internode.on.net> <433FDF0A.4090306@gmx.at> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ip68-230-97-182.ph.ph.cox.net User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table) Sender: news X-Archives-Salt: b1ff6646-2a1c-4662-8354-de8e9a1a77ec X-Archives-Hash: 0626bf9959eddff9f7656f4cd59f4f39 Florian D. posted <433FDF0A.4090306@gmx.at>, 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@gentoo.org mailing list