public inbox for gentoo-desktop@lists.gentoo.org
 help / color / mirror / Atom feed
From: Paul Hartman <paul.hartman+gentoo@gmail.com>
To: gentoo-desktop@lists.gentoo.org
Subject: Re: [gentoo-desktop] System problems - some progress
Date: Thu, 24 Mar 2011 16:42:17 -0500	[thread overview]
Message-ID: <AANLkTim_TT2zEajqP0w+qtv9OEViwGebDV5-fKUesJxf@mail.gmail.com> (raw)
In-Reply-To: <1300999110.8052.287.camel@vishnu.fmp.com>

On Thu, Mar 24, 2011 at 3:38 PM, Lindsay Haisley <fmouse-gentoo@fmp.com> wrote:
> On Thu, 2011-03-24 at 15:15 -0500, Paul Hartman wrote:
>> On Thu, Mar 24, 2011 at 1:16 PM, Lindsay Haisley <fmouse-gentoo@fmp.com> wrote:
>> > The root of this problem is that on the old kernel, there are both
>> > a /dev/hda1 and a /dev/sda1.  The former is a partition on an old PATA
>> > drive, while the latter is a proper component of md0, but when
>> > everything becomes /dev/sdNx, there's an obvious conflict and the RAID
>> > subsystem is getting confused and is obviously not seeing it's sda1.
>>
>> Possible alternative is to disable raid autodetection and define the
>> arrays by UUID in /etc/mdadm.conf so hopefully the device names become
>> irrelevant at that point.
>
> This is a good idea.  I can turn off RAID autodetection in the kernel
> config and spec RAID1 instead, since the root fs isn't on a RAID array.
>
> I've found a number of references to putting UUIDs in ARRAY lines
> in /etc/mdadm.conf to define the UUID of an array, but none yet to using
> UUID specs in DEVICE lines, all of which I've found so far in the online
> literature use /dev/xxxx specs.  Before I take this step I'm going to
> find a more kernel-specific list and ask if this would be appropriate.
> I've tripped on RAID array errors before at the expense of days of work
> to reconstitute systems and their data.  I want to make sure this is
> kosher before I go there.

I was actually referring to the ARRAY lines and the array UUIDs. In
fact I don't even have a DEVICE line, man mdadm.conf says:
If no DEVICE line is present, then "DEVICE partitions containers" is assumed.

My mdadm.conf only contains 2 ARRAY lines, for my 2 raid arrays. I
also specify the metadata version, I assume you're using superblock
0.90 since you've been using autodetect and autodetect isn't supported
for newer versions.

So, mdadm scans all partitions (doesn't matter what they are named)
looking for superblocks containing the UUID of the arrays I specified.
Anything that doesn't match gets ignored for this purpose.

The mdadm manpage has this example command:

 mdadm --examine --brief --scan --config=partitions
Create a list of devices by reading /proc/partitions, scan these for
RAID superblocks, and printout a  brief listing of all that were
found.

Hopefully you can find your array UUIDs with that command (and if it
finds them, that's a good sign for it's ability to assemble the arrays
once the config file is made)

Good luck :)



  reply	other threads:[~2011-03-24 21:43 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-20  4:46 [gentoo-desktop] System problems Lindsay Haisley
2011-03-20  8:24 ` Jean-Marc Beaune
2011-03-20  9:40   ` Brent Busby
2011-03-20 16:36   ` Lindsay Haisley
2011-03-21  2:13     ` Donnie Berkholz
2011-03-21  2:38       ` Lindsay Haisley
2011-03-21  5:22         ` Brent Busby
2011-03-22 21:35         ` Donnie Berkholz
2011-03-20  8:50 ` Roman Zilka
2011-03-20 16:08   ` Lindsay Haisley
2011-03-20 23:10     ` Roman Zilka
2011-03-20 23:19       ` Roman Zilka
2011-03-21  1:57       ` Lindsay Haisley
2011-03-21  2:39         ` Dale
2011-03-21  3:36           ` Lindsay Haisley
2011-03-21  8:57         ` Roman Zilka
2011-03-21 16:18           ` Lindsay Haisley
2011-03-21 17:09             ` Lindsay Haisley
2011-03-21 20:08             ` eamjr56
2011-03-21 22:24               ` Lindsay Haisley
2011-03-21 22:35                 ` Tiago Marques
2011-03-21 22:44                   ` Lindsay Haisley
2011-03-22  7:07                     ` [gentoo-desktop] " Duncan
2011-03-22 15:41                       ` Lindsay Haisley
2011-03-22 19:15                         ` Duncan
2011-03-22 21:42                           ` Lindsay Haisley
2011-03-22 21:49                           ` Lindsay Haisley
2011-03-23  2:02                             ` Lindsay Haisley
2011-03-21 22:38                 ` [gentoo-desktop] " Lindsay Haisley
2011-03-22 10:38                   ` Roman Zilka
2011-03-21 22:42                 ` eamjr56
2011-03-21 22:46                 ` Dale
2011-03-22  1:37                   ` Jorge Manuel B. S. Vicetto
2011-03-22  2:31                     ` Lindsay Haisley
2011-03-22  7:43                       ` eamjr56
2011-03-22 16:35                         ` Lindsay Haisley
2011-03-22 17:00                           ` Paul Hartman
2011-03-22 19:48                             ` Nicholas E. Andrade
2011-03-22 21:11                               ` Lindsay Haisley
2011-03-22 19:51                           ` eamjr56
     [not found]                     ` <1300760981.11877.222.camel@vishnu.fmp.com>
2011-03-22  2:55                       ` Jorge Manuel B. S. Vicetto
2011-03-24 18:16                     ` [gentoo-desktop] System problems - some progress Lindsay Haisley
2011-03-24 19:15                       ` Edward Martinez
2011-03-24 19:44                         ` Lindsay Haisley
2011-03-24 20:17                           ` Edward Martinez
2011-03-24 20:55                             ` Lindsay Haisley
2011-03-24 20:15                       ` Paul Hartman
2011-03-24 20:38                         ` Lindsay Haisley
2011-03-24 21:42                           ` Paul Hartman [this message]
2011-03-24 22:33                             ` Lindsay Haisley
2011-03-24 22:51                               ` Lindsay Haisley
2011-03-24 23:20                               ` Paul Hartman
2011-03-25  0:12                                 ` Lindsay Haisley
2011-03-25  2:10                                 ` Lindsay Haisley
2011-03-25  8:57                                   ` [gentoo-desktop] " Duncan
2011-03-25 12:48                                     ` Lindsay Haisley
2011-03-25 22:59                                       ` Duncan
2011-03-26  2:46                                         ` Lindsay Haisley
2011-03-26  8:40                                           ` Duncan
2011-03-26 15:57                                             ` Lindsay Haisley
2011-04-01  3:22                                               ` Duncan
2011-03-20 23:59     ` [gentoo-desktop] System problems eamjr56
2011-03-21  0:50       ` Lindsay Haisley
2011-03-21  2:46       ` Lindsay Haisley
2011-03-20  9:32 ` [gentoo-desktop] " Duncan
2011-03-20 16:50   ` Lindsay Haisley
2011-03-20 18:48     ` Lindsay Haisley
2011-03-20 21:51       ` Duncan
2011-03-23 12:39 ` [gentoo-desktop] " James Cloos
2011-03-23 17:29   ` Lindsay Haisley
2011-03-23 17:53     ` Dale

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=AANLkTim_TT2zEajqP0w+qtv9OEViwGebDV5-fKUesJxf@mail.gmail.com \
    --to=paul.hartman+gentoo@gmail.com \
    --cc=gentoo-desktop@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