[Beowulf] All the Cluster - mpich - tstmachines - Help - please

Ernesto Gamez ernestogamez at gmail.com
Wed Jul 19 19:43:18 PDT 2006


Excuse me for my English lenguage, but I dont speak very well, thanks....
and excuse me, for put all this information,




Well, I tried the  solutions that you send me
 but I cant make run tstmachines ok.

I send this , becouse maybe, I have mistakes in another thing...

 this is the procediment for make cluster
____________________________________________________
Software:
FreeBSD 6.1
Mpich 1.2.7
LAM/mpi 7.1.2

Hardware:
4 computers
64 RAM
6gb HDD
pentium III

Networking:
switch 8 ptos
____________________________________________________
I have conect the 4 computersin star topology
I installed freebsd in the master node
          standar installation
          all space in disk
          the distribution to install is  X-Developer
          network configuration
                  host: nodo1.cluster.dominio.com
                  domain: cluster.dominio.com
                  IP: 192.168.1.1
                   Name server: nothing
          gateway: no
          network services: no
          ftp anonimo: no
          NFS server: yes

-----------------------------------------------------------------------------------------
          /etc/exports

         /usr /usr/home /usr/local/lam_mpi /usr/src /usr/obj nodo2 nodo3 nodo4
         /var   nodo2 nodo3 nodo4
         /cdrom  nodo2 nodo3 nodo4
     ----------------------------------------------------------
      Client NFS: No

      install, the basic components and kde3

      create just one user: userone
_____________________________________________________

run bsd

login with Root user, all the times,
_____________________________________________________________________________________

I installed Freebsd same in the others computers, but when ask it for
the create "nfs server" I select No and  I select create "client
server"

-------------------------------------------------------------------------------------------------------------------------------
the files in the master node are,,,
-------------------------------------------------------------------------------------------------------------------------------
/etc/hosts
----------------------------------------------------------------------------------------------
127.0.0.1 localhost.cluster.dominio.com nodo1

192.168.1.1 		nodo1 nodo1.cluster.dominio.com
192.168.1.10 		nodo2 nodo2.cluster.dominio.com
192.168.1.11 		nodo3 nodo3.cluster.dominio.com
192.168.1.12 		nodo4 nodo4.cluster.dominio.com
----------------------------------------------------------------------------------------------

/etc/rc.conf
----------------------------------------------------------------------------------------------
background_dhclient="YES"
compac5x_enable="YES"
gateway_enable="YES"

hostname="nodo1"
ifconfig_x10="inet 192.168.1.1 netmask 255.255.255.0"
inetd_enable="YES"
sendmail_enable="NONE"

keymap="us.iso"
linux_enable="YES"
moused_enable="YES"

nfs_client_enable="YES"
nfs_server_enable="YES"
portmap_enable="YES"
rpcbind_enable="YES"
nfsd_enable="YES"
mountd_flags="-r -t"

sshd_enable="YES"
usbd_enable="YES"

xntpd_enable="YES"
ntpd_enable="YES"
ntpdate_flags="192.168.1.1"
ntpdate_enable="YES"
---------------------------------------------------------------------------------------------------------

/etc/hosts.equiv
---------------------------------------------------------------------------------------------------------
nodo1 nodo1.cluster.dominio.com
nodo2 nodo2.cluster.dominio.com
nodo3 nodo3.cluster.dominio.com
nodo4 nodo4.cluster.dominio.com
----------------------------------------------------------------------------------------------------------

/etc/inetd.conf
---------------------------------------------------------------------------------------------------------
shell	stream	tcp	nowait	root	/usr/libexec/rshd	rshd -n -l -4
login	stream	tcp	nowait	root	/usr/libexec/rlogind	rlogind
----------------------------------------------------------------------------------------------------------

/etc/ssh/sshd.config
----------------------------------------------------------------------------------------------------------
PermitRootLogin yes
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile	.ssh/authorized_keys
UseDNS No
----------------------------------------------------------------------------------------------------------

/etc/bash.bashrc.local
---------------------------------------------------------------------------------------------------------
PATH=/usr/local/bin:/usr/bin:
/usr/X11R6/bin:/bin:/usr/sbin:/sbin:$PATH
P4_RSHCOMMAND=rsh
export PATH P4_RSHCOMMAND
---------------------------------------------------------------------------------------------------------

profile.local
---------------------------------------------------------------------------------------------------------
PATH=/usr/local/bin:/usr/bin:
/usr/X11R6/bin:/bin:/usr/sbin:/sbin:$PATH
P4_RSHCOMMAND=rsh
export PATH P4_RSHCOMMAND
---------------------------------------------------------------------------------------------------------

/root/.rhosts
-----------------------------------------------------------------------------------------------------------
nodo1.cluster.dominio.com
nodo2.cluster.dominio.com
nodo3.cluster.dominio.com
nodo4.cluster.dominio.com
-----------------------------------------------------------------------------------------------------------

/root/.ssh/authorized_keys
-----------------------------------------------------------------------------------------------------------
ssh-rsa   ........keyletters.....................   == root at nodo1
ssh-rsa   ........keyletters.....................   == root at nodo2
ssh-rsa   ........keyletters.....................   == root at nodo3
ssh-rsa   ........keyletters.....................   == root at nodo4
------------------------------------------------------------------------------------------------------------

/usr/X11R6/lib/X11/xinit/xinitrc
------------------------------------------------------------------------------------------------------------
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    /usr/X11R6/bin/xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    /usr/X11R6/bin/xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    /usr/X11R6/bin/xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    /usr/X11R6/bin/xmodmap $usermodmap
fi

# start some nice programs

/usr/X11R6/bin/twm &
#/usr/X11R6/bin/xclock -geometry 50x50-1+1 &
/usr/X11R6/bin/xterm -geometry 80x50+494+51 &
#/usr/X11R6/bin/xterm -geometry 80x20+494-0 &
exec /usr/X11R6/bin/xterm -geometry 80x66+0+0 -name login
---------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------

for the nodes 2,3,4 all the files is same, but the file "rc.conf", and
the file "authorized_keys" are diferent
/etc.rc.conf
------------------------------------------------------------------------------------------------------------------
background_dhclient="YES"
hostname="nodo3"
compat5x_enable="YES"

ifconfig_xl0="inet 192.168.1.11 netmask 255.255.255.0"
inetd_enable="YES"

keymap="us.iso"
linux_enable="YES"
moused_enable="YES"
nfs_client_enable="YES"

sshd_enable="YES"
usbd_enable="YES"
##rsh_enable="YES"

nfsd_enable="YES"
nfs_client_enable="YES"
portmap_enable="YES"
mount_flags="-r"

xntpd_enable="YES"
ntpd_enable="YES"
ntpdate_flags="192.168.1.1"
ntpdate_enable="YES"
--------------------------------------------------------------------------------------------------------------------

/root/.ssh/authorized_keys              in all nodes
-----------------------------------------------------------------------------------------------------------
ssh-rsa   ........keyletters.....................   == root at nodo1
----------------------------------------------------------------------------------------------------------------------

I configured the ssh with root
#ssh-keygen -t rsa
enter
enter
enter
enter

copy the content of the file "id_rsa.pub" of node to file
"authorized_keys" in masternode and copy the same again inthe
masternode and nodes

now I can login only write in the masternode
#ssh nodo3
and I cant see all the files in thecomputer nodo3, and in the computer
nodo3 i write
#ssh nodo1
and i can see the nodo1 to do all things

the same with rsh nodo1 and rsh nodo2,3,4,
----------------------------------------------------------------------------------------------------
later I installed the mpich, with root

#./configure --prefix=/usr/local/mpich-1.2.7
#gmake

I modified the file /usr/local/mpich-1.2.7/share/machine.freebsd
----------------------------------------------------------------------------------------------------------------
nodo1.cluster.dominio.com
nodo2.cluster.dominio.com
nodo3.cluster.dominio.com
nodo4.cluster.dominio.com
----------------------------------------------------------------------------------------------------------------

and is all the files, that I modified, later I tried the tstmachinces
-v and I have the problems to conect with the nodes,


please, Help me,...


and thanks for the help to all people



More information about the Beowulf mailing list