public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Nicolas Sebrecht <nsebrecht@piing.fr>
To: gentoo-user@lists.gentoo.org
Cc: Nicolas Sebrecht <nsebrecht@piing.fr>
Subject: [gentoo-user] Re: [O/T] RAID help - now won't boot
Date: Mon, 21 Oct 2013 10:24:26 +0200	[thread overview]
Message-ID: <20131021082426.GC9207@nicolas-desktop.logifi.fr> (raw)
In-Reply-To: <f7128647-4302-4436-9671-bc5d9cdbd674@email.android.com>

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


  reply	other threads:[~2013-10-21  8:24 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-15  7:34 [gentoo-user] RAID help Mick
2013-10-15 19:28 ` Paul Hartman
2013-10-15 21:42   ` Mick
2013-10-16 18:10     ` [gentoo-user] " Nicolas Sebrecht
2013-10-16 20:14       ` Nicolas Sebrecht
2013-10-17  5:33         ` Mick
2013-10-20  9:54         ` [gentoo-user] Re: [O/T] RAID help - now won't boot Mick
2013-10-20 12:57           ` Michael Hampicke
2013-10-20 13:13             ` Mick
2013-10-20 13:31               ` Michael Hampicke
2013-10-20 14:31                 ` joost
2013-10-21  5:33                   ` Mick
2013-10-21  5:59                     ` J. Roeleveld
2013-10-21  8:24                       ` Nicolas Sebrecht [this message]
2013-10-21  8:55                         ` J. Roeleveld
2013-10-21 21:42                           ` Mick
2013-10-22  7:10                             ` Nicolas Sebrecht
2013-10-24 18:53                               ` Mick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131021082426.GC9207@nicolas-desktop.logifi.fr \
    --to=nsebrecht@piing.fr \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox