• Skip to site navigation
  • Skip to blog entries
  • Skip to archive page
  • Skip to right sidebar

vSphere HA and short hostnames

NTPRO.NL - Eric Sloof

  • NTPRO.NL
  • Online Training
  • VMworld
  • Videos
  • Tools
  • iTunes
  • About

Tuesday, 26 May 2009

vSphere HA and short hostnames

I’m upgrading my home-lab environment to the GA release of vSphere. After enabling HA on my two node cluster there was trouble in paradise. Every time I “turned on VMware HA” the task eventually resulted in an unknown HA error.  This usually happened around the 84%. I investigated two interesting log files which can be found at /var/log/vmware/aam.

aam_config_util_addnode.log

05/26/09 09:48:17 [issue_cmd           ] No AAM Primary Agents were found that would accept our connection.
05/26/09 09:48:17 [issue_cmd           ] Connection Unsuccessfully attempted at:
05/26/09 09:48:17 [issue_cmd           ]
05/26/09 09:48:17 [active_primary_ftcli] command did not run successfully on 'esx4-r'.
05/26/09 09:48:17 [active_primary_ftcli] 'esx-r' would not accept our connection.
05/26/09 09:48:17 [find_active_primary ] attempting to find an active primary.
05/26/09 09:48:17 [issue_cli_cmd       ] command is '/opt/vmware/aam/bin/ftcli -domain vmware -cmd "la -l"'
05/26/09 09:48:17 [issue_cmd           ] CMD:    /opt/vmware/aam/bin/ftcli -domain vmware -cmd "la -l"
05/26/09 09:48:17 [issue_cmd           ] STATUS: 1
05/26/09 09:48:17 [issue_cmd           ] RESULT:
05/26/09 09:48:17 [issue_cmd           ] Unable to get Fully Qualified Domain Name
05/26/09 09:48:17 [issue_cmd           ] [Err:0] Unable to get Fully Qualified Domain Name

aam_config_util_listprimaries.log

05/26/09 10:17:09 [print_args          ] KEY: cmd VAL: listprimaries
05/26/09 10:17:09 [print_args          ] KEY: -z VAL: 1
05/26/09 10:17:09 [print_args          ] KEY: uname VAL: Linux
05/26/09 10:17:09 [print_args          ] KEY: shortname VAL: esx4-l
05/26/09 10:17:09 [print_args          ] KEY: domain VAL: vmware
05/26/09 10:17:14 [issue_cmd           ] CMD:    /opt/vmware/aam/bin/ft_gethostbyname esx4-l |grep FAILED
05/26/09 10:17:14 [issue_cmd           ] STATUS: 0
05/26/09 10:17:14 [issue_cmd           ] RESULT:
05/26/09 10:17:14 [issue_cmd           ] ft_gethostbyname(esx4-l) FAILED


Ok, that sounds fair, there is a problem with hostname resolution, and this is the most common error source for VMware HA problems. Since I didn’t have a proper DNS server in my lab, I was relying on host files. Eventually the problem was caused by the short host name. When editing your host files don’t forget to add the short hostname after the fully qualified domain name.

192.168.178.180 myserver.domain.com myserver

Posted by
Eric Sloof
in vSphere at 11:02 | 5 Comments | No Trackbacks
Bookmark and Share
Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as (Linear | Threaded)
That is good information to know. Thank you Eric. Throughout VI3, it was my standard practice to populate the /etc/hosts file with both the long and the short name of all ESX hosts in the cluster due to prior versions of VI3 being heavily dependent on DNS name resolution (for both long and short names). While this DNS dependence was resolved with newer 3.5 builds, based on your experience it appears DNS problems have resurfaced. I would not classify this as a showstopper but it is an annoyance - one that VMware and its end users have already learned once. I would question why we are going back down this road once again. Another thing I learned from this blog entry is that multiple host name entries can be place on a single line. ie. 192.168.178.180 myserver.domain.com myserver Whereas my host files look like: 192.168.178.180 myserver.domain.com 192.168.178.180 myserver
#1 Jason Boche (Homepage) on 2009-05-26 14:31 (Reply)
Just a thought. Would it depend on how you add your server to vCenter? I always add my ESX hosts with the FQDN and not by its shortname.
#2 Arnim van Lieshout (Homepage) on 2009-05-26 14:55 (Reply)
Thanks for sharing this info with us Eric! @Eric: Did you use the same lookup domain for the ESX host as you used in the /etc/hosts file for the FQDN? @Jason: I don't think that DNS problems like in prior ESX 3.5 U3 versions will resurface, but like Eric mentioned he doesn't have DNS in his lab setup so that will be the problem... Adding the short host name to the /etc/hosts file fixed his problem.
#3 Eric van der Meer on 2009-05-27 20:30 (Reply)
I must admit, I made a typo in my hostfile :-}
#3.1 Eric Sloof on 2009-05-27 20:36 (Reply)
:-) Because of your typo, vSphere is a showstopper for Jason. I hope he reads your reply on this topic... ;-)
#4 Eric van der Meer on 2009-05-27 20:53 (Reply)
Add Comment
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
   
Submitted comments will be subject to moderation before being displayed.
 
 


Twitter RSS FeedLinkedIn

www.hetesambal.nl

Veeam Webinar with Doug Hazelman: 5 Steps to Successful Backup & Replication for Hyper-V! Watch it now >>

Recent Entries

Storage Design and Implementation in vSphere 5.0 - The Rough Cuts
Thursday, January 19 2012
Top 25 Free Tools for VMware vSphere presented by David Davis and Kendrick Coleman
Monday, January 16 2012
LG Android running VMware Horizon Mobile hands-on
Saturday, January 14 2012
Forbes Guthrie has released the vSphere 5 vReference Card
Thursday, January 12 2012
VMworld Session - VMware vMotion in VMware vSphere 5: Architecture, Performance & Best Practices
Wednesday, January 11 2012
Voice Over IP (VoIP) Performance Evaluation on VMware vSphere 5.0
Tuesday, January 10 2012
VMware vCloud Director 1.5 Performance and Best Practices
Monday, January 9 2012
VMware vCenter Site Recovery Manager 5.0 Performance and Best Practices
Sunday, January 8 2012
New Training - VMware vSphere 5 Design Workshop
Saturday, January 7 2012
New Training - VMware View 5 Install, Configure and Manage
Friday, January 6 2012

Archive

  • February 2012 (3)
  • January 2012 (23)
  • December 2011 (21)
  • November 2011 (24)
  • October 2011 (27)
  • September 2011 (26)
  • August 2011 (35)
  • July 2011 (26)
  • June 2011 (15)
  • May 2011 (20)
  • April 2011 (22)
  • March 2011 (22)
  • February 2011 (18)
  • January 2011 (13)
  • December 2010 (23)
  • November 2010 (18)
  • October 2010 (31)
  • September 2010 (22)
  • August 2010 (23)
  • July 2010 (19)
  • June 2010 (19)
  • May 2010 (19)
  • April 2010 (20)
  • March 2010 (23)
  • February 2010 (22)
  • January 2010 (30)
  • December 2009 (37)
  • November 2009 (29)
  • October 2009 (27)
  • September 2009 (36)
  • August 2009 (35)
  • July 2009 (35)
  • June 2009 (43)
  • May 2009 (35)
  • April 2009 (56)
  • March 2009 (51)
  • February 2009 (69)
  • January 2009 (69)
  • December 2008 (60)
  • November 2008 (56)
  • October 2008 (49)
  • September 2008 (63)
  • August 2008 (44)
  • July 2008 (54)
  • June 2008 (26)
  • May 2008 (34)
  • April 2008 (27)
  • March 2008 (38)
  • February 2008 (29)
  • January 2008 (35)
  • December 2007 (24)
  • November 2007 (23)
  • October 2007 (20)
  • September 2007 (54)
  • August 2007 (15)
  • July 2007 (22)
  • June 2007 (13)
  • May 2007 (8)
  • April 2007 (20)
  • March 2007 (10)
  • Recent...
  • Older...
Based on the s9y Bulletproof template framework
Powered by s9y – Template by Bulletproof development team.
  • NTPRO.NL
  • Online Training
  • VMworld
  • Videos
  • Tools
  • iTunes
  • About