Re: 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 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

-- 
-----------------------------------------------------------------------------
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