linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Tor Arne Vestbø" <torarnv@gmail.com>
To: Neil Brown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: Linux RAID autodetect partitions go missing from /dev, but fdisk can see them
Date: Sun, 18 Jan 2009 18:51:38 +0100	[thread overview]
Message-ID: <49736C2A.3050108@gmail.com> (raw)
In-Reply-To: <18762.53424.819087.495066@notabene.brown>

Hi again,

Sorry for the delay (Christmas vacation, ++). I still have the problem
though.

My attempt to re-create /dev/sdb1 by fdisk'ing it again and adding it to
the array failed. That is, mdadm started re-constructing the array, and
that succeeded, but when I rebooted /dev/sdb1 was missing again :/

Neil Brown wrote:
> If a partition start at an offset in the device which is a multiple of
> 64K, and ends at the end of the device, then both the partition and
> the whole device will appear to have the same superblock.  This can
> cause confusion.

I think you are on to something here! I did partition all my disks with
just one partition, starting on the first block and taking up all the
remaining space, and set it to type Linux RAID auto detect.

Here's the output of the fdisk -pu and mdmadm -E commands before running
blockdev:

    http://pastebin.com/f4cad67ea

    http://pastebin.com/f34be2b86

It seems that mdadm thinks sd[bc] are part of the array directly
somehow, but for sd[def] the partition itself is in the array, which I
guess supports your suspicion?

Here's the output after running blockdev --rereadpt /dev/sdc :

   http://pastebin.com/f725ee0c3

Suddenly mdadm -E /dev/sdc* shows info for both sdc and sdc1, and guess
what? /dev/sdc1 is back as a device node :)

So is this a case of the problem you described about
superblock-confusion? If so, is it fixable?

Thank you so much for your help in this! I really do feel I'm one big
step closer to solving this!

Tor Arne

  parent reply	other threads:[~2009-01-18 17:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-10 20:56 Linux RAID autodetect partitions go missing from /dev, but fdisk can see them Tor Arne Vestbø
2008-12-16  3:27 ` Neil Brown
2008-12-18 22:03   ` Tor Arne Vestbø
2008-12-18 22:19     ` Tor Arne Vestbø
     [not found]     ` <18762.53424.819087.495066@notabene.brown>
2009-01-18 17:51       ` Tor Arne Vestbø [this message]
2009-01-19 16:18         ` Tor Arne Vestbø
2009-01-31 13:19         ` Tor Arne Vestbø
2009-01-31 18:50           ` Richard Scobie
2008-12-18 22:22   ` Tor Arne Vestbø
  -- strict thread matches above, loose matches on Subject: below --
2008-12-11  6:41 Tor Arne Vestbø

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=49736C2A.3050108@gmail.com \
    --to=torarnv@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /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).