From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 657391381F3 for ; Mon, 21 Oct 2013 08:24:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 36E2AE0ACC; Mon, 21 Oct 2013 08:24:25 +0000 (UTC) Received: from mercure.logifi.fr (mercure.logifi.fr [46.218.80.243]) by pigeon.gentoo.org (Postfix) with ESMTP id 26BDCE0A94 for ; Mon, 21 Oct 2013 08:24:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mercure.logifi.fr (Postfix) with ESMTP id 1A9A2480E1 for ; Mon, 21 Oct 2013 10:24:21 +0200 (CEST) X-Virus-Scanned: amavisd-new at mercure.logifi.fr Received: from mercure.logifi.fr ([127.0.0.1]) by localhost (mercure.logifi.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RZBigYZtHnZQ; Mon, 21 Oct 2013 10:24:20 +0200 (CEST) Received: from nicolas-desktop.logifi.fr (unknown [192.168.8.70]) by mercure.logifi.fr (Postfix) with ESMTPSA id A7C28480DD; Mon, 21 Oct 2013 10:24:20 +0200 (CEST) Date: Mon, 21 Oct 2013 10:24:26 +0200 From: Nicolas Sebrecht To: gentoo-user@lists.gentoo.org Cc: Nicolas Sebrecht Subject: [gentoo-user] Re: [O/T] RAID help - now won't boot Message-ID: <20131021082426.GC9207@nicolas-desktop.logifi.fr> References: <201310150834.21103.michaelkintzios@gmail.com> <5263DB18.6020409@hadt.biz> <30a1c0c8-79ea-4606-9961-c4c9e95a6d91@email.android.com> <201310210634.03012.michaelkintzios@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: 1914c9cd-5cd8-4ffb-8336-32027c0c53dc X-Archives-Hash: b7d9882778f7bab6aee0ce7b833b4e34 The 21/10/13, J. Roeleveld wrote: > Ha! Yes, this made a difference, thanks! With metadata 0.90 I can see the > same partitions I set up on /dev/md0, also on /dev/sda and /dev/sdb. Sorry to come back late in this thread. As other contributors pointed out correctly, the problem was RAID metadata at the beginning. > The only > problem now is that the Ubuntu server CD wants to format /dev/sda2 as swap and > fails at that stage. :-/ > > Not sure how to by-pass this. Yes. Most of the installers suck at that game. What I would do (already done this way) is: - install the disks in another machine with virtualization capacity; - create the RAID 1 (metadata=0.90); - create a virtual machine with the built RAID as single disk; - boot on the CD to install any distro; - move the disk out to the target bare metal machine; - update fstab and grub if needed. This has the advantage to not require to bypass the installer at some stage at the price of a temporary installation of the disks somewhere else. > I may > also try metadata=1.0 to see if this makes a difference, which also > positions the RAID data superblock at the end of the device: > > Sub-Version Superblock Position on Device > ----------- ----------------------------- > 0.9 At the end of the device > 1.0 At the end of the device > 1.1 At the beginning of the device > 1.2 4K from the beginning of the device > > To bypass the swap format you could try either deselecting the format > option (if it exists) or setting the partition type to something else. > The partition type can be set back to swap later from a livecd without > having to reinstall. > > Other option: > 1 install to single disk > > 2 using sysresccd create a degraded raid1 using the 2nd drive > > 3 copy the partitions and date from drive 1 to the degraded raid device What is "copy the date"? > 4 add disk 1 to the raid I might miss something but I guess you're going to erase the installed system (on disk 1) from the unused disk (disk 2), here. I believe it would only be possible by installing the system on the degraded RAID, which will likely mean coming back to the original swap problem. > 5 wait for the raid device is synchronized > > 6 change fstab and grub config to reflect the new disklayout -- Nicolas Sebrecht