HA was failing after changing IP and hostname of a server that was moved to a different location. deleted and re-created the vswif and edited /etc/hosts and /etc/sysconfig/network. Bounced the server. The error became pretty obvious when I ran hostname on the server acting funky and it was appended with a = character. =blah.blah.com Well that was actually in the /etc/hosts file where I fat fingered it. But I fixed that and bounced the server. But the problem persists. If I run hostname I get the appended name even though that character is not in the hosts or sysconfig/network file. Trying to figure out where else that might be. Any help is appreciated. Thanks.
Make sure the hostname and FQDN are resolved correctly using DNS.
Also make sure you use the right DNS server and (if set) the search-domain in /etc/resolv.conf is configured correctly.
I think you have eddited all the proper files.
Try setting the hostname directly with the hostname command.
hostname <proper hostname>
I think Oreeh is right on target. Additionally, HA if I remember correctly depends on proper DNS settings. Make sure in VC you are using the correct hostname as it appears in your DNS, not the DNS on your ESX but where ever you run DNS for your environment, IE Active directory or other? In VC, make sure you are not using IP, but hostname.
Respectfully,
Matthew
Kaizen!
The HA failing is just a symptom of the problem. What I am trying to figure out here is why after editing those two files and checking them repeatedly to make sure they are in fact correct now, and rebooting the server, I still get a = character in appended to the hostname. The HA problem will get resolved once I figure this out. I am not too worried about that. I'll try using the hostname <servername> command from the CLI and see if that makes any difference. Thanks.
Your post has been moved to the ESX Server 3.x Configuration forum
Dave Mishchenko
VMware Communities User Moderator
Thanks. Navigating the boards since the format change is like pulling teeth. I appreciate you moving to the correct forum.
Hey there,
Try removing the esx completly from VC, make sure all DNS entries are correct then add back.
R,
Matthew - Kaizen!
Ok, again, VC and HA is not the problem here. An appended = character on the hostname is the issue. Once I solve that the VC/HA problem dissapears.
Here is what I need to know. Is there somewhere else this value added to the hostname could be found besides /etc/hosts and/or etc/sysconfig/network?
Thanks
Looks like pixie dust was spread. Thanks all for the suggestions.
Hello, are you still having the problem with the hostname?
Can you look at the Virtual Infrastructure Client and see what shows up for hostname in that interface? It should be on the configuration tab, DNS and Routing, Properties.
Try changing it to something new, rebooting, and changing it back using the VIC interface.