HPCCommunity.org
 
Register

Go Back   HPC Community - High Performance Computing (HPC) Community > Kusu > Installing, managing and running a Kusu cluster

Installing, managing and running a Kusu cluster Discuss the whole Kusu HPC stack here! (Hardware, cluster OS, cluster management, filesystems, schedulers and applications)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 20th, 2008, 05:05 PM
Junior Member
 
Join Date: November 12th, 2008
Posts: 12
Default genconfig hosts produces wrong /etc/hosts

Hi,

to me it seems that "genconfig hosts" produces a wrong /etc/hosts:
Code:
[root@kusu1 ~]# genconfig hosts
# 
# Dynamically generated by: genconfig  (Do not edit!)
#
127.0.0.1       localhost.localdomain   localhost
10.0.0.1        kusu1.kusu      kusu1-eth0.kusu kusu1-eth0
10.0.0.2        compute-00-00.kusu      compute-00-00-eth0.kusu compute-00-00-eth0      compute-00-00
10.0.0.3        compute-00-01.kusu      compute-00-01-eth0.kusu compute-00-01-eth0      compute-00-01
10.0.0.4        compute-00-02.kusu      compute-00-02-eth0.kusu compute-00-02-eth0      compute-00-02
10.0.0.5        compute-00-03.kusu      compute-00-03-eth0.kusu compute-00-03-eth0      compute-00-03
192.168.0.100   kusu1.mydomain.de       kusu1-eth1.kusu kusu1-eth1      kusu1
whereas ifconfig tells me, that the ip of kusu1 is 192.168.0.166:
Code:
[root@kusu1 ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1A:92:54:44:67  
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::21a:92ff:fe54:4467/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10337 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12193 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2030259 (1.9 MiB)  TX bytes:6685259 (6.3 MiB)
          Memory:c8200000-c8220000 

eth1      Link encap:Ethernet  HWaddr 00:1A:92:54:44:66  
          inet addr:192.168.0.166  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::21a:92ff:fe54:4466/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1776 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1241 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:191558 (187.0 KiB)  TX bytes:175424 (171.3 KiB)
          Memory:c8220000-c8240000
I came across that, because I run some test, and the very first one tests ssh connectivity.
And ssh kusu1 only works if I manually edit /etc/hosts (allthough it tells me I shouldn't )
Maybe I miss something?
I run kusu 1.0 on centos 5.2.

regards
Reply With Quote
  #2 (permalink)  
Old November 21st, 2008, 02:33 AM
Project Moderator
 
Join Date: March 4th, 2008
Posts: 59
Blog Entries: 3
Default

Thanks for trying out Project Kusu.

For eth1(public network), was it set to dhcp during installation?
Reply With Quote
  #3 (permalink)  
Old November 21st, 2008, 09:31 AM
Junior Member
 
Join Date: November 12th, 2008
Posts: 12
Default

Yes, eth1 uses dhcp.
Reply With Quote
  #4 (permalink)  
Old November 21st, 2008, 10:04 AM
Project Moderator
 
Join Date: March 4th, 2008
Posts: 59
Blog Entries: 3
Default

Can you provide the output of netedit -l?
Reply With Quote
  #5 (permalink)  
Old November 21st, 2008, 10:06 AM
Junior Member
 
Join Date: November 12th, 2008
Posts: 12
Default

Code:
[root@kusu1 ~]# netedit -l

Network ID Device       Network       Subnet          Network Description                      Interface Type
========== ======       =======       ======          ===================                      ==============
1          eth1         192.168.0.0   255.255.255.0   public                                   public
2          eth0         10.0.0.0      255.255.0.0     cluster                                  provision
Reply With Quote
  #6 (permalink)  
Old November 21st, 2008, 10:52 AM
Project Moderator
 
Join Date: March 4th, 2008
Posts: 59
Blog Entries: 3
Default

Was eth1 changed to dhcp after installation? From netedit -l, it looks like it was set to static ip during installation?
Reply With Quote
  #7 (permalink)  
Old November 21st, 2008, 10:58 AM
Junior Member
 
Join Date: November 12th, 2008
Posts: 12
Default

I am not shure any more.
I had a problem with eth0, which was not active. At install I set it to static (eth0), but then for some reason it did not get activated and was set to dhcp. I set it again to static and activated it. It survived a couple of reboots, but not all. So I had to do the process again.
Anyway, maybe in the process of changing things for eth0, I changed also things for eth1.
Reply With Quote
  #8 (permalink)  
Old November 21st, 2008, 11:37 AM
Project Moderator
 
Join Date: March 4th, 2008
Posts: 59
Blog Entries: 3
Default

Can you post the following files:

/etc/sysconfig/network-scripts/ifcfg-eth0 and
/etc/sysconfig/network-scripts/ifcfg-eth1
Reply With Quote
  #9 (permalink)  
Old November 24th, 2008, 05:09 PM
Junior Member
 
Join Date: November 12th, 2008
Posts: 12
Default

eth0:
Code:
# Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper)
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
HWADDR=00:1a:92:54:44:67
NETMASK=255.255.255.0
IPADDR=10.0.0.1
GATEWAY=192.168.0.1
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
eth1:
Code:
# Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper)
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=dhcp
HWADDR=00:1a:92:54:44:66
TYPE=Ethernet
Quote:
Was eth1 changed to dhcp after installation?
Rereading my personal installation log this weekend, I found that after installation, eth1 was not activated.
So yes, I changed eth1 to dhcp after installation.
And now I think I also remember that I assigned a static adress during installation. But because the card did not get activated, I changed it.

I should probably reformulate my question: How do I make genconfig aware of my change of the network settings?

Sorry for beeing sloppy in previous posts ...
Reply With Quote
  #10 (permalink)  
Old November 25th, 2008, 03:11 PM
Project Moderator
 
Join Date: March 4th, 2008
Posts: 59
Blog Entries: 3
Default

You can change the database entries to ensure that eth1 is on dhcp.

# mysql -u root kusudb
# UPDATE networks set network='', subnet='', gateway='', startip='', usingdhcp=True where netid=1;

This should fix the tables and allow genconfig hosts to create the correct /etc/hosts.
Reply With Quote
Reply

Tags
genconfig, hosts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 02:33 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.