Gentoo Archives: gentoo-desktop

From: Lindsay Haisley <fmouse-gentoo@×××.com>
To: gentoo-desktop@l.g.o
Subject: Re: [gentoo-desktop] System problems - some progress
Date: Thu, 24 Mar 2011 22:34:38
In Reply to: Re: [gentoo-desktop] System problems - some progress by Paul Hartman
Thanks, Paul.

On Thu, 2011-03-24 at 16:42 -0500, Paul Hartman wrote:
> 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.
Newer versions? Kernel 2.6.36 has a config option for RAID autodetect. What are you referring to here, mdadm? mdadm is at 2.6.8 on this box. If I upgrade to v3.1.4 will I lose the ability to autodetect the arrays, on which the system depends even on the 2.6.23 kernel on which I'm currently depending?
> 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
So I get: # mdadm --examine --brief --scan --config=partitions ARRAY /dev/md0 level=raid1 num-devices=2 UUID=d3176595:06cb3677:46406ca7:d12d146f ARRAY /dev/md1 level=raid1 num-devices=2 UUID=9463a434:24dbfcb6:a25ffb08:d8ab7c18 ... which is what I would expect. Does this mean that the UUID of the _array_ has been pushed onto the component drives? If so, why does the RAID assembly fail so miserably with kernel 2.6.36? I'm lost here. It looks to me, from the boot log, as if the problem is that there are _two_ partitions named /dev/sda1 and the RAID subsystem can't see the one that's a component of md0. /etc/mdadm.conf contains: DEVICE /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 ARRAY /dev/md0 devices=/dev/sda1,/dev/sdb1 ARRAY /dev/md1 devices=/dev/sdc1,/dev/sdd1
> Create a list of devices by reading /proc/partitions, scan these for > RAID superblocks, and printout a brief listing of all that were > found.
This gives me the UUIDs of the arrays, but my question here is whether I can spec the component devices using UUIDs, and I'm not finding any clear guidance on that. The mdadm man page talks about the former, but doesn't mention the latter. In other words, can I put into mdadm.conf a line such as the following: ARRAY /dev/md0 devices=UUID=d3176595-06cb-3677-4640-6ca7d12d146f,UUID=d3176595-06cb-3677-4640-6ca7d12d146f
> 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)
Finding the ARRAY UUIDs isn't the problem, it's assigning the array components using _their_ respective UUIDs. If I can do this, the problem may be solved. I don't know that this will work, I don't know that it won't. I have everything on the arrays, and the LVMs built on them, backed up. I probably should just try it and back out of it if it doesn't, since I don't see any potential for data loss if it fails, in which case the RAID arrays simply won't be built and I'll be dumped into the workable but not very useful non-RAID configuration. -- Lindsay Haisley | "The difference between a duck is because FMP Computer Services | one leg is both the same" 512-259-1190 | - Anonymous |


Subject Author
Re: [gentoo-desktop] System problems - some progress Lindsay Haisley <fmouse-gentoo@×××.com>
Re: [gentoo-desktop] System problems - some progress Paul Hartman <paul.hartman+gentoo@×××××.com>