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: Tue, 22 Oct 2024 13:25:10 +0200 [thread overview]
Message-ID: <20241022132510.0000151f@linux.intel.com> (raw)
In-Reply-To: <Zxa6knvDsm6KlNkH@torres.zugschlus.de>
On Mon, 21 Oct 2024 22:33:22 +0200
Marc Haber <mh+linux-raid@zugschlus.de> wrote:
> Hi Mariusz,
>
> thanks for your answer.
>
> On Mon, Oct 21, 2024 at 08:51:32AM +0200, Mariusz Tkaczyk wrote:
> > 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.
>
> But the array is not intended to be considered as foreign, it is running
> on its native host.
>
> Good call, I indeed forgot updating mdadm.conf. And I also forgot that
> we are on Debian stable with a current kernel now, that means Kernel
> 6.11.3 and mdadm 4.2
>
> > You can probably correct it by updating your mdadm.conf or you can update
> > your homehost to production system hostname.
>
> It now says:
> HOMEHOST <system>
> ARRAY /dev/md/myrealhostname:md_root metadata=1.2 name=myrealhostname:md_root
> UUID=9d455b1e:35a52a2b:59b2bc1a:db22369f The ARRAY line is what mdadm
> --detail --scan prints, and hostname(1) returns "myrealhostname". And still,
> /dev/md/myrealhostname:md_root exists after rebuilding initramfs and
> rebooting..
>
> Changing the ARRAY line to
> ARRAY /dev/md/md_root metadata=1.2 name=myrealhostname:md_root
> UUID=9d455b1e:35a52a2b:59b2bc1a:db22369f and rebuilding initramfs yielded the
> expected behavior, having /dev/md/md_root.
>
> Thanks for pointing me so effienctly to the correct solution.
>
> > So yes, it looks like expected, we are highlighting that it is not our MD
> > array.
>
> But it IS "our" MD array. Or, at least it is supposed to be.
>
> Greetings
> Marc
>
Got you. Well, looks like this array name "ARRAY
/dev/md/myrealhostname:md_root" forced bad naming. Generally, I recommend
#mdadm --examine --scan for conf generation. You can try and see if the output
is different comparing to --detail --scan.
Probably, we should consider fixing that for --detail --scan.
Thanks,
Mariusz
prev parent reply other threads:[~2024-10-22 11:25 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
2024-10-21 20:33 ` Marc Haber
2024-10-22 11:25 ` Mariusz Tkaczyk [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=20241022132510.0000151f@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).