From: Pavel Hofman <pavel.hofman@ivitera.com>
To: John Robinson <john.robinson@anonymous.org.uk>
Cc: linux RAID <linux-raid@vger.kernel.org>
Subject: Re: How to update homehost of an existing raid component
Date: Mon, 19 Mar 2012 21:21:01 +0100 [thread overview]
Message-ID: <4F67952D.80304@ivitera.com> (raw)
In-Reply-To: <4F6762D6.7040602@anonymous.org.uk>
Dne 19.3.2012 17:46, John Robinson napsal(a):
> On 19/03/2012 09:58, Pavel Hofman wrote:
>> Hi,
>>
>> Please is there a way to update a homehost value for a specific raid
>> component?
>
> I don't think you need to.
>
> [...]
>> mdadm --verbose -A /dev/md7 --update=homehost --scan
>>
>> with no difference. Unfortunately I was not able to find how to change
>> the homehost of md6 to be local to orfeus. I do not want to force adding
>> md6 to the array and go through the whole rebuild since the data
>> themselves are OK.
>
>
Hi John,
Thanks a lot for your answer. Unfortunately both commands keep returning
the same result:
orfeus:~# mdadm --verbose --assemble /dev/md7 --update=homehost /dev/md5
/dev/md6
mdadm: looking for devices for /dev/md7
mdadm: /dev/md6 misses out due to wrong homehost
mdadm: /dev/md5 is identified as a member of /dev/md7, slot 1.
mdadm: no uptodate device for slot 0 of /dev/md7
mdadm: added /dev/md5 to /dev/md7 as 1
mdadm: /dev/md7 assembled from 1 drive - need all 2 to start it (use
--run to insist).
>
> And if that doesn't do the business, specify --homehost=orfeus
orfeus:~# mdadm --verbose --assemble /dev/md7 --update=homehost
--homehost=orfeus /dev/md5 /dev/md6
mdadm: looking for devices for /dev/md7
mdadm: /dev/md6 misses out due to wrong homehost
mdadm: /dev/md5 is identified as a member of /dev/md7, slot 1.
mdadm: no uptodate device for slot 0 of /dev/md7
mdadm: added /dev/md5 to /dev/md7 as 1
mdadm: /dev/md7 assembled from 1 drive - need all 2 to start it (use
--run to insist).
orfeus:~# mdadm --version
mdadm - v3.1.4 - 31st August 2010
orfeus:~# uname -a
Linux orfeus 2.6.26-bpo.1-amd64 #1 SMP Sat Sep 20 10:26:59 UTC 2008
x86_64 GNU/Linux
Since I need the server working (it is a company central backup server),
I forced starting md7 in degraded mode by including the --run parameter
and re-added md6 afterwards. Since both components carry the
write-intent bitmap and the degraded array was not accessed in the
meantime, md6 was re-added without any synchronization.
Still, md6 is not local to orfeus:
orfeus:~# mdadm --examine /dev/md6
/dev/md6:
....
Name : 'orfeus':7
...
While md5 is:
orfeus:~# mdadm --examine /dev/md5
/dev/md5:
....
Name : orfeus:7 (local to host orfeus)
....
Next time the problem will arise again. No idea how to force md6 to
become local. It looks as if md6 was created in some preliminary stage
of homehost support and its current homehost format is not supported by
the mdadm utils. Just my guess though.
John, once more thank you for your invaluable help.
Regards,
Pavel.
next prev parent reply other threads:[~2012-03-19 20:21 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 [this message]
2012-03-19 21:28 ` NeilBrown
2012-03-19 21:37 ` Pavel Hofman
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=4F67952D.80304@ivitera.com \
--to=pavel.hofman@ivitera.com \
--cc=john.robinson@anonymous.org.uk \
--cc=linux-raid@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).