linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Cannot update homehost of an existing array: mdadm: /dev/sda3 has wrong name.
@ 2024-10-19  6:32 Marc Haber
  2024-10-19 10:03 ` Geoff Back
  0 siblings, 1 reply; 6+ messages in thread
From: Marc Haber @ 2024-10-19  6:32 UTC (permalink / raw)
  To: linux-raid

Hi,

during a restore operation, I have recreated a RAID array using a rescue
system. That new array ended up being named grml:0. Renaming the array
to realhostname:md_root didn't work inside the rescue system

The rescue system is reasonably current, using kernel 6.11.2 and mdadm
4.3.

First, I tried changing the name of the array. That worked:
# mdadm --assemble md_root --update=name --name=md_root /dev/sda3 /dev/sdb3
mdadm: /dev/md/md_root has been started with 2 drives.
# mdadm --examine /dev/sda3
... Name: grml:md_root  (local to host grml) ...

What didn't work was changing the homehost:
# mdadm --assemble md_root --update=homehost --name=realhostname /dev/sda3 /dev/sdb3
mdadm: /dev/sda3 has wrong name.
mdadm: /dev/sdb3 has wrong name.

Adding --force didn't work, same error message.

What is the recommended way to create an array inside a rescue system
that has homehost and name to the values the local admin wants, and/or
to change those values for an array that has already been created and is
filled with data?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-10-22 11:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).