From: Doug Ledford <dledford@redhat.com>
To: Jim Santos <iluvgadgets@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: "Missing" RAID devices
Date: Tue, 21 May 2013 12:23:40 -0400 [thread overview]
Message-ID: <519B9F8C.3080104@redhat.com> (raw)
In-Reply-To: <CAGPLN=viGgdw0MM18tiNxwjNadg0cj8xjntW3ne1qMNkfgocaA@mail.gmail.com>
On 05/21/2013 08:51 AM, Jim Santos wrote:
> santos@bender:/etc/mdadm$ sudo mdadm --examine /dev/sda7
>
> /dev/sda7:
> Magic : a92b4efc
> Version : 0.90.00
^^^^^^^
There's your problem. Seriously.
> Preferred Minor : 126
So, how did you ever get version 0.90 superblocks that count from 127
backwards? Mdadm doesn't do that. In fact, mdadm relies on you *not*
doing that.
Here's the deal. When you use version 0.90 superblocks, the number is
taken from the superminor field, usually starting at 0 and counting up,
and the device file is then /dev/md<number>. With version 1.x
superblocks, we care about the name of the device, not the number, and
the name is taken from the name field of the superblock, and we create
the device as /dev/md/<name>. However, when this support was added, the
kernel didn't support named elements (aka, you couldn't have a md/root
device in the kernel namespace, it needed to be md<number>), so the
/dev/md/<name> file is actually a symlink to a /dev/md<number> file, and
we would allocate from 127 and count backwards so that they would be as
unlikely as possible to conflict with numbered names from version 0.90
superblocks.
You are running into that impossible conflict. I would remake all of
your version 0.90 raid arrays as version 1.0 raid arrays (the superblock
should sit in the exact same space and the arrays should be the same
size, but I can't say that for certain because newer mdadm might reserve
more space between the end of the filesystem and the superblock than
older mdadm did, so a test would be necessary first), and in the process
I would give them all names, and then I would totally eliminate all
references to /dev/md<number> in your system setup and stick with just
/dev/md/<name> for everything, and then I would remake your initrd and
be done with it all.
next prev parent reply other threads:[~2013-05-21 16:23 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-21 12:51 "Missing" RAID devices Jim Santos
2013-05-21 15:31 ` Phil Turmel
2013-05-21 22:22 ` Jim Santos
2013-05-22 0:02 ` Phil Turmel
2013-05-22 0:16 ` Jim Santos
2013-05-22 22:43 ` Stan Hoeppner
2013-05-22 23:26 ` Phil Turmel
2013-05-23 5:59 ` Stan Hoeppner
2013-05-23 8:30 ` keld
2013-05-24 3:45 ` Stan Hoeppner
2013-05-24 6:32 ` keld
2013-05-24 7:37 ` Stan Hoeppner
2013-05-24 17:15 ` keld
2013-05-24 19:05 ` Stan Hoeppner
2013-05-24 19:22 ` keld
2013-05-25 1:42 ` Stan Hoeppner
2013-05-24 9:23 ` David Brown
2013-05-24 18:03 ` keld
2013-05-23 8:22 ` David Brown
2013-05-21 16:23 ` Doug Ledford [this message]
2013-05-21 17:03 ` Drew
[not found] ` <519BDC8C.1040202@hardwarefreak.com>
2013-05-21 21:02 ` Drew
2013-05-21 22:06 ` Stan Hoeppner
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=519B9F8C.3080104@redhat.com \
--to=dledford@redhat.com \
--cc=iluvgadgets@gmail.com \
--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).