150 likes | 343 Views
Running SRB. Ananta Manandhar. Pre Install Tasks. Create SRB admin Group #groupadd demo Create SRB user #useradd –d /home/srbdemo –m –g demo srbdemo #passwd srbdemo. Download Tasks. Download SRB (current latest ver 2.1.2+patch1+patch2 ) http://www.npaci.edu/dice/srb/tarfiles/main.html
E N D
AHM -2-4 Sept 2003 e-Science Centre Running SRB Ananta Manandhar
AHM -2-4 Sept 2003 e-Science Centre Pre Install Tasks • Create SRB admin Group • #groupadd demo • Create SRB user • #useradd –d /home/srbdemo –m –g demo srbdemo • #passwd srbdemo
AHM -2-4 Sept 2003 e-Science Centre Download Tasks • Download SRB (current latest ver 2.1.2+patch1+patch2 ) • http://www.npaci.edu/dice/srb/tarfiles/main.html • Download PGP decryption software (Intl. version) • http://www.pgpi.org/products/pgp/versions/freeware/ • Download and install Java • http://java.sun.com • Use PGP to decrypt SRB tar file • #pgp SRB2_1_2_n_patch.tar • Enter passpharse
AHM -2-4 Sept 2003 e-Science Centre Configuring Database • Download PostgreSQL • http://www.postgresql.org/ • Download ODBC Driver (for versions later than 7.3) • ftp://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-07.03.0100.tar.gz
AHM -2-4 Sept 2003 e-Science Centre Installing SRB using install.pl script • This script enables a basic installation of Postgres enabled SRB. • Configures postgres • Builds Postgres, Postgres-ODBC & SRB • Initializes the Database • Ingests MCAT tables • Updates configuration Files • Provides access to local disk space as an SRB resource • http://www.npaci.edu/DICE/SRB/tarfiles/install.pl
AHM -2-4 Sept 2003 e-Science Centre Installing SRB using install.pl script 2 • Copy PostgreSql, Postgre-ODBC, SRB tar and install.pl to a new directory • # cp install.pl /srb • # cp postgresql-7.3.3.tar.gz /srb • # cp psqlodbc-08.03.0100.tar.gz /srb • # cp SRB2_1_2_n_patch.tar /srb • Edit first few lines of install.pl . This script will then install each package under this current directory as well as the storage area. • This script can then be used to start/stop postgres and SRB servers and to view the list of running processes
AHM -2-4 Sept 2003 e-Science Centre Editing install.pl • The Variables in install.pl are matched accordingly • $SRB_FILE="SRB2.1.2.tar"; • $SRB_FILE_ALREADY_DECRYPTED=1; • $SRB_DIR="SRB2"; • $POSTGRES_FILE="postgresql-7.3.3.tar"; • $ODBC_FILE="psqlodbc-07.03.0100.tar"; • $DB_NAME="MCAT"; • $YOUR_ADMIN_NAME="srbdemo"; • $YOUR_ADMIN_PW=“srb"; • $YOUR_DOMAIN=“allhands"; • $RESOURCE_NAME=“allhandsResource"; • $RESOURCE_DIR="$startDir/Vault"; • $IP_ADDRESS_LOCALHOST=“130.246.143.151";
AHM -2-4 Sept 2003 e-Science Centre Starting installation • To Start installation • # /srbusr/srb/install.pl • Some minor issues with the script and its workaround • It requires postgresql tar file as postgresql-7.3.3.tar without the letters ‘base’ as it expects installation dir name to be same as tar file name. • Some source files expect java to be located at /usr/local/apps/jdk1.4.1/bin – Hence softlinks may need to be created • Keep the Srb Admin name same as unix account eg srbusr
SRB SRB SRB SRB Vault Vault Vault MCAT Vault AHM -2-4 Sept 2003 e-Science Centre SRB Deployment Scenario User SRB Domain
AHM -2-4 Sept 2003 e-Science Centre Starting SRB • To Start SRB • Use the install.pl to start SRB, MCAT and Postgres database • ./install.pl start • To Stop SRB • ./install.pl stop • To View SRB processes • ./install.pl ps
AHM -2-4 Sept 2003 e-Science Centre Using InQ • InQ is a client windows application used to store and retrieve files from SRB. It can be downloaded from • InQ requires certain parameters to know the MCAT enabled server to which it should connect. • Name: srbdemo • Host: solitaire.esc.rl.ac.uk • Domain: allhands • Port: 5544 • Authorization: ENCRYPT1 • Password: ***
AHM -2-4 Sept 2003 e-Science Centre InQ Login
AHM -2-4 Sept 2003 e-Science Centre InQ (SRB Windows Client)
AHM -2-4 Sept 2003 e-Science Centre Administering SRB • To Start GUI Admin Tool • # cd $install/MCAT/java • # gmake run
AHM -2-4 Sept 2003 e-Science Centre • Questions ?