Let see how to install globus-2.4.3 middleware.
Prerequsites for installing globus
Prerequisite
Before starting the Installation of Globus Toolkit on different hosts following is the prerequisite:
• SUDO permission is required.
• Checking of the Operating System with kernel version.
#More /etc/redhat-releases
• Verification of the GPT version. It should be gpt3.0.1 for installing Globus Toolkit 2.4.3.
• Checking of the mpich version.
• Verification of the Version of Gnu C Compiler (gcc)
#gcc –version
• Verification of the version of Perl. It should be above 5.0.
#perl –version
• Create the directory ‘globus-2.4.3’ where to install the Globus Toolkit.
#Mkdir globus-2.4.3
• Create the directory ‘gpt-3.0.1’ where to install the GPT.
#Mkdir gpt-3.0.1
• Setting of the Globus installation path using export.
#Export GLOBUS_LOCATION=<Globus_Location>
• Setting of the GPT installation path using export.
#Export GPT_LOCATION=<Gpt_Location>
• Unsetting of the LANG variable from the environment. This is optional as depends on the OS.
#Unset LANG
• Setup NTP sync. This is required for globus. If the date mismatches, then the globus will throw error.
#ntpdate –u <IP_addr>
Installation
To install globus-2.4.3, we need GPT (Grid-Packaging-Toolkit) version – 3.0.1. GPT will be installed and with the help of GPT will be installing globus-2.4.3
Installing of GPT package
Unzip and untar the file:
#tar –xvzf gpt-3.0.1-src.tar.gz
This will create a directory named “gpt-version/”. cd into the directory:
#cd gpt-3.0.1
Run build_gpt. This will install GPT into $GPT_LOCATION.
./build_gpt
Installation of Globus Toolkit bundles
Install the bundles by using the “gpt-build” program included in the newly built GPT.
# $GPT_LOCATION/sbin/gpt-build -verbose <Globus-bundles> <flavor>
Below is an example of Globus bundle compilation on Linux.
# $GPT_LOCATION/sbin/gpt-build -verbose globus-data-management-client-2.2.4-src_bundle.tar.gz gcc32dbg
# $GPT_LOCATION/sbin/gpt-build -verbose globus-data-management-server-2.2.4-src_bundle.tar.gz gcc32dbg
# $GPT_LOCATION/sbin/gpt-build -verbose globus-data-management-sdk-2.2.4-src_bundle.tar.gz mpicc32mpi gcc32dbg
# $GPT_LOCATION/sbin/gpt-build -verbose globus-information-services-client-2.2.4-src_bundle.tar.gz gcc32dbg
# $GPT_LOCATION/sbin/gpt-build -verbose globus-information-services-server-2.2.4-src_bundle.tar.gz gcc32dbg
# $GPT_LOCATION/sbin/gpt-build -verbose globus-information-services-sdk-2.2.4-src_bundle.tar.gz mpicc32mpi gcc32dbg
# $GPT_LOCATION/sbin/gpt-build -verbose globus-resource-management-client-2.2.4-src_bundle.tar.gz gcc32dbg
# $GPT_LOCATION/sbin/gpt-build -verbose globus-resource-management-server-2.2.4-src_bundle.tar.gz gcc32dbg
# $GPT_LOCATION/sbin/gpt-build -verbose globus-resource-management-sdk-2.2.4-src_bundle.tar.gz mpicc32mpi gcc32dbg
Run the postinstall command
Execute the post-install script after all bundles’ get installed
# $GPT_LOCATION/sbin/gpt-postinstall
Run the postinstall command
Execute the post-install script after all bundles’ get installed
# $GPT_LOCATION/sbin/gpt-postinstall
Install the GARUDA-CA setup hash tar ball
# $GPT_LOCATION/sbin/gpt-build -install –only globus_simple_ca_11e04bd9_setup-0.12.tar.gz gcc32dbg
Run the postinstall
# $GPT_LOCATION/sbin/gpt-postinstall
Run the simple-CA setup distribution package with the default option
#$GLOBUS_LOCATION/setup/globus_simple_ca_11e04bd9_setup/setup-gsi –default
Now Globus has been installed completely.
Globus Configuration
gsigatekeeper – GRAM
Create a file /etc/xinetd.d/globus-gatekeeper with the following contents
service gsigatekeeper
{
socket_type = stream
protocol = tcp
wait = no
user = root
env = LD_LIBRARY_PATH=$GLOBUS_LOCATION/lib
server = $GLOBUS_LOCATION/sbin/globus-gatekeeper
server_args = -conf $GLOBUS_LOCATION/etc/globus-gatekeeper.conf
disable = no
env = GLOBUS_TCP_PORT_RANGE=40000,40500
}
gsiftp - GridFTP
Create a file /etc/xinetd.d/gsiftp with the following contents:
service gsiftp
{
instances = 1000
socket_type = stream
wait = no
user = root
env = LD_LIBRARY_PATH$GLOBUS_LOCATION/lib
server = $GLOBUS_LOCATION/sbin/in.ftpd
server_args = -l -a -G /opt/gt2
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
disable = no
env = GLOBUS_TCP_PORT_RANGE=40000,40500
}
Add services to /etc/services
Add the following the services in
gsigatekeeper 2119/tcp # Globus Gatekeeper
gsiftp 2811/tcp # Globus GridFTP
Start the service
#service xinetd restart
Obtaining Certificates
Host Certificates
This host certificates should be generated for each Resource Providing site. This should be generated as root.
• Generate host certificates
# grid-cert-request -service host –host <FQDN of Host>
· This all certificates will be placed in /etc/grid-security/
· Once it is signed you will get hostcert.pem which you need to put in the /etc/grid-security/ directory
User cerificate
#grid-cert-request -cn san
Creation of Grid-Mapfile
Create the file /etc/grid-security/grid-mapfile will consists of 2 entries. One is DN and other is local user account. This is for mapping the remote user to the local user account.
#vim /etc/grid-security/grid-mapfile
“/C=IN/O=galore/OU=linuxgalore/OU=linuxgalore.com/CN=san” san
Testing Globus
GRAM Testing
#telnet localhost 2119
Generate Proxy
$grid-proxy-init
Authentication
$globusrun –a –r <FQDN>
Job Submission
#globus-job-run <FQDN> /bin/date
GridFTP
#telnet localhost 2811
Copy files using gsiftp
$globus-url-copy gsiftp://<FQDN>/~/.bashrc gsiftp://<FQDN>/tmp/filename
Popularity: 66% [?]
Share This
Filed under: Grid Middlewares, Grid Computing
Leave a Reply