linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: maarten <maarten@ultratux.net>
To: linux-raid@vger.kernel.org
Subject: Re: combining two raid systems
Date: Fri, 14 Jan 2005 04:09:02 +0100	[thread overview]
Message-ID: <200501140409.02405.maarten@ultratux.net> (raw)
In-Reply-To: <16871.11256.955469.266210@cse.unsw.edu.au>

On Friday 14 January 2005 03:18, Neil Brown wrote:
> On Thursday January 13, maarten@ultratux.net wrote:

> > All md arrays are self-booting 0xFD partitions.

> > Now when I boot I get a lilo prompt, so I know the right disk is booted
> > by the BIOS.  When logged in, I see only the md devices from system two,
> > and thus the current md0 "/" drive is from system two.  Now what options
> > do I have ?
>
> This is exactly why I despise auto-detect (0xFD partitions). When it
> works, it works well, but when it doesn't it causes real problems.

Ah.  I really liked it but maybe that only stems from pre-mdadm time.
I think the howto might not reflect this, but then again it's been a while 
since I looked at it.  In this case it had me stumped for a while, indeed.

> You seem to have solved a lot of your problems based on subsequent

Yep, in fact, all of them.  The 2-hour resync time has elapsed and grub (oh 
praise) worked right off the bat this time around :-))
(Except for the intel e1000 problem but I postponed that eventually, I'm now 
using the onboard 8139too again for a while.)

> emails, but the simplest approach would be to remove the 0xFD setting
> on all partitions except those for the root filesystem.
> Once you have done that, you should be able to boot fine, though only
> the root array will be assembled of course.

Obviously, but at that point that is not a drawback, maybe even the opposite.
It depends whether you have /usr or /var on raid, but I have only data arrays.

> Then something  like
>   mdadm -E -s -c partitions

Eh, that translates to 'mdadm --examine --scan --config', right ?
(oh wait, NOW I understand what the manpage says there...!!
I interpreted 'partitions' as something else... Hum.)

> will cause mdadm to find all your arrays and report information about
> them.
> (mdadm -Ds, as you were trying, only reports assembled arrays. You
> want '-E' to find arrays make of devices that aren't currently
> assembled).
>
> Put this information into mdadm.conf and edit out the bits you don't
> want leaving something like:
>
>   DEVICES partitions
>   ARRAY /dev/md1 UUID=....
>   ARRAY /dev/md2 UUID=.....
>   etc

...And leave out the physical devices?  In a way that makes sense since [my] 
drives get mixed all the time somehow anyway, but...
So if I understand correctly, when 0xFD is not set anymore, mdadm needs this 
configfile, but if you use 0xFD partitions the file is more or less unused ? 
I noted that a lot of the modern linux distribs don't even create it...

> Then
>    mdadm -As
>
> will assemble the rest of your arrays.

Oh, nice.  Didn't know that.

> You also wondered about "personality" numbers.
> A "personality" corresponds to a module that handles 1 or more raid
> levels.
> Personality 3 handles raid1
> Personality 4 handles raid5 and raid4

Yes, I later realized that the md scanning happens twice.  At first the kernel 
scans devices, groups them, prepares to assemble and start them and 
_only_then_ realizes it has no raid-X support available.  So then the 
bootprocess continues, goes on to loading the initrd (which contain those 
raid personalities) and the scanning starts anew, this time successfully.
Why at that point the devices found earlier on are not started first is 
strange, but that might just be a race condition between the two "md0" arrays 
so that is not very important.

> NeilBrown

Thanks Neil !   It is much clearer now. :)

Maarten


      reply	other threads:[~2005-01-14  3:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-13 19:17 combining two raid systems maarten
2005-01-13 19:57 ` maarten
     [not found] ` <1105645254.3390.12.camel@south.rosestar.lan>
2005-01-13 20:27   ` maarten
2005-01-13 21:22     ` Derek Piper
2005-01-13 22:30       ` maarten
2005-01-13 23:04       ` Guy
2005-01-14 10:03         ` Robin Bowes
2005-01-13 23:46 ` berk walker
2005-01-14  1:01   ` maarten
2005-01-14  2:18 ` Neil Brown
2005-01-14  3:09   ` maarten [this message]

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=200501140409.02405.maarten@ultratux.net \
    --to=maarten@ultratux.net \
    --cc=linux-raid@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).