You are on page 1of 10

GTAI1.0.

1
GlobusToolkitAutoInstallation
Latestversionof1.0.1publishedonFebruary2009
ThisutilityhasbeendevelopedbytheResearchteamheadedby
Prof.S.ThamaraiSelvi(stselvi@annauniv.edu)at
CentreforAdvancedComputingResearchandEducation,
DepartmentofInformation&Technology,MadrasInstituteofTechnology,
AnnaUniversity,
TamilNadu,
INDIA.

Introduction
The Development of Globus Toolkit Auto Installation aims at the
creationofGridEnvironmentsetupwitheaseandcomfortwhichperforms
the automation of various versions of globus toolkit installation and
configuration. This version support the installation and configuration of
lrmsoftypePBSandSGE.

Acknowledgement
TheGlobusToolkitAutoInstallationUtilityisapartoftheresearch
activities of Centre for Advanced Computing Research and Education
(CARE)which isfunded byMinistryof Communication andInformation
Technology,DepartmentofInformationTechnology,NewDelhi,INDIA.

CopyrightsreservedCARE@MIT

TableofContents
PageNo
(i)

UsersGuide..

(ii)

VerificationofGlobusToolkit.

CopyrightsreservedCARE@MIT

GTAI1.0.1
GlobusToolkitAutoInstallationUserGuide

TestedPlatform
(a)FedoraCore(FC3,FC4,FC6,FC8,FC9)
(b)CentOS(Version5)
(c)ScientificLinux(SL4,SL5)
(d)RHEL(4,5)

GTAI1.0.1Installationsteps
(i) DownloadthesoftwarebundleGTAI1.0.1.tar.gzandcopythebundletothe

location/usr/local
(ii)Untarthebundleusingthefollowingsteps

(a)As'root'user,changetothedirectory/usr/local
cd/usr/local
(b)UntartheGTAI1.0.1.tar.gz
tarzxvfGTAI1.0.1.tar.gz
(iii)Makesurethatthefollowingfilesarepresentinthedirectory/usr/local
(a)README
(b)auto.cfg
(c)GTAI_install.sh
(d)GridSoftware.tar.gz
(iv) GTAIusestheconfigurationfile(auto.cfg)fortheautomaticinstallationof

Globustoolkit.Theconfigurationfileshouldbesuitablymodifiedfortheglobus
installation.HereisthesampleofGTAIconfigurationfilewithcomments

CopyrightsreservedCARE@MIT

Sampleauto.cfgfile

#IP_ADDRESS:IpAddressofyourhostmachine&shouldnotbeempty
#MakesurethatthesameIPaddresshasbeenpresentin/etc/hostsfile
#e.gIP_ADDRESS:10.2.0.1
IP_ADDRESS:172.16.10.51
#USERNAME:Nameofthethirdpartyuserforgettingusercertificate
#e.gUSERNAME:guser01
USERNAME:guser01
#LRMS:NameoftheLocalResourceManagementSystem.(PBSorSGE)
#e.gLRMS:SGE
LRMS:PBS
#GLOBUS_VERSION:VersionofGlobusToolKit
#e.gGLOBUS_VERSION:globus4.0.3
GLOBUS_VERSION:globus4.0.7
#GLOBUS_CONFIG_OPTION:GlobusToolKitConfigurationOptions
#e.gGLOBUS_CONFIG_OPTION:enableprewsmdsenablewsgram
pbs
enablei18nenabledrsenablegridwaywith
gridwayargs="withdb=no"
#DefaultConfigwillbeenabledifnotset
GLOBUS_CONFIG_OPTION:

(a)Replacethevalue172.16.10.51withyourIPaddressinthelineIP_ADDRESS:
(b)Specifythethirdpartyusernameguser01(OPTIONAL)
(c )SpecifytheLRMSnamePBSorSGE
(d)Specifytheglobusversionneededfortheinstallationglobus4.2.0 orglobus
4.2.1 or globus4.0.8 or globus4.0.7 or globus4.0.3 in the line
GLOBUS_VERSION:
(e) Globus configuration option can be of customized one by specifying the variable
GLOBUS_CONFIG_OPTION: oritcanbeleftblankforthedefaultconfigurationtotake
place.

CopyrightsreservedCARE@MIT

(vi) GlobusinstallationrequiresthesettingofEnvironmentvariables.Thesettingofvariables
canbemadeusingthefollowingsteps
(a)Addthefollowingenvironmentvariablesinthefilenamed/etc/profilebeforetheline
exportPATHUSERLOGNAMEMAILHOSTNAMEHISTSIZEINPUTRC.
JAVA_HOME=/usr/java/jdk1.5.0
ANT_HOME=/usr/local/ant1.6.4
CATALINA_HOME=/usr/local/tomcat5.0.27
JUNIT_HOME=/usr/local/junit3.8.1
PBS_HOME=/var/spool/PBS
GLOBUS_LOCATION=/usr/local/globus4.0.7
GRID_SECURITY_DIR=/etc/gridsecurity
GRIDMAP=/etc/gridsecurity/gridmapfile
GLOBUS_HOSTNAME=`/bin/hostname`
SGE_ROOT=/usr/local/sge
PATH=$JAVA_HOME/bin:/bin/tar:$ANT_HOME/bin:$PATH:$CATALINA_HOME/bin:
$GLOBUS_LOCATION/bin:$GLOBUS_LOCATION/sbin:/usr/local/bin
CLASSPATH=$JAVA_HOME/lib/tools.jar:$CLASSPATH:$JUNIT_HOME/junit.jar
LD_LIBRARY_PATH=$GLOBUS_LOCATION/lib:$LD_LIBRARY_PATH
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
JAVA_HOME CLASSPATH ODBCINI CATALINA_HOME JUNIT_HOME PBS_HOME
GLOBUS_LOCATION GRID_SECURITY_DIR GRIDMAP GLOBUS_HOSTNAME
ANT_HOMELD_LIBRARY_PATHSGE_ROOT
(b) Comment the line export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE
INPUTRCasshownbelow
#exportPATHUSERLOGNAMEMAILHOSTNAMEHISTSIZEINPUTRC

(c )Verifytheenvironmentvariablebyusingthefollowingcommands
source/etc/profile
echo$JAVA_HOME
echo$ANT_HOME
echo$CATALINA_HOME
echo$JUNIT_HOME
echo$PBS_HOME
echo$GLOBUS_LOCATION
echo$GLOBUS_HOSTNAME
ifanyvariablehavenotset,repeatthepreviousstep((vi)(a))andmodifyaccordingly.

CopyrightsreservedCARE@MIT

(vii)Gotothelocation/usr/local(cd/usr/local).Ensurethefollowingfilesarepresent
inthislocation.Thiscanbedoneusingthecommand"ls"inthelocation/usr/local.
(1)auto.cfg
(2)GTAI_install.sh
(3) GridSoftware.tar.gz
(4) README

(viii)RunthescriptGTAI_install.shasshownbelow
/bin/shGTAI_install.sh
(Makesurethatyouareinthelocation/usr/local)
Thisscriptautomaticallysetsuptheglobusenvironmentandtheinstallationmayrunfor
onehourandfortyfiveminutesdependingonthesystem.
Note:Anyerrorwhichoccursduringthisrunningofscriptmaystoptheinstallationprocess
and the reason for the failure of the GT installation can be obtained from the file
/tmp/log.txt

(ix)Aftertheinstallationcomplete,amessageisdisplayedaboutthestatusoftheinstallation.A
completeloginformationoftheGlobusinstallationcanbeobtainedfromfile/tmp/log.txt.

Troubleshooting:
It is recommended for the users to subscribe for gtautoinstalluser groups
(http://dev.globus.org/wiki/Incubator/GT_Auto_Install) for anykindofsupport regarding the
globustoolkitinstallation.Registereduserscanmailto gtautoinstalluser@lists.globus.org
foranyqueriesanderrors.

CopyrightsreservedCARE@MIT

VerificationofGlobusToolkit
VerificationofGlobustoolkitrequiresthefollowingsteps
(i) TestingofGlobuscontainer
(a)Asrootuser,startthepostgresdatabaseasfollows
servicepostgresqlstart
(b)Loginasglobususerasfollows
suglobus
(c )Starttheglobuscontainerusingthefollowingcommand
globusstartcontainer
(d)Youmayfindasetofservicesrunningasfollows
SampleOutput
[1]:https://172.16.10.52:8443/wsrf/services/AdminService
[2]:https://172.16.10.52:8443/wsrf/services/AttachmentTestService
[3]:https://172.16.10.52:8443/wsrf/services/AuthzCalloutTestService
[4]:https://172.16.10.52:8443/wsrf/services/CASService
[5]:https://172.16.10.52:8443/wsrf/services/ContainerRegistryEntryService
[6]:https://172.16.10.52:8443/wsrf/services/ContainerRegistryService
[7]:https://172.16.10.52:8443/wsrf/services/CounterService
*
*
*
*
[63]:https://172.16.10.52:8443/wsrf/services/mds/test/httpsource/IndexService
[64]:https://172.16.10.52:8443/wsrf/services/mds/test/httpsource/IndexServiceEntry
[65]:https://172.16.10.52:8443/wsrf/services/mds/test/subsource/IndexService
[66]:https://172.16.10.52:8443/wsrf/services/mds/test/subsource/IndexServiceEntry
[67]:https://172.16.10.52:8443/wsrf/services/mds/test/usefulrp/IndexService
[68]:https://172.16.10.52:8443/wsrf/services/mds/test/usefulrp/IndexServiceEntry

Note:
Globusservicesmayvarydependingupontheversions.
CopyrightsreservedCARE@MIT

(ii)TestingofGlobuscomponentMDS4
(a)Loginasthirdpartyuserusingthefollowingcommand
suguser01
(b)Makesurethatthisthirdpartyuserhasavalidcredential.
gridproxyinfo>forverificationofvalidproxycertificate
gridproxyinit>forgeneratingproxycredential
(c )Querytheresourceinformationusingthefollowingcommand
wsrfqueryshttps://YourIP:8443/wsrf/services/DefaultIndexService
Note:
YourIPrepresentstheIPaddressofyourmachine.
Sampleoutput
<ns0:IndexRPxmlns:glue="http://mds.globus.org/glue/ce/1.1"
xmlns:metric="http://mds.globus.org/metadata/2005/02"
.
.
.
.
<ns9:AggregatorData>
<ns1:GLUECExmlns:ns1="http://mds.globus.org/glue/ce/1.1">
<ns1:ComputingElementns1:Name="default"ns1:UniqueID="default">
<ns1:Infons1:GRAMVersion="4.2.1"ns1:HostName="autoinstall2.grid"
ns1:LRMSType="Fork"ns1:LRMSVersion="1.0"ns1:TotalCPUs="2"/>
<ns1:Statens1:EstimatedResponseTime="0"ns1:FreeCPUs="0"
ns1:RunningJobs="0"ns1:Status="enabled"ns1:TotalJobs="0"
ns1:WaitingJobs="0"ns1:WorstResponseTime="0"/>
<ns1:Policyns1:MaxCPUTime="1"ns1:MaxRunningJobs="1"
ns1:MaxTotalJobs="1"ns1:MaxWallClockTime="1"ns1:Priority="0"/>
</ns1:ComputingElement>
</ns1:GLUECE>
CopyrightsreservedCARE@MIT

(iii)VerificationofglobuscomponentRFT
(a)Loginasthirdpartyuserusingthefollowingcommand
suguser01
(b)CheckwhethertheGridFTPserverisrunningwhichcanbedoneusingthe
followingcommand
netstatan|grep2811
Youshouldgettheoutputsimilartothefollowingline
tcp00:::2811:::*LISTEN
(c )createafilenamed/tmp/rft.xfrwiththefollowingcontents

true
16000
16000
false
1
true
1
null
null
false
10
gsiftp://autoinstall2.grid:2811/etc/group
gsiftp://autoinstall2.grid:2811/tmp/rftTest.txt
Note:Replacethecontentautoinstall2.gridwithyourhostname.
(d)Runthecommandrfthautoinstall2.gridf/tmp/rft.xfr
Note:Replacethecontentautoinstall2.gridwithyourhostname.
(e)VerifythecontentsofthedestinationfilerftTest.txtissimilartothatofthe
one/etc/group
CopyrightsreservedCARE@MIT

(iv)VerificationofglobuscomponentGRAM.
(a)Loginasthirdpartyuserandrunthefollowingcommandtosubmitjobto
GRAMcomponent
suguser01
globusrunwssubmitsc/bin/hostname
Sampleoutput:

Delegatingusercredentials...Done.
Submittingjob...Done.
JobID:uuid:35489900e85811dd9fab001e908e0d8b
Terminationtime:01/22/300907:42GMT
Currentjobstate:Active
Currentjobstate:CleanUpHold
autoinstall2.grid
Currentjobstate:CleanUp
Currentjobstate:Done
Destroyingjob...Done.
Cleaningupanydelegatedcredentials...Done.

Note:
(i)Makesurethatglobuscontainerisrunning.
(ii)Yourshouldobtainthehostnameofyourmachineasoftheoutput
autoinstall2.grid

CopyrightsreservedCARE@MIT

10

You might also like