Re: [Q] why two different computers have same hostid?

From: Green, Simon (Simon.Green@EU.ALTRIA.COM)
Date: Thu May 01 2003 - 10:29:56 EDT


hostid defaults to a hexadecimal representation of the IP address associated
with the primary network interface - the one associated with the machine's
hostname. You can actually use the hostid number with the host command if
you want to confirm this.
e.g. host 0xc1091442

Since you've just restored a mksysb you'll have restored the ODM, which
contains all of the device configuration, including for your network
interfaces. The two systems will have the same IP address, and therefore
the same hostid.

Changing the IP address - which you may already have done - won't
automatically change the hostid. Nor will issuing the hostname command. (I
can see on my HACMP nodes that the hostid represents the boot address, not
the service address.)

hostid is issued by /etc/rc.net, so it's normally re-set at boot time. You
can set it explicitly yourself with the hostid command. I think you can set
an arbitrary number, if you like, but this will be overwritten at the next
boot, unless you do something to prevent that.

Simon Green
Altria ITSC Europe s.a.r.l.

AIX-L Archive at http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2
AIX FAQ at http://www.faqs.org/faqs/aix-faq/

N.B. Unsolicited email from vendors will not be appreciated.

> -----Original Message-----
> From: L
> Sent: 01 May 2003 15:00
> To: aix-l@Princeton.EDU
> Subject: [Q] why two different computers have same hostid?
>
>
> We are doing backup/restore test on out IBM P660 series. we use
> "mksysb" create system image and restore it to another P660
> (exactly same
> model). After system bootup I type "hostid" on both
> computers and found
> output are the same. Why different computer have same
> hostid? Does their
> has unique system id in some where?



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:47 EDT