Research interests |
Publications |
Software |
System administration |
Short CV |
Personal
How to use the grid
Log into one of the machines where Globus is set-up and, depending on which shell you use, type:
- csh:
setenv GLOBUS_LOCATION /opt/grid/globus
setenv GPT_LOCATION /opt/grid/gpt
source $GLOBUS_LOCATION/etc/globus-user-env.csh
|
- bash:
export GLOBUS_LOCATION=/opt/grid/globus
export GPT_LOCATION=/opt/grid/gpt
. $GLOBUS_LOCATION/etc/globus-user-env.sh
|
Alternatively, you can include these lines in .cshrc or .bashrc, respectively.
The use of ALGOS grid comprises the acquisition of a user certificate. To request a user certificate, simply run:
Make sure you are running as your normal user account, not root. The grid-cert-request command will ask for a password to protect your key. When you run the grid-cert-request three files will be generated in your ~/.globus directory. One is the request that you need to send to the CA, named usercert_request.pem. Another is the key that corresponds to that request, named userkey.pem. The last is the usercert.pem, which will be a 0 byte file. This is not your certificate, it is merely a placeholder that helps to remind you where to put your certificate when the CA responds to your request.
Address an e-mail to
,
the CA administrator, and include your file ~/.globus/usercert_request.pem as an attachment. As soon as possible, your certificate will be mailed to you. When it arrives, save the attached file in your ~/.globus directory.
In the end, you should have a userkey.pem and a usercert.pem in your ~/.globus directory. Verify that these files have the following permissions:
chmod 444 ~/.globus/usercert.pem
chmod 400 ~/.globus/userkey.pem
|
In first place, run:
entering the pass phrase when asked. The proxy default expiration is 12 hours, but grid-proxy-init can also take arguments to specify the expiration:
grid-proxy-init -hours <hours>
|
Next, test whether Globus is running on the host:
globusrun -a -r <hostname>
|
You are now able to run any command using Globus only by typing:
globus-job-run <hostname> /bin/echo "Hello world!"
|
In order to run MPI-based jobs over Globus run:
globusrun -o -f <script.rsl>
|
The -o switch orders the output to be produced to standard out. The -f switch indicates the name of the .rsl script which should be used to run the MPI-based job.
In order to test the 'ring' example, which is a program that propagates a message among all grid machines, follow these steps:
- Copy the ring.c, ring.rsl and Makefile files to you account into the directory ~/<your_directory>/
- Build the executable:
- Modify the ring.rsl to reflect your new directory:
(directory="~/<your_directory>/")
(executable="~/<your_directory>/ring")
|
- Run the executable:
The output should be as in the ringout.txt file.
In order to shutdown the grid, run:
Research interests |
Publications |
Software |
System administration |
Short CV |
Personal