Graeme Stewart wrote:
> What's in /etc/sysconfig/network? This is where the hostname is set at
> boot time.
[root@ce03 root]# more /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=ce03
NISDOMAIN=htc
DHCP_HOSTNAME=yes
[root@ce03 root]# hostname -f
ce03.htc.esc.qmul
ok, this is consistent...
but how does that explain how yaim manage a machine with more than
1 interface?
>
> Hostname should generally always be set to the routed interface of
> dual homed hosts.
"routed interface"... what do you mean?
Let us consider a machine with two interface:
1] eth0 internal
2] eth1 external
Do you mean eth1?
By the way I am going to change the hostname command output
Cheers
Giuseppe
>
> g
>
>
> On 8 Nov 2007, at 17:30, Giuseppe Mazza wrote:
>
>> Hi *,
>>
>> I have the following problem. I have nearly installed a new CE, but
>> the mds is listining on the machine name associated to the internal
>> interface:
>>
>> ----------------------------------------------------------------------------------------
>>
>> [root@ce03 functions]# ldapsearch -x -H ldap://ce03.htc.esc.qmul:2135 -b
>> mds-vo-name=local,o=grid | head -n 4
>> version: 2
>>
>> #
>> # filter: (objectclass=*)
>> ----------------------------------------------------------------------------------------
>>
>>
>> while the external interface gives
>> ----------------------------------------------------------------------------------------
>>
>> [root@ce03 functions]# ldapsearch -x -H ldap://ce03.esc.qmul.ac.uk:2135
>> -b mds-vo-name=local,o=grid | head -n 4
>> ldap_bind: Can't contact LDAP server
>> ----------------------------------------------------------------------------------------
>>
>>
>> The reason is
>> ----------------------------------------------------------------------------------------
>>
>> [root@ce03 functions]# grep hostname config_globus
>> if [ "$GRIDICE_SERVER_HOST" = "`hostname -f`" ]; then
>>
>> ce03.htc.esc.qmul
>> ----------------------------------------------------------------------------------------
>>
>>
>>
>>
>> How do people handle this case?
>> How does it work if you use "hostname -f" command on a machine with more
>> than 1 interface?
>>
>> Cheers
>> Giuseppe
>
> --
> Dr Graeme Stewart - http://wiki.gridpp.ac.uk/wiki/User:Graeme_stewart
> ScotGrid - http://www.scotgrid.ac.uk/ http://scotgrid.blogspot.com/
|