Changes between Version 20 and Version 21 of installation_QCG_BES_AR

Show
Ignore:
Timestamp:
05/20/11 08:13:59 (13 years ago)
Author:
bartek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • installation_QCG_BES_AR

    v20 v21  
    6262#!div style="font-size: 90%" 
    6363{{{#!sh 
    64 $ . $GLOBUS_LOCATION/etc/globus-user-env.sh  
    65 $ tar xzf smoa-core-latest.tar.gz  
    66 $ cd smoa-core-2.0.4 
    67 $ ./configure --prefix=/opt/QCG/smoa --with-globus-flavor=gcc64dbg 
    68 $ make 
    69 $ sudo make install 
     64 . $GLOBUS_LOCATION/etc/globus-user-env.sh  
     65 tar xzf smoa-core-latest.tar.gz  
     66 cd smoa-core-2.0.4 
     67 ./configure --prefix=/opt/QCG/smoa --with-globus-flavor=gcc64dbg 
     68 make 
     69 sudo make install 
    7070  }}} 
    7171}}} 
     
    8080#!div style="font-size: 90%" 
    8181{{{#!sh 
    82 $ tar xzf smoa-comp-latest.tar.gz  
    83 $ cd smoa-comp-2.2 
    84 $ ./configure --prefix=/opt/QCG/smoa/ --with-smoa-core=/opt/QCG/smoa/ 
    85 $ make 
    86 $ sudo make install 
     82tar xzf smoa-comp-latest.tar.gz  
     83cd smoa-comp-2.2 
     84./configure --prefix=/opt/QCG/smoa/ --with-smoa-core=/opt/QCG/smoa/ 
     85make 
     86sudo make install 
    8787  }}} 
    8888}}} 
     
    9494#!div style="font-size: 90%" 
    9595{{{#!sh 
    96 # useradd -d  /opt/QCG/smoa/var/log/smoa-comp/ -M  smoa_comp 
     96useradd -d  /opt/QCG/smoa/var/log/smoa-comp/ -M  smoa_comp 
    9797  }}} 
    9898}}} 
     
    105105#!div style="font-size: 90%" 
    106106{{{#!sh 
    107  # su - postgres 
    108  $ createuser -P smoa_comp  
    109  $ exit 
     107su - postgres 
     108createuser -P smoa_comp  
     109exit 
    110110  }}} 
    111111}}} 
     
    115115#!div style="font-size: 90%" 
    116116{{{#!sh 
    117  # su - smoa_comp 
    118  $ createdb -U smoa_comp smoa_comp 
    119  $ exit 
     117su - smoa_comp 
     118createdb -U smoa_comp smoa_comp 
     119exit 
    120120  }}} 
    121121}}} 
     
    125125#!div style="font-size: 90%" 
    126126{{{#!default 
    127  local   smoa_comp   smoa_comp                         md5 
    128  host    smoa_comp   smoa_comp   127.0.0.1/32          md5 
     127local   smoa_comp   smoa_comp                         md5 
     128host    smoa_comp   smoa_comp   127.0.0.1/32          md5 
    129129  }}} 
    130130}}}  
     
    136136#!div style="font-size: 90%" 
    137137{{{#!sh 
    138  # /etc/init.d/postgresql reload 
     138/etc/init.d/postgresql reload 
    139139  }}} 
    140140}}}  
     
    145145#!div style="font-size: 90%" 
    146146{{{#!default 
    147   $ psql -f /opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql -U smoa_comp 
    148    psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:3: ERROR:  table "states" does not exist 
    149    psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:4: ERROR:  table "jobs" does not exist 
    150    psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:5: ERROR:  table "jobs_acc" does not exist 
    151    psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:6: ERROR:  table "reservations" does not exist 
    152    psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:7: ERROR:  table "reservations_acc" does not exist 
    153    psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:12: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "states_pkey" for table "states" 
    154    CREATE TABLE 
    155    INSERT 0 1 
    156    INSERT 0 1 
    157    INSERT 0 1 
    158    INSERT 0 1 
    159    INSERT 0 1 
    160    INSERT 0 1 
    161    INSERT 0 1 
    162    INSERT 0 1 
    163    INSERT 0 1 
    164    psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:53: NOTICE:  CREATE TABLE will create implicit sequence "jobs_serial_seq" for serial column "jobs.serial" 
    165    psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:53: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "jobs_pkey" for table "jobs" 
    166    psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:53: NOTICE:  CREATE TABLE / UNIQUE will create implicit index "jobs_drms_id_key" for table "jobs" 
    167    CREATE TABLE 
    168    CREATE INDEX 
    169    CREATE INDEX 
    170    CREATE INDEX 
    171    psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:88: NOTICE:  CREATE TABLE will create implicit sequence "jobs_acc_serial_seq" for serial column "jobs_acc.serial" 
    172    psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:88: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "jobs_acc_pkey" for table "jobs_acc" 
    173    CREATE TABLE 
    174    CREATE INDEX 
    175    CREATE INDEX 
    176    CREATE INDEX 
    177    psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:109: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "reservations_pkey" for table "reservations" 
    178    CREATE TABLE 
    179    CREATE INDEX 
    180    psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:128: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "reservations_acc_pkey" for table "reservations_acc" 
    181    CREATE TABLE 
    182    CREATE INDEX 
     147psql -f /opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql -U smoa_comp 
     148 psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:3: ERROR:  table "states" does not exist 
     149 psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:4: ERROR:  table "jobs" does not exist 
     150 psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:5: ERROR:  table "jobs_acc" does not exist 
     151 psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:6: ERROR:  table "reservations" does not exist 
     152 psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:7: ERROR:  table "reservations_acc" does not exist 
     153 psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:12: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "states_pkey" for table "states" 
     154 CREATE TABLE 
     155 INSERT 0 1 
     156 INSERT 0 1 
     157 INSERT 0 1 
     158 INSERT 0 1 
     159 INSERT 0 1 
     160 INSERT 0 1 
     161 INSERT 0 1 
     162 INSERT 0 1 
     163 INSERT 0 1 
     164 psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:53: NOTICE:  CREATE TABLE will create implicit sequence "jobs_serial_seq" for serial column "jobs.serial" 
     165 psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:53: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "jobs_pkey" for table "jobs" 
     166 psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:53: NOTICE:  CREATE TABLE / UNIQUE will create implicit index "jobs_drms_id_key" for table "jobs" 
     167 CREATE TABLE 
     168 CREATE INDEX 
     169 CREATE INDEX 
     170 CREATE INDEX 
     171 psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:88: NOTICE:  CREATE TABLE will create implicit sequence "jobs_acc_serial_seq" for serial column "jobs_acc.serial" 
     172 psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:88: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "jobs_acc_pkey" for table "jobs_acc" 
     173 CREATE TABLE 
     174 CREATE INDEX 
     175 CREATE INDEX 
     176 CREATE INDEX 
     177 psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:109: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "reservations_pkey" for table "reservations" 
     178 CREATE TABLE 
     179 CREATE INDEX 
     180 psql:/opt/QCG/smoa/share/smoa-comp/db/smoa-comp-psql.sql:128: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "reservations_acc_pkey" for table "reservations_acc" 
     181 CREATE TABLE 
     182 CREATE INDEX 
    183183}}} 
    184184}}} 
     
    208208#!div style="font-size: 90%" 
    209209{{{#!sh 
    210  $ isql -v smoa_comp smoa_comp <password> 
     210isql -v smoa_comp smoa_comp <password> 
    211211 +---------------------------------------+ 
    212212 | Connected!                            | 
     
    218218 +---------------------------------------+ 
    219219 SQL>quit 
    220  $ 
    221220}}} 
    222221}}} 
     
    527526#!div style="font-size: 90%" 
    528527{{{#!sh 
    529   chmod 0600 /opt/QCG/smoa/etc/smoa-compd.xml 
     528chmod 0600 /opt/QCG/smoa/etc/smoa-compd.xml 
    530529}}} 
    531530}}} 
     
    563562#!div style="font-size: 90%" 
    564563{{{#!sh  
    565  # /opt/QCG/smoa/sbin/smoa-compd 
     564/opt/QCG/smoa/sbin/smoa-compd 
    566565}}} 
    567566}}} 
     
    572571#!div style="font-size: 90%" 
    573572{{{#!sh 
    574  # /opt/QCG/smoa/sbin/smoa-compd -d 
     573/opt/QCG/smoa/sbin/smoa-compd -d 
    575574}}} 
    576575}}} 
     
    586585#!div style="font-size: 90%" 
    587586{{{#!sh 
    588   # pkill smoa-compd 
     587pkill smoa-compd 
    589588}}} 
    590589}}} 
     
    634633#!div style="font-size: 90%" 
    635634{{{#!sh 
    636  $ grid-proxy-init  
    637  Your identity: /O=Grid/OU=QosCosGrid/OU=PSNC/CN=Mariusz Mamonski 
    638  Enter GRID pass phrase for this identity: 
    639  Creating proxy .................................................................. Done 
    640  Your proxy is valid until: Wed Sep 16 05:01:02 2009 
     635grid-proxy-init  
     636Your identity: /O=Grid/OU=QosCosGrid/OU=PSNC/CN=Mariusz Mamonski 
     637Enter GRID pass phrase for this identity: 
     638Creating proxy .................................................................. Done 
     639Your proxy is valid until: Wed Sep 16 05:01:02 2009 
    641640}}} 
    642641   
     
    646645#!div style="font-size: 90%" 
    647646{{{#!sh 
    648   $ smoa-comp -G | xmllint --format - # the xmllint is used only to present the result in more pleasant way 
     647smoa-comp -G | xmllint --format - # the xmllint is used only to present the result in more pleasant way 
    649648   
    650649  <bes-factory:FactoryResourceAttributesDocument xmlns:bes-factory="http://schemas.ggf.org/bes/2006/08/bes-factory"> 
     
    674673#!div style="font-size: 90%" 
    675674{{{#!sh 
    676   $ smoa-comp -c -J /opt/QCG/smoa/share/smoa-comp/doc/examples/jsdl/sleep.xml 
    677   Activity Id: ccb6b04a-887b-4027-633f-412375559d73 
     675smoa-comp -c -J /opt/QCG/smoa/share/smoa-comp/doc/examples/jsdl/sleep.xml 
     676Activity Id: ccb6b04a-887b-4027-633f-412375559d73 
    678677}}} 
    679678}}} 
     
    683682#!div style="font-size: 90%" 
    684683{{{#!sh 
    685   $ smoa-comp -s -a ccb6b04a-887b-4027-633f-412375559d73 
    686   status = Executing 
    687   $ smoa-comp -s -a ccb6b04a-887b-4027-633f-412375559d73 
    688   status = Executing 
    689   $ smoa-comp -s -a ccb6b04a-887b-4027-633f-412375559d73 
    690   status = Finished 
    691   exit status = 0 
     684smoa-comp -s -a ccb6b04a-887b-4027-633f-412375559d73 
     685status = Executing 
     686smoa-comp -s -a ccb6b04a-887b-4027-633f-412375559d73 
     687status = Executing 
     688smoa-comp -s -a ccb6b04a-887b-4027-633f-412375559d73 
     689status = Finished 
     690exit status = 0 
    692691}}} 
    693692}}} 
     
    697696#!div style="font-size: 90%" 
    698697{{{#!sh 
    699  $ cp /opt/QCG/smoa/share/smoa-comp/doc/examples/ardl/oneslot.xml oneslot.xml 
     698cp /opt/QCG/smoa/share/smoa-comp/doc/examples/ardl/oneslot.xml oneslot.xml 
    700699}}} 
    701700}}} 
     
    705704#!div style="font-size: 90%" 
    706705{{{#!sh 
    707  $ smoa-comp -c -D oneslot.xml 
    708  Reservation Id: aab6b04a-887b-4027-633f-412375559d7d 
     706smoa-comp -c -D oneslot.xml 
     707Reservation Id: aab6b04a-887b-4027-633f-412375559d7d 
    709708}}} 
    710709}}} 
     
    713712#!div style="font-size: 90%" 
    714713{{{#!sh 
    715  $ smoa-comp -l 
    716  Reservation Id: aab6b04a-887b-4027-633f-412375559d7d 
    717  Total number of reservations: 1 
     714smoa-comp -l 
     715Reservation Id: aab6b04a-887b-4027-633f-412375559d7d 
     716Total number of reservations: 1 
    718717}}} 
    719718}}} 
     
    722721#!div style="font-size: 90%" 
    723722{{{#!sh  
    724  $ smoa-comp -s -r aab6b04a-887b-4027-633f-412375559d7d 
    725  Reserved hosts: 
    726  worker.example.com[used=0,reserved=1,total=4] 
     723smoa-comp -s -r aab6b04a-887b-4027-633f-412375559d7d 
     724Reserved hosts: 
     725worker.example.com[used=0,reserved=1,total=4] 
    727726}}} 
    728727}}} 
     
    731730#!div style="font-size: 90%" 
    732731{{{#!sh 
    733  $ smoa-comp -t -r aab6b04a-887b-4027-633f-412375559d7d 
    734  Reservation terminated. 
    735 }}} 
    736 }}} 
     732smoa-comp -t -r aab6b04a-887b-4027-633f-412375559d7d 
     733Reservation terminated. 
     734}}} 
     735}}}