From: Pavel Hofman <pavel.hofman@ivitera.com>
To: NeilBrown <neilb@suse.de>
Cc: linux RAID <linux-raid@vger.kernel.org>
Subject: Re: How to update homehost of an existing raid component
Date: Mon, 19 Mar 2012 22:37:17 +0100 [thread overview]
Message-ID: <4F67A70D.1020301@ivitera.com> (raw)
In-Reply-To: <20120320082828.0937662d@notabene.brown>
Dne 19.3.2012 22:28, NeilBrown napsal(a):
> On Mon, 19 Mar 2012 10:58:57 +0100 Pavel Hofman <pavel.hofman@ivitera.com>
> wrote:
>
>> Hi,
>>
>> Please is there a way to update a homehost value for a specific raid
>> component?
>>
>> md7 is raid1 composed of md5 and md6. UUID of md7 is listed in mdadm.conf:
>>
>> ARRAY /dev/md7 level=raid1 num-devices=2 metadata=01.00
>> UUID=dde16cd5:2e17c743:fcc7926c:fcf5081e
>>
>>
>> Every time I reboot, md7 is auto assembled only from md5. When running
>> manually, I get
>>
>> mdadm --verbose -A /dev/md7 --scan
>> ...
>> mdadm: /dev/md6 misses out due to wrong homehost
>> ...
>>
>
> There is something very strange here.
> md5 and md6 look to some extent like different parts of the same RAID1.
> They have the same Array UUID, the same "Update Time" and the same "Events"
> counter.
> However they have different "Creation Time" (19/Jan/2011 vs 17/Jun/2010) and
> different names ("orfeus:7" vs "'orpheus':7").
>
> I cannot imagine how that would happen.
>
> mdadm notices they are different so it cannot use them both. It chooses md5
> over md6 as md5 has the 'correct' homehost name.
>
> Your best bet would be to re-create the array so it gets good clean metadata.
>
> mdadm -S /dev/md7
> mdadm -C /dev/md7 -l1 -n2 --assume-clean --metadata=1.0 /dev/md6 /dev/md5
>
> should do it. If you want to keep the same uuid, add
> --uuid=dde16cd5:2e17c743:fcc7926c:fcf5081e
>
Neil, thanks a lot for your help. The command worked fine, now both md5
and md6 have the same name.
Regards,
Pavel.
prev parent reply other threads:[~2012-03-19 21:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-19 9:58 How to update homehost of an existing raid component Pavel Hofman
2012-03-19 16:46 ` John Robinson
2012-03-19 20:21 ` Pavel Hofman
2012-03-19 21:28 ` NeilBrown
2012-03-19 21:37 ` Pavel Hofman [this message]
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=4F67A70D.1020301@ivitera.com \
--to=pavel.hofman@ivitera.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).