From: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
To: Marc Haber <mh+linux-raid@zugschlus.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: Cannot update homehost of an existing array: mdadm: /dev/sda3 has wrong name.
Date: Mon, 21 Oct 2024 08:51:32 +0200 [thread overview]
Message-ID: <20241021085132.00000cad@linux.intel.com> (raw)
In-Reply-To: <ZxQTFA8Mwi8V5jye@torres.zugschlus.de>
On Sat, 19 Oct 2024 22:14:12 +0200
Marc Haber <mh+linux-raid@zugschlus.de> wrote:
> On Sat, Oct 19, 2024 at 11:03:53AM +0100, Geoff Back wrote:
> > I think instead of --name=realhostname you need --homehost=realhostname
> > here.
>
> Thanks for spotting this. It has worked now.
>
> In the rescue system, the array was then available as /dev/md/md_root.
> Booting the production system, the array became
> /dev/md/realhostname:md_root. mdadm --detail says
> Name : realhostname:md_root (local to host realhostname)
>
> Is this how things are supposed to work? I had the impression that the
> host name part of the array name only shows up in /dev/md/ if it DOES
> NOT equal the local host name of the running system?
>
> Greetings
> Marc
>
I'm looking into Incremental right now and there is a comment:
* 3/ Check if there is a match in mdadm.conf
* 3a/ if not, check for homehost match. If no match, assemble as
* a 'foreign' array.
I believe that this is kind of "foreign" naming for native raid.
You can probably correct it by updating your mdadm.conf or you can update your
homehost to production system hostname.
So yes, it looks like expected, we are highlighting that it is not our MD array.
We need user to acknowledge it by updating conf or updating homehost to
change locality to "local".
Thanks,
Mariusz
next prev parent reply other threads:[~2024-10-21 6:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-19 6:32 Cannot update homehost of an existing array: mdadm: /dev/sda3 has wrong name Marc Haber
2024-10-19 10:03 ` Geoff Back
2024-10-19 20:14 ` Marc Haber
2024-10-21 6:51 ` Mariusz Tkaczyk [this message]
2024-10-21 20:33 ` Marc Haber
2024-10-22 11:25 ` Mariusz Tkaczyk
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=20241021085132.00000cad@linux.intel.com \
--to=mariusz.tkaczyk@linux.intel.com \
--cc=linux-raid@vger.kernel.org \
--cc=mh+linux-raid@zugschlus.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).