[Rocks-Discuss] /etc/hosts

434 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Moorcroft, Mark (ARC-TSM)[ERC, Inc.]

ungelesen,
28.03.2012, 19:07:0528.03.12
an npaci-rocks...@sdsc.edu

Hi all,

First time posting here. I have 2 (soon to be 3) clusters running Viper. I
noticed today that neither head node recognizes about half the entries in
/etc/hosts. Basically everything after the end of the 10.x.x.x range is
ignored. One consequence is everything in /etc/hosts.local gets added to
/etc/hosts by rocks sync config but then it¹s all ignored. The host
command finds none of those entries. We have a second local net for
storage traffic between the 10.x.x.x entries and the hosts.local entries.
In between is the entry for the external address and that is about where
it all stops. Also, on my second cluster I just noticed that rocks never
added the storage net entry for the last node to /etc/hosts. Strange it
did the first few but not the last.

--


Mark Moorcroft
ERC Corp.
650-604-4784
mailto:mark.mo...@nasa.gov


"Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D."

ungelesen,
28.03.2012, 19:25:0428.03.12
an Discussion of Rocks Clusters, Moorcroft, Mark (ARC-TSM)[ERC, Inc.]

On 3/28/2012 7:07 PM, Moorcroft, Mark (ARC-TSM)[ERC, Inc.] wrote:
> Hi all,
>
> First time posting here. I have 2 (soon to be 3) clusters running Viper. I
> noticed today that neither head node recognizes about half the entries in
> /etc/hosts. Basically everything after the end of the 10.x.x.x range is
> ignored.

what is output
rocks list host
what is the content /etc/hosts


> One consequence is everything in /etc/hosts.local

not sure where hosts.local come from?
what is the content of /etc/hosts.local


> gets added to
> /etc/hosts by rocks sync config but then it¹s all ignored. The host
> command finds none of those entries. We have a second local net for
> storage traffic between the 10.x.x.x entries and the hosts.local entries.

what is your 2nd net
rocks list host interface
-LT

> In between is the entry for the external address and that is about where
> it all stops. Also, on my second cluster I just noticed that rocks never
> added the storage net entry for the last node to /etc/hosts. Strange it
> did the first few but not the last.
>

--
Hung-Sheng Tsao Ph D.
Founder& Principal
HopBit GridComputing LLC
cell: 9734950840

http://laotsao.blogspot.com/
http://laotsao.wordpress.com/
http://blogs.oracle.com/hstsao/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: laotsao.vcf
Type: text/x-vcard
Size: 608 bytes
Desc: not available
Url : https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20120328/a0c1d3b5/laotsao.vcf

Moorcroft, Mark (ARC-TSM)[ERC, Inc.]

ungelesen,
28.03.2012, 20:21:3728.03.12
an npaci-rocks...@sdsc.edu

Actually I figured out that I needed to do "rocks set network servedns
storage servedns=true” but the stuff in /etc/hosts.local is still ignored.
And actually I probably don’t want servedns on storage anyway since it’s
strictly for NFS traffic pretty much. Maybe the $64 question is if you can
edit /etc/hosts directly or not. The file header says no.



[Root@xxxxxxx ~]# rocks list host
HOST MEMBERSHIP CPUS RACK RANK RUNACTION INSTALLACTION
xxxxx: Frontend 16 0 0 os install
compute-0-0: Compute 24 0 0 os install
compute-0-1: Compute 24 0 1 os install
clip>>
compute-0-23: Compute 24 0 23 os installnas-0-0:
NAS Appliance 16 0 0 os install


[root@xxxxxxx ~]# cat /etc/hosts
# Added by rocks report host #
# DO NOT MODIFY #
# Add any modifications to #
# /etc/hosts.local file #

127.0.0.1 localhost.localdomain localhost

10.1.255.254 compute-0-0.local compute-0-0 c0-0 c0-0.local

clip>>
10.1.255.245 compute-0-9.local compute-0-9 c0-9 c0-9.local10.1.1.10 nas-0-0
.local nas-0-0
10.1.1.1 xxxxxx.local xxxxxx
xxx.xxx.xxx.xxx xxxxxx.xxx.nasa.gov
192.168.1.10 nas-0-storage.storage
192.168.1.1 xxxxxx-2-storage.storage
192.168.255.254 storage-0-0.storage c0-0.storage

clip>>
192.168.255.245 storage-0-9.storage c0-9.storage172.18.1.1 xxxxxx-ipmi.ipmi

# Imported from /etc/hosts.local

192.168.100.150 IOswitch
172.18.100.150 IPMIswitch
10.1.100.150 GBswitch
192.168.1.100 backup-pc.local backup-pc




[root@xxxxxx ~]# cat /etc/hosts.local
192.168.100.150 IOswitch
172.18.100.150 IPMIswitch
10.1.100.150 GBswitch
192.168.1.100 backup-pc.local backup-pc




[root@xxxxxx ~]# rocks list host interface
HOST SUBNET IFACE MAC IP NETMASK
MODULE NAME VLAN OPTIONS CHANNEL
xxxxxxx: private eth0 00:25:90:29:DD:C0 10.1.1.1 255.255.0.0
------ xxxxxxx ---- ------- -------
xxxxxxx: public eth1 00:25:90:29:DD:C1 143.232.156.94 255.255.254.0
------ xxxxxxx ---- ------- -------
xxxxxxx: storage eth2 00:1B:21:A8:AF:6A 192.168.1.1 255.255.0.0
------ xxxxxxx-storage ---- ------- -------
xxxxxxx: ipmi eth3 00:1B:21:A8:AF:6B 172.18.1.1 255.255.0.0
------ xxxxxxx-ipmi ---- ------- -------
compute-0-0: private eth0 00:25:90:70:e2:e6 10.1.255.254 255.255.0.0
------ compute-0-0 ---- ------- -------
compute-0-0: storage eth1 00:25:90:70:e2:e7 192.168.255.254 255.255.0.0
------ storage-0-0 ---- ------- -------
compute-0-1: private eth0 00:25:90:22:56:1a 10.1.255.253 255.255.0.0
------ compute-0-1 ---- ------- -------
compute-0-1: storage eth1 00:25:90:22:56:1b 192.168.255.253 255.255.0.0
------ storage-0-1 ---- ------- -------
clip>>
compute-0-22: private eth0 00:25:90:22:56:6a 10.1.255.232 255.255.0.0
------ compute-0-22 ---- ------- -------compute-0-22: storage eth1
00:25:90:22:56:6b 192.168.255.232 255.255.0.0 ------ storage-0-22
---- ------- -------
compute-0-23: private eth0 00:25:90:22:56:ea 10.1.255.231 255.255.0.0
------ compute-0-23 ---- ------- -------
compute-0-23: storage eth1 00:25:90:22:56:eb 192.168.255.231 255.255.0.0
------ storage-0-23 ---- ------- -------
nas-0-0: private eth0 00:25:90:26:bf:fe 10.1.1.10 255.255.0.0
------ nas-0-0 ---- ------- -------
nas-0-0: storage eth1 00:25:90:26:bf:ff 192.168.1.10 255.255.0.0
------ nas-0-storage



--


Mark Moorcroft
ERC Corp.
650-604-4784
mailto:mark.mo...@nasa.gov



On 3/28/12 4:25 PM, "Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D."

"Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D."

ungelesen,
28.03.2012, 21:59:2628.03.12
an Discussion of Rocks Clusters, Moorcroft, Mark (ARC-TSM)[ERC, Inc.]
if you want add some host by hand add them to dns not hosts file
please check this page
roll-documentation/base/5.4.3/dns.local.html
-LT

--
Hung-Sheng Tsao Ph D.
Founder & Principal


HopBit GridComputing LLC
cell: 9734950840

-------------- next part --------------


A non-text attachment was scrubbed...
Name: laotsao.vcf
Type: text/x-vcard
Size: 608 bytes
Desc: not available

Url : https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20120328/adb3f822/laotsao.vcf

Rémy Dernat

ungelesen,
29.03.2012, 04:43:2429.03.12
an Discussion of Rocks Clusters
Hi,

I know that there is a cron job from rocks which is overwriting /etc/hosts
regularly on master node.
Here, I use a script to add my host regularly (with a cron job too; every 5
minutes) in /etc/hosts directly (I do not use something like you :
/etc/hosts.local)

Sample :
# cat /etc/cron.d/check_cl_isem_etc_hosts
#!/bin/bash
if [[ `grep 10.1.2.55 /etc/hosts |wc -l` == 0 ]];then
echo "10.1.2.55 cluster-isem.local cluster-isem" >> /etc/hosts
echo "10.1.2.55 cluster-isem.mydomain.net" >> /etc/hosts
fi;


I think you can imagine something like this to edit /etc/resolv.conf too.

rocks sync config overwrite it too. Look at your cluster mysql database to
check that (the content is returned by rocks command).

I think it is not the best solution, but it is mine :)
Perhaps, you could try to insert your hosts in your database...

-Regards.


Le 29 mars 2012 03:59, "Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D." <
lao...@gmail.com> a écrit :

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20120329/bd4f2516/attachment.html

Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten