[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Grub2 reinstall on raid1 system.



On Sat, Jan 22, 2011 at 8:24 AM, Jack Schneider <puck@dp-indexing.com> wrote:
> On Sat, 22 Jan 2011 04:54:32 -0500
> Tom H <tomh0665@gmail.com> wrote:
>
>> On Fri, Jan 21, 2011 at 8:51 PM, Jack Schneider
>> <puck@dp-indexing.com> wrote:
>> >
>> >  I think I found a significant glitch.. I appears that mdadm is
>> >  confused.  I think it happened when I created the /dev/md2 array
>> > from the new disks.  It looks like the metadata 1.2 vs 0.90 configs
>> > is the culprit...
>> >
>> > Here's the output of:
>> >
>> > mdadm --detail --scan:
>> > ARRAY /dev/md0 metadata=0.90
>> > UUID=e45b34d8:50614884:1f1d6a6a:d9c6914c ARRAY /dev/md1
>> > metadata=0.90 UUID=c06c0ea6:5780b170:ea2fd86a:09558bd1
>> >
>> > Here's the output of /etc/mdadm/mdadm.conf:
>> >
>> > DEVICE partitions
>> > CREATE owner=root group=disk mode=0660 auto=yes
>> > HOMEHOST <system>
>> > MAILADDR root
>> > ARRAY /dev/md/0 metadata=1.2
>> > UUID=f6de5584:d9dbce39:090f16ff:f795e54c name=hetzner:0
>> > ARRAY /dev/md/1 metadata=1.2
>> > UUID=0e065fee:15dea43e:f4ed7183:70d519bd name=hetzner:1
>> > ARRAY /dev/md/2 metadata=1.2
>> > UUID=ce4dd5a8:d8c2fdf4:4612713e:06047473 name=hetzner:2
>> >
>> > Given that the metadata from 0.90 & 1.2 cannot be on each  md0 and
>> > md1 at the same time. Although they are on different places on the
>> > disks IIRC.  Something needs to change...  I am thinking of an
>> > mdadm.conf edit. But there maybe an alternative tool or
>> > approach... ???? This was obtained using my Debian-live amd64
>> > rescue disk.
>>
>> Check your partitions' metadata with "mdadm --examine --scan
>> --config=partitions". Those'll be the settings that you'll need in
>> mdadm.conf.
>>
>>
> Thanks, Tom
>
> A couple of small ?s.  I can get the output of the command on the live
> file system and it appears  to make sense.   I am running on a
> debian-live amd64 O/S. The data has 4 arrays and I only have 3, there
> are two entries for the "new empty disks" /dev/md/2 and /dev/md127.
> They don't appear in /proc/mdstat, so they are not running.  Do I need
> to "kill them permanently" some how?  I need, I think, to get the info
> to the mdadm.conf on the "real" /dev/sda1 & /dev/sdc1 partitions.  Mount
> them on the live system and edit mdadm.conf???  When I reboot, I'll
> need the right info... chroot??

You're welcome.

I don't follow what you've said above.

Running the command that I pointed to earlier will output the mdadm
metadata in the superblocks of the partitions listed in
"/proc/partitions" irrespective of the system that you're booted into.

You had a question about one of your array's metadata version and some
of your arrays' minor number.

The mdadm.conf above has everything set as v1.2 when your original
array was v0.9

Was this mdadm.conf created while booted into a sidux/aptosid CD/DVD?
Does "--examine" also output hetzner as an array name?


Reply to: