[Swift-devel] [ZeptoOS] hostname returns none in Surveyor

Emalayan Vairavanathan svemalayan at yahoo.com
Sat Mar 3 21:39:31 CST 2012


Hi Kaz, 


Thank you for your reply. BG_IP returns an IP address with zepto-vn-eval/mosatestprofile. 


Anyway a quick question:

It seems the IP returned on a compute-node with zeptoos profile is different than associated I/O node (Please see below). May be I didnt understand something correctly and I would be very happy if you can provide some explanation for my observation. 


In IO-node

/gpfs/home/emalayan $ hostname
ion-5
/gpfs/home/emalayan $ hostname -i
172.16.3.5 

In compute node
/ # hostname
172.18.1.19

/ # cat /proc/personality.sh | grep 'BG_IP'
BG_IP=172.18.1.19



Thank you
Emalayan


________________________________
 From: Kazutomo Yoshii <kazutomo at mcs.anl.gov>
To: zeptoos at lists.mcs.anl.gov 
Sent: Saturday, 3 March 2012 6:52 PM
Subject: Re: [ZeptoOS] hostname  returns none in Surveyor
 
Hi Emalayan,

The zeptoos profile returns the IP address of associated I/O node,
which is kind of wrong in my opinion (influence of IBM CNK).
ifconfig on compute nodes returns CN's IP address, which is correct.
e.g. tun0 192.168.1.64

If you want to find associated ION's IP address from CNs,
do something like this.

$ grep BG_IP= /proc/personality.sh

- kaz

On 03/03/2012 08:25 PM, Emalayan Vairavanathan wrote:
> Hi All,
>
> I am trying to run some experiments in Surveyor. The software I am using
> gets the IP-address of compute-nodes using hostname command.
>
> With zepto-vn-eval/mosatest profile hostname command returns none.
> But with zeptoos profile hostname returns the correct IP address.
>
> Is this due to some configuration issues in zepto-vn-eval/mosatest
> profile?As a workaround I tired to use ifconfig with both profiles, but
> it seems ifconfig is not returning the correct IP address.
>
> Is there any command / files which I can used to retrieve the hostname
> on compute nodes? I have pasted the console output with both profiles
> below. Please let me know if you need more details.
>
> Thank you
> Emalayan
>
>
> =======================With zeptoos profile ===============================
>
> / # hostname
> 172.18.3.19
> / #
> / # cat /proc/sys/kernel/hostname
> 172.18.3.19
> / #
> / #
> / # ifconfig -a
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
> tun0 Link encap:UNSPEC HWaddr
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
> inet addr:192.168.1.64 P-t-P:192.168.1.254 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:65535 Metric:1
> RX packets:2662 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1772 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:500
> RX bytes:140206 (136.9 KiB) TX bytes:125412 (122.4 KiB)
>
>
>
> =======================With zepto-vn-eval/mosatest profile
> ===============================
>
> /etc # hostname
> (none)
> /etc #
> /etc # cat /proc/sys/kernel/hostname
> (none)
> /etc #
> /etc # ifconfig -a
> eth0 Link encap:Ethernet HWaddr 00:80:46:00:00:00
> BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
> eth1 Link encap:Ethernet HWaddr 00:80:47:00:00:00
> BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
> sit0 Link encap:IPv6-in-IPv4
> NOARP MTU:1480 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
> tun0 Link encap:UNSPEC HWaddr
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
> inet addr:192.168.1.64 P-t-P:192.168.1.254 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:65535 Metric:1
> RX packets:965 errors:0 dropped:0 overruns:0 frame:0
> TX packets:627 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:500
> RX bytes:50984 (49.7 KiB) TX bytes:50530 (49.3 KiB)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20120303/6a1d9052/attachment.html>


More information about the Swift-devel mailing list