Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
5 replies Latest Post - ‏2014-04-12T02:08:53Z by Scott Ingram
SystemAdmin
SystemAdmin
5837 Posts
ACCEPTED ANSWER

Pinned topic Invalid Host Name

‏2012-08-16T18:29:13Z |
Dear Forum, this is the first time I install the DB2 Express C V10.1 in Linux Centos 64 bit:

root@CentOSDB264v10 expc# uname -a
Linux CentOSDB264v10 2.6.32-279.5.1.el6.x86_64 #1 SMP Tue Aug 14 23:54:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

When executing ./db2setup -t file-name I get the error message:

The host name 'CentOSDB264v10' is invalid. Ensure the host name resolves to a valid ip address. Specify a valid host name and rerun the command.

No other chance than to abort the installation. I don't think to have basic network problem, my virtual machine is ping-able from the host, and normally connected to internet.
1) I use the db2_v101_linuxx64_expc.tar.gz wxhich is 493,3 MB long;
2) I don't use the file db2_v101_linuxia64_accsuite because I dont't know what is;
3) the requirements have been controlled for 64 (libstdc++ 64, package pam 64, libaio 64: OK) NOT FOR 32 BIT (could it be the problem?)
3 bis) java ibm 7 jre installed and LANG=en_US.UTF-8 exported;
4) 3 files have been produced by the trace option: they are trace4.ctrc, trace4.jtrc, trace4_lp, the first one is here annexed;
5) in /tmp the file db2setup.err is empty;
6) in /tmp the file DB2 Setup log contains:
DB2 Setup log file started at: Thu 16 Aug 2012 07:21:13 PM CEST CEST
Operating system information: Linux 2.6.32-279.5.1.el6.x86_64.#1 SMP Tue Aug 14 23:54:45 UTC 2012 x86_64
The host name 'CentOSDB264v10' is invalid. Ensure the host name resolves to a valid ip address. Specify a valid host name and rerun the command.
As it was for the Express C 9.7.5 when all issues were positively solved, I appreciate the Forum Support.
Regards, c.l.

Attachments

Updated on 2012-08-18T19:37:19Z at 2012-08-18T19:37:19Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    5837 Posts
    ACCEPTED ANSWER

    Re: Invalid Host Name

    ‏2012-08-18T19:37:19Z  in response to SystemAdmin
    I'm going to close by myself the question, because the error message was precise. The reason was a network uncomplete setup. Infact it was not possible to self ping the hostname. Clearly a bad setup to resolve names. I introduced a DNS server through named program in my host that is a node in the lan on which many virtual machines work together. Now DB2 Express C V10 has been installed and the first steps is up and running ! Anyway, thanks to the Forum.
    Regards, c.l.
  • Shimmey
    Shimmey
    1 Post
    ACCEPTED ANSWER

    Re: Invalid Host Name

    ‏2013-05-23T06:02:56Z  in response to SystemAdmin

    I've met the same problem when I tried to install DB2 on my desktop running Scientific Linux system. There is another way to solve it, that is add one line in the /etc/hosts file to set the local IP address to your hostname.

    You could run the following command in terminal. The root privilege is necessary for the successful execution of it.

    echo "127.0.0.1 $HOSTNAME" >>/etc/hosts

    And then, all runs well...

  • Scott Ingram
    Scott Ingram
    1 Post
    ACCEPTED ANSWER

    Re: Invalid Host Name

    ‏2014-04-12T02:08:53Z  in response to SystemAdmin

    Setting the environment variable, DB2_HADR_NO_IP_CHECK, will prevent the install from attempting to resolve the hostname.  Useful if the solutions above don't solve the problem (ie, too many interfaces for the installer to correctly resolve).

    Ref:  http://www-01.ibm.com/support/knowledgecenter/SSEPGG_9.7.0/com.ibm.db2.luw.admin.regvars.doc/doc/r0005669.html?cp=SSEPGG_9.7.0%2F2-2-7-4-7