Emergency mode after hostname change

Issues related to configuring your network
olev
Posts: 9
Joined: 2022/06/14 13:41:49

Re: Emergency mode after hostname change

Post by olev » 2022/06/14 15:22:16

Unfortunately, I lost connect with the system, as it is in emergency mode, and my friend, who has it, has left...
I will continue later.
Thanks for You help!

tunk
Posts: 1205
Joined: 2017/02/22 15:08:17

Re: Emergency mode after hostname change

Post by tunk » 2022/06/15 09:35:34

olev wrote:
2022/06/14 15:10:56
I modifed only /etc/hostname
I think Trevor suggested that "127.0.0.1 localhost ..." should be added to /etc/hosts.

olev
Posts: 9
Joined: 2022/06/14 13:41:49

Re: Emergency mode after hostname change

Post by olev » 2022/06/15 17:40:39

Hi!
So.. My friend reinstalled Centos, and didn't send me logs...
I connected to a new system with a new hostname.
And I decided to connect the RAID 1 array that I managed to create on the system before cnange hostname and reinstalling.
(Centos was installed in first hdd, and RAID1 was build from two other HDD).
I type: "mdadm --assemble --scan"
And I see:
"mdadm: /dev/md/localhost.localdomain:0 has been started with 2 drives."
This raid array was in fstab in previos system... I think, that was the reason for the emergency mode after changing the hostname.
So, TrevorH immediately identified the cause: fstab...)
But I don't understant, how hostname and RAID setting are related...
Can someone explain me?
Thanks.
Sorry for offtopic... its not a network problem...

Post Reply