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

Re: hostname ?



Thanks for your input.
The HOMEHOST parameter (in /etc/mdadm/mdadm.conf) is set to <system>.

The RAID-device does still show the old hostname in both mdadm.conf and the superblock of the indiviual devices. The system is booting from this RAID without problems. Nevertheless, I would like to change to the new hostname.

If I would change the hostname of the ARRAY in mdadm.conf I should also change the hostname within the superblocks. However, I have no idea how to change the homehost settings in the superblock ...

Peter


On 22.02.2016 11:43, Alan Corey wrote:
Ah:

"In a nutshell: Your RAID devices store the hostname in the
superblock, so that when "mdadm --assemble" is called, it only
assembles RAID devices that belong to the running host. (The rationale
is that if you, for some reason, have hooked up a RAID device from
some other host, and mdadm auto-assembles that, Bad Things(tm) may
happen. It's a safety feature for that very rare circumstance.)

Either update the homehost setting in the superblocks, or change the
HOMEHOST parameter in /etc/mdadm/mdadm.conf . (If it's set to
"<system>", which it probably is, mdadm will substitute the system's
current hostname.)"

from https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/325827

On 2/22/16, Alan Corey <alan01346@gmail.com> wrote:
No clue but I wondered why a RAID stack would need the hostname so I
Googled:  raid hostname

You're not alone by the looks.  And it's not peculiar to the hardware.
http://askubuntu.com/questions/63980/how-do-i-rename-an-mdadm-raid-array
comes close.

I haven't used a RAID in years and that was under Windows NT and
OpenBSD.  Seems like the installer should ask though, I remember that
question from a few days ago when using an install disk to get into
rescue mode (i386/686).  If you really didn't get asked (debian was
the default I saw), that might be a legitimate bug.

On 2/22/16, Nagel, Peter (IFP) <peter.nagel@kit.edu> wrote:
I have just done a new installation on a Kirkwood system (QNAP-TS 420)
using the expert mode.
After the the installation I realized that the installer hasn't asked me
for the hostname.

I have now changed the hostname but it turned out that the RAID-device
is still containing the old name.
Since the RAID-device contains the / directory I can not just stop and
re-assamble the RAID-device with a new name.

How can I change the name of the RAID-device?

Peter





--
Credit is the root of all evil.  - AB1JX




Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Reply to: