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.54) id 1FBFcW-0005rx-R8 for garchives@archives.gentoo.org; Mon, 20 Feb 2006 18:18:49 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1KIG5wP017969; Mon, 20 Feb 2006 18:16:05 GMT Received: from ender.volumehost.net (adsl-69-154-123-202.dsl.fyvlar.swbell.net [69.154.123.202]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k1KI4aSc026532 for ; Mon, 20 Feb 2006 18:04:37 GMT Received: from localhost (localhost [127.0.0.1]) by ender.volumehost.net (Postfix) with ESMTP id 0E28FCECA for ; Mon, 20 Feb 2006 18:04:36 +0000 (UTC) Received: from ender.volumehost.net ([127.0.0.1]) by localhost (ender.volumehost.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30064-05 for ; Mon, 20 Feb 2006 18:04:34 +0000 (UTC) Received: from monster (ip70-178-175-2.ks.ks.cox.net [70.178.175.2]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ender.volumehost.net (Postfix) with ESMTP id 4E21CCE67 for ; Mon, 20 Feb 2006 18:04:34 +0000 (UTC) From: "Boyd Stephen Smith Jr." To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] raid/partition question Date: Mon, 20 Feb 2006 12:04:29 -0600 User-Agent: KMail/1.9.1 References: In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602201204.29346.bss03@volumehost.com> X-Virus-Scanned: amavisd-new at volumehost.net X-Archives-Salt: 692540bd-5705-4793-b52c-2afc30bfcb8f X-Archives-Hash: 699ca005d037985eb7968605bce07774 On Monday 20 February 2006 09:57, "Nick Smith" wrote about '[gentoo-user] raid/partition question': > just wanted to ask before i mess something up. > i have booted off the install cd, created a raidtab with my mirrored > drives on it. i have created the raid. now, do i go in and setup the > partitions i want on that raid? or should i have done that before > creating the raid? so instead of having one big mirror and then > partitioning that, do i need to create my seperate partitions and then > mark them as "fd" and then create each raid seperate? I would suggest partitioning the drives identically, then using mdadm to create your raid devices. The reason I say this is because the kernel does not seem to have any room in the device node space for partitions on an md device. I could be wrong here; but I know partition and then build will work. If you'll look at the major/minor number of IDE devices, you'll see that hda and hdb have the same major, but the minor number on hdb is +64... thus this allows 63 recognized partitions / disk labels on an IDE device. (hda1 is +1 minor from hda, hda2 is +2, etc.; similarly for hdb) If you do the same investigation on SCSI/SATA devices, you'll see that sda and sdb have the same major number, but the minor number on sdb is +16... thus only 15 partitions / disk labels are recognized on a SCSI/SATA device. I do believe we recently had a member of gentoo-user run into this problem. (Switching to not using partitions as much will help; I prefer LVM LVs myself.) Finally, you can look at the software raid devices, you'll see that md0 and md1 have the same major number (9) and the minor number on md1 (1) is only +1 from the minor number on md0 (0). Due do this, I fear that the kernel may not properly recognize partitions / disk labels on software raid devices. It's entirely possible that partitions on software raid devices use a different major number and/or use dynamic minor numbers so partitioning the raid device may work -- I just can't recommend it because I don't know it'll work and I know partitioning first, then raid-ing the partitions does work. As the other poster said, be careful with how you treat your bootable partition. It must be a partition recognized by your bootloader, on a disk recognized by the BIOS / EMI, using a filesystem understood by your bootloader. If you use the old-style software raid (no superblock; by default mdadm does create a superblock), you can use raid 1 for boot, but each component partition should satisfy all the conditions for a bootable partition. -- Boyd Stephen Smith Jr. bss03@volumehost.com ICQ: 514984 YM/AIM: DaTwinkDaddy -- gentoo-user@gentoo.org mailing list