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
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
--
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
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