Cannot update homehost of an existing array: mdadm: /dev/sda3 has wrong name.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux