Table of Contents
Now, it is time to test your installation. First you can have a look on the ganglia monitor. Open your browser on http://localhost/ganglia/, and you should see something like:
Ganglia gstat command should work too:
[iggi@iggi ~]$ gstat -al
iggi.guibland.com
2 ( 0/ 141) [ 0.23, 0.26, 0.18] [ 0.4, 0.0, 0.1, 99.3, 0.3] OFF
node3.guibland.com
1 ( 0/ 56) [ 0.02, 0.08, 0.09] [ 5.3, 0.0, 0.3, 94.3, 0.0] OFF
node1.guibland.com
1 ( 0/ 56) [ 0.05, 0.10, 0.13] [ 5.1, 0.0, 0.3, 94.6, 0.0] OFF
node2.guibland.com
1 ( 0/ 56) [ 0.08, 0.11, 0.09] [ 5.1, 0.0, 0.3, 94.6, 0.0] OFFYou should take a look in Chapter 13, Administration of IGGI Nodes chapter.
[iggi@iggi ~]$ rshp2 $NKA -- id uid=12385(iggi) gid=100(users) groups=100(users),500(oar),12385(pvm) uid=12385(iggi) gid=100(users) groups=100(users),500(oar),12385(pvm) uid=12385(iggi) gid=100(users) groups=100(users),500(oar),12385(pvm)
Add a user in your cluster using the Section 13.10, “adduserNis.pl and deluserNis.pl” command. Login as this new user and copy the test_mpi.mpich script from /usr/share/doc/mpich/ to your home dir.
This example runs the test_mpi.mpich script using 4 nodes. If your cluster is ready to run, you should see a "Hello World" message for each node you have. Run the mpirun command as follows:
Running mpich version "Hello world"
[iggi@iggi ~]$ cp -v /usr/share/doc/mpich-1.2.5.2/test_mpi.mpich ~/ `/usr/share/doc/mpich-1.2.5.2/test_mpi.mpich' -> `/home/nis/iggi/test_mpi.mpich' [iggi@iggi ~]$ mpirun -np 5 ./test_mpi.mpich iggi.guibland.com: Sending Hello World! |- node3.guibland.com Hello World! |- node2.guibland.com Hello World! |- node1.guibland.com Hello World! |- node1.guibland.com Hello World!
Add a user in your cluster using the Section 13.10, “adduserNis.pl and deluserNis.pl” command. Login as this new user and copy the test_mpi.lam script from /usr/bin to your home directory.
Start LAM using the "lamboot" command. No error messages should appear.
This example runs the test_mpi.lam script using 4 nodes. If your cluster is ready to run, you should see a "Hello World" message for each node you have. Run the mpirun-lam command as follows:
Running lam version "Hello world"
[iggi@iggi ~]$ cp -v /usr/bin/test_mpi.lam ~/ `/usr/bin/test_mpi.lam' -> `/home/nis/iggi/test_mpi.lam' [iggi@iggi ~]$ lamboot LAM 7.1.2/MPI 2 C++/ROMIO - Indiana University [iggi@iggi ~]$ mpirun-lam -np 4 ./test_mpi.lam node1.guibland.com: Sending Hello World! |- iggi.guibland.com Hello World! |- node2.guibland.com Hello World! |- node3.guibland.com Hello World!