Changes between Version 9 and Version 10 of installation_QCG_BES_AR_in_PLGrid

Show
Ignore:
Timestamp:
05/20/11 09:00:12 (11 years ago)
Author:
bartek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • installation_QCG_BES_AR_in_PLGrid

    v9 v10  
    2020#!div style="font-size: 90%" 
    2121{{{#!sh 
    22   # yum install postgresql postgresql-server 
     22yum install postgresql postgresql-server 
    2323}}} 
    2424}}} 
     
    2727#!div style="font-size: 90%" 
    2828{{{#!sh 
    29   # yum install unixODBC postgresql-odbc 
     29yum install unixODBC postgresql-odbc 
    3030}}} 
    3131}}} 
     
    3434#!div style="font-size: 90%" 
    3535{{{#!sh 
    36   # yum install expat-devel 
     36yum install expat-devel 
    3737}}} 
    3838}}} 
     
    4141#!div style="font-size: 90%" 
    4242{{{#!sh 
    43   # rpm -i torque-devel-your-version.rpm 
    44   # yum install rpm-build 
     43rpm -i torque-devel-your-version.rpm 
     44yum install rpm-build 
    4545}}} 
    4646}}} 
     
    5656#!div style="font-size: 90%" 
    5757{{{#!default 
    58   # WP4 
    59   # all users by default can use only DEFAULT partition (i.e. ALL minus WP4) 
    60   SYSCFG           PLIST=DEFAULT 
    61    
    62    
    63   # increase priority of the plgrid-wp4-produkcja queue 
    64   CLASSCFG[plgrid-wp4-produkcja] PRIORITY=90000 
    65   # jobs submitted to the plgrid-wp4 queue CAN use and CAN ONLY (note the &) use the wp4 partition 
    66   CLASSCFG[plgrid-wp4] PLIST=wp4& 
    67    
    68   # devote some machines to the Work Package 4 
    69   NODECFG[r512] PARTITION=wp4 
    70   NODECFG[r513] PARTITION=wp4 
    71   NODECFG[r514] PARTITION=wp4 
    72   NODECFG[r515] PARTITION=wp4 
    73   NODECFG[r516] PARTITION=wp4 
    74   NODECFG[r517] PARTITION=wp4 
    75   NODECFG[r518] PARTITION=wp4 
    76   NODECFG[r519] PARTITION=wp4 
     58# WP4 
     59# all users by default can use only DEFAULT partition (i.e. ALL minus WP4) 
     60SYSCFG           PLIST=DEFAULT 
     61   
     62   
     63# increase priority of the plgrid-wp4-produkcja queue 
     64CLASSCFG[plgrid-wp4-produkcja] PRIORITY=90000 
     65# jobs submitted to the plgrid-wp4 queue CAN use and CAN ONLY (note the &) use the wp4 partition 
     66CLASSCFG[plgrid-wp4] PLIST=wp4& 
     67   
     68# devote some machines to the Work Package 4 
     69NODECFG[r512] PARTITION=wp4 
     70NODECFG[r513] PARTITION=wp4 
     71NODECFG[r514] PARTITION=wp4 
     72NODECFG[r515] PARTITION=wp4 
     73NODECFG[r516] PARTITION=wp4 
     74NODECFG[r517] PARTITION=wp4 
     75NODECFG[r518] PARTITION=wp4 
     76NODECFG[r519] PARTITION=wp4 
    7777}}} 
    7878}}} 
     
    8282#!div style="font-size: 90%" 
    8383{{{#!sh 
    84   # 
    85   # Create and define queue plgrid-wp4 
    86   # 
    87   create queue plgrid-wp4 
    88   set queue plgrid-wp4 queue_type = Execution 
    89   set queue plgrid-wp4 resources_max.walltime = 72:00:00 
    90   set queue plgrid-wp4 resources_default.ncpus = 1 
    91   set queue plgrid-wp4 resources_default.walltime = 72:00:00 
    92   set queue plgrid-wp4 acl_group_enable = True 
    93   set queue plgrid-wp4 acl_groups = plgrid-wp4 
    94   set queue plgrid-wp4 acl_group_sloppy = True 
    95   set queue plgrid-wp4 enabled = True 
    96   set queue plgrid-wp4 started = True 
    97    
    98   # 
    99   # Create and define queue plgrid-wp4-produkcja 
    100   # 
    101   create queue plgrid-wp4-produkcja 
    102   set queue plgrid-wp4-produkcja queue_type = Execution 
    103   set queue plgrid-wp4-produkcja resources_max.walltime = 72:00:00 
    104   set queue plgrid-wp4-produkcja resources_max.ncpus = 256 
    105   set queue plgrid-wp4-produkcja resources_default.ncpus = 1 
    106   set queue plgrid-wp4-produkcja resources_default.walltime = 72:00:00 
    107   set queue plgrid-wp4-produkcja acl_group_enable = True 
    108   set queue plgrid-wp4-produkcja acl_groups = plgrid-wp4 
    109   set queue plgrid-wp4-produkcja acl_group_sloppy = True 
    110   set queue plgrid-wp4-produkcja enabled = True 
    111   set queue plgrid-wp4-produkcja started = True 
     84# 
     85# Create and define queue plgrid-wp4 
     86# 
     87create queue plgrid-wp4 
     88set queue plgrid-wp4 queue_type = Execution 
     89set queue plgrid-wp4 resources_max.walltime = 72:00:00 
     90set queue plgrid-wp4 resources_default.ncpus = 1 
     91set queue plgrid-wp4 resources_default.walltime = 72:00:00 
     92set queue plgrid-wp4 acl_group_enable = True 
     93set queue plgrid-wp4 acl_groups = plgrid-wp4 
     94set queue plgrid-wp4 acl_group_sloppy = True 
     95set queue plgrid-wp4 enabled = True 
     96set queue plgrid-wp4 started = True 
     97  
     98# 
     99# Create and define queue plgrid-wp4-produkcja 
     100# 
     101create queue plgrid-wp4-produkcja 
     102set queue plgrid-wp4-produkcja queue_type = Execution 
     103set queue plgrid-wp4-produkcja resources_max.walltime = 72:00:00 
     104set queue plgrid-wp4-produkcja resources_max.ncpus = 256 
     105set queue plgrid-wp4-produkcja resources_default.ncpus = 1 
     106set queue plgrid-wp4-produkcja resources_default.walltime = 72:00:00 
     107set queue plgrid-wp4-produkcja acl_group_enable = True 
     108set queue plgrid-wp4-produkcja acl_groups = plgrid-wp4 
     109set queue plgrid-wp4-produkcja acl_group_sloppy = True 
     110set queue plgrid-wp4-produkcja enabled = True 
     111set queue plgrid-wp4-produkcja started = True 
    112112}}} 
    113113}}} 
     
    120120#!div style="font-size: 90%" 
    121121{{{#!sh 
    122   useradd -d /opt/plgrid/var/log/smoa-comp/ -m smoa_comp  
    123   useradd -d /opt/plgrid/var/log/grms/ -m grms   
     122useradd -d /opt/plgrid/var/log/smoa-comp/ -m smoa_comp  
     123useradd -d /opt/plgrid/var/log/grms/ -m grms   
    124124}}} 
    125125}}} 
     
    129129#!div style="font-size: 90%" 
    130130{{{#!sh 
    131   groupadd smoa_dev 
     131groupadd smoa_dev 
    132132}}} 
    133133}}} 
     
    137137#!div style="font-size: 90%" 
    138138{{{#!sh 
    139  cat > /etc/yum.repos.d/qcg.repo << EOF 
    140  [qcg] 
    141  name=QosCosGrid YUM repository 
    142  baseurl=http://fury.man.poznan.pl/qcg-packages/sl/x86_64/ 
    143  enabled=1 
    144  gpgcheck=0 
    145  EOF 
     139cat > /etc/yum.repos.d/qcg.repo << EOF 
     140[qcg] 
     141name=QosCosGrid YUM repository 
     142baseurl=http://fury.man.poznan.pl/qcg-packages/sl/x86_64/ 
     143enabled=1 
     144gpgcheck=0 
     145EOF 
    146146}}} 
    147147}}} 
     
    150150#!div style="font-size: 90%" 
    151151{{{#!sh 
    152  rpm -Uvh http://software.plgrid.pl/packages/repos/plgrid-repos-2010-2.noarch.rpm 
     152rpm -Uvh http://software.plgrid.pl/packages/repos/plgrid-repos-2010-2.noarch.rpm 
    153153}}} 
    154154}}} 
     
    158158#!div style="font-size: 90%" 
    159159{{{#!sh 
    160   yum install smoa-comp 
     160yum install smoa-comp 
    161161}}} 
    162162}}} 
     
    166166#!div style="font-size: 90%" 
    167167{{{#!sh 
    168   # /opt/plgrid/qcg/smoa/share/smoa-comp/tools/smoa-comp-install.sh 
    169   Welcome to smoa-comp installation script! 
    170    
    171   This script will guide you through process of configuring proper environment 
    172   for running the Smoa Computing service. You have to answer few questions regarding 
    173   parameters of your database. If you are not sure just press Enter and use the 
    174   default values. 
    175    
    176   Use local PostgreSQL server? (y/n) [y]: y 
    177   Database [smoa_comp]:  
    178   User [smoa_comp]:  
    179   Password [smoa_comp]: MojeTajneHaslo 
    180   Create database? (y/n) [y]: y 
    181   Create user? (y/n) [y]: y 
    182    
    183   Checking for system user smoa_comp...OK 
    184   Checking whether PostgreSQL server is installed...OK 
    185   Checking whether PostgreSQL server is running...OK 
    186    
    187   Performing installation 
    188   * Creating user smoa_comp...OK 
    189   * Creating database smoa_comp...OK 
    190   * Creating database schema...OK 
    191   * Checking for ODBC data source smoa_comp... 
    192   * Installing ODBC data source...OK 
     168/opt/plgrid/qcg/smoa/share/smoa-comp/tools/smoa-comp-install.sh 
     169Welcome to smoa-comp installation script! 
     170  
     171This script will guide you through process of configuring proper environment 
     172for running the Smoa Computing service. You have to answer few questions regarding 
     173parameters of your database. If you are not sure just press Enter and use the 
     174default values. 
     175   
     176Use local PostgreSQL server? (y/n) [y]: y 
     177Database [smoa_comp]:  
     178User [smoa_comp]:  
     179Password [smoa_comp]: MojeTajneHaslo 
     180Create database? (y/n) [y]: y 
     181Create user? (y/n) [y]: y 
     182   
     183Checking for system user smoa_comp...OK 
     184Checking whether PostgreSQL server is installed...OK 
     185Checking whether PostgreSQL server is running...OK 
     186   
     187Performing installation 
     188* Creating user smoa_comp...OK 
     189* Creating database smoa_comp...OK 
     190* Creating database schema...OK 
     191* Checking for ODBC data source smoa_comp... 
     192* Installing ODBC data source...OK 
    193193     
    194   Remember to add appropriate entry to /var/lib/pgsql/data/pg_hba.conf (as the first rule!) to allow user smoa_comp to 
    195   access database smoa_comp. For instance: 
    196    
    197   host    smoa_comp       smoa_comp       127.0.0.1/32    md5 
    198    
    199   and reload Postgres server. 
     194Remember to add appropriate entry to /var/lib/pgsql/data/pg_hba.conf (as the first rule!) to allow user smoa_comp to 
     195access database smoa_comp. For instance: 
     196   
     197host    smoa_comp       smoa_comp       127.0.0.1/32    md5 
     198   
     199and reload Postgres server. 
    200200}}} 
    201201}}} 
     
    205205#!div style="font-size: 90%" 
    206206{{{#!sh 
    207   vim /var/lib/pgsql/data/pg_hba.conf  
    208   /etc/init.d/postgresql reload 
     207vim /var/lib/pgsql/data/pg_hba.conf  
     208/etc/init.d/postgresql reload 
    209209}}} 
    210210}}} 
     
    214214#!div style="font-size: 90%" 
    215215{{{#!sh 
    216  wget https://dist.eugridpma.info/distribution/igtf/current/accredited/RPMS/ca_PolishGrid-1.38-1.noarch.rpm 
    217  rpm -i ca_PolishGrid-1.38-1.noarch.rpm  
    218  wget http://software.plgrid.pl/packages/general/ca_PLGRID-SimpleCA-1.0-2.noarch.rpm 
    219  rpm -i ca_PLGRID-SimpleCA-1.0-2.noarch.rpm  
    220  #install certificate revocation list fetching utility 
    221  wget https://dist.eugridpma.info/distribution/util/fetch-crl/fetch-crl-2.8.5-1.noarch.rpm 
    222  rpm -i fetch-crl-2.8.5-1.noarch.rpm 
    223  #get fresh CRLs now 
    224  /usr/sbin/fetch-crl  
    225  #install cron job for it 
    226  cat > /etc/cron.daily/fetch-crl.cron << EOF 
    227  #!/bin/sh 
    228   
    229  /usr/sbin/fetch-crl 
    230  EOF 
    231  chmod a+x /etc/cron.daily/fetch-crl.cron 
     216wget https://dist.eugridpma.info/distribution/igtf/current/accredited/RPMS/ca_PolishGrid-1.38-1.noarch.rpm 
     217rpm -i ca_PolishGrid-1.38-1.noarch.rpm  
     218wget http://software.plgrid.pl/packages/general/ca_PLGRID-SimpleCA-1.0-2.noarch.rpm 
     219rpm -i ca_PLGRID-SimpleCA-1.0-2.noarch.rpm  
     220#install certificate revocation list fetching utility 
     221wget https://dist.eugridpma.info/distribution/util/fetch-crl/fetch-crl-2.8.5-1.noarch.rpm 
     222rpm -i fetch-crl-2.8.5-1.noarch.rpm 
     223#get fresh CRLs now 
     224/usr/sbin/fetch-crl  
     225#install cron job for it 
     226cat > /etc/cron.daily/fetch-crl.cron << EOF 
     227#!/bin/sh 
     228/usr/sbin/fetch-crl 
     229EOF 
     230chmod a+x /etc/cron.daily/fetch-crl.cron 
    232231}}} 
    233232}}} 
     
    238237#!div style="font-size: 90%" 
    239238{{{#!default 
    240   #for test purpose only add mapping for your account 
    241   echo '"MyCertDN" myaccount' >> /etc/grid-security/grid-mapfile 
     239#for test purpose only add mapping for your account 
     240echo '"MyCertDN" myaccount' >> /etc/grid-security/grid-mapfile 
    242241}}} 
    243242}}} 
     
    246245#!div style="font-size: 90%" 
    247246{{{#!default 
    248  #install grid-mapfile generator from PL-Grid repository 
    249  yum install plggridmapfilegenerator 
    250  #configure gridmapfilegenerator - remember to change url property to your local ldap replica 
    251  cat > /opt/plgrid/plggridmapfilegenerator/etc/plggridmapfilegenerator.conf << EOF 
    252  [ldap] 
    253  url=ldaps://10.4.1.39 
    254  #search base 
    255  #base=dc=osrodek,dc=plgrid,dc=pl 
    256  base=ou=People,dc=cyfronet,dc=plgrid,dc=pl 
    257  #filter, specifies which users should be processed 
    258  filter=plgridX509CertificateDN=* 
    259  #timeout for execution of ldap queries 
    260  timeout=10 
     247#install grid-mapfile generator from PL-Grid repository 
     248yum install plggridmapfilegenerator 
     249#configure gridmapfilegenerator - remember to change url property to your local ldap replica 
     250cat > /opt/plgrid/plggridmapfilegenerator/etc/plggridmapfilegenerator.conf << EOF 
     251[ldap] 
     252url=ldaps://10.4.1.39 
     253#search base 
     254#base=dc=osrodek,dc=plgrid,dc=pl 
     255base=ou=People,dc=cyfronet,dc=plgrid,dc=pl 
     256#filter, specifies which users should be processed 
     257filter=plgridX509CertificateDN=* 
     258#timeout for execution of ldap queries 
     259timeout=10 
    261260  
    262  [output] 
    263  format=^plgridX509CertificateDN, uid 
    264  EOF 
    265  #add the gridmapfile generator as the cron.job 
    266  cat > /etc/cron.hourly/gridmapfile.cron << EOF 
    267  #!/bin/sh 
    268  /opt/plgrid/plggridmapfilegenerator/bin/plggridmapfilegenerator.py -o /etc/grid-security/grid-mapfile 
    269  EOF 
    270  #set executable bit 
    271  chmod a+x /etc/cron.hourly/gridmapfile.cron 
    272  #try it! 
    273  /etc/cron.hourly/gridmapfile.cron 
     261[output] 
     262format=^plgridX509CertificateDN, uid 
     263EOF 
     264#add the gridmapfile generator as the cron.job 
     265cat > /etc/cron.hourly/gridmapfile.cron << EOF 
     266#!/bin/sh 
     267/opt/plgrid/plggridmapfilegenerator/bin/plggridmapfilegenerator.py -o /etc/grid-security/grid-mapfile 
     268EOF 
     269#set executable bit 
     270chmod a+x /etc/cron.hourly/gridmapfile.cron 
     271#try it! 
     272/etc/cron.hourly/gridmapfile.cron 
    274273}}} 
    275274}}} 
     
    279278#!div style="font-size: 90%" 
    280279{{{#!default 
    281   vim /var/spool/maui/maui.cfg 
    282   # primary admin must be first in list 
    283   ADMIN1                root 
    284   ADMIN2                grms 
    285   ADMIN3                smoa_comp 
     280vim /var/spool/maui/maui.cfg 
     281# primary admin must be first in list 
     282ADMIN1                root 
     283ADMIN2                grms 
     284ADMIN3                smoa_comp 
    286285}}} 
    287286}}} 
     
    290289#!div style="font-size: 90%" 
    291290{{{#!default 
    292   cp /etc/grid-security/hostcert.pem /opt/plgrid/qcg/smoa/etc/certs/smoacert.pem 
    293   cp /etc/grid-security/hostkey.pem /opt/plgrid/qcg/smoa/etc/certs/smoakey.pem 
    294   chown smoa_comp /opt/plgrid/qcg/smoa/etc/certs/smoacert.pem 
    295   chown smoa_comp /opt/plgrid/qcg/smoa/etc/certs/smoakey.pem  
    296   chmod 0600 /opt/plgrid/qcg/smoa/etc/certs/smoakey.pem 
     291cp /etc/grid-security/hostcert.pem /opt/plgrid/qcg/smoa/etc/certs/smoacert.pem 
     292cp /etc/grid-security/hostkey.pem /opt/plgrid/qcg/smoa/etc/certs/smoakey.pem 
     293chown smoa_comp /opt/plgrid/qcg/smoa/etc/certs/smoacert.pem 
     294chown smoa_comp /opt/plgrid/qcg/smoa/etc/certs/smoakey.pem  
     295chmod 0600 /opt/plgrid/qcg/smoa/etc/certs/smoakey.pem 
    297296}}} 
    298297}}} 
     
    302301#!div style="font-size: 90%" 
    303302{{{#!default 
    304   wget http://fury.man.poznan.pl/qcg-packages/sl/SRPMS/pbs-drmaa-1.0.6-2.src.rpm 
    305   rpmbuild  --rebuild pbs-drmaa-1.0.6-2.src.rpm 
    306   cd /usr/src/redhat/RPMS/x86_64/ 
    307   rpm -i pbs-drmaa-1.0.6-2.x86_64.rpm  
     303wget http://fury.man.poznan.pl/qcg-packages/sl/SRPMS/pbs-drmaa-1.0.6-2.src.rpm 
     304rpmbuild  --rebuild pbs-drmaa-1.0.6-2.src.rpm 
     305cd /usr/src/redhat/RPMS/x86_64/ 
     306rpm -i pbs-drmaa-1.0.6-2.x86_64.rpm  
    308307}}} 
    309308}}} 
     
    312311#!div style="font-size: 90%" 
    313312{{{#!default 
    314   wget http://fury.man.poznan.pl/qcg-packages/sl/SRPMS/pbs-drmaa-1.0.6-2.src.rpm 
    315   rpmbuild  --define 'configure_options --enable-debug' --rebuild pbs-drmaa-1.0.6-2.src.rpm 
    316   cd /usr/src/redhat/RPMS/x86_64/ 
    317   rpm -i pbs-drmaa-1.0.6-2.x86_64.rpm 
     313wget http://fury.man.poznan.pl/qcg-packages/sl/SRPMS/pbs-drmaa-1.0.6-2.src.rpm 
     314rpmbuild  --define 'configure_options --enable-debug' --rebuild pbs-drmaa-1.0.6-2.src.rpm 
     315cd /usr/src/redhat/RPMS/x86_64/ 
     316rpm -i pbs-drmaa-1.0.6-2.x86_64.rpm 
    318317}}} 
    319318}}} 
     
    323322#!div style="font-size: 90%" 
    324323{{{#!default 
    325   # pbs_drmaa.conf - Sample pbs_drmaa configuration file. 
    326    
    327   wait_thread: 1, 
    328    
    329   pbs_home: "/var/spool/pbs", 
     324# pbs_drmaa.conf - Sample pbs_drmaa configuration file. 
     325   
     326wait_thread: 1, 
     327   
     328pbs_home: "/var/spool/pbs", 
    330329     
    331   cache_job_state: 600, 
     330cache_job_state: 600, 
    332331}}} 
    333332}}} 
     
    341340#!div style="font-size: 90%" 
    342341{{{#!default 
    343   job_categories: { 
    344         default: "-q plgrid", 
    345   }, 
     342job_categories: { 
     343      default: "-q plgrid", 
     344}, 
    346345}}} 
    347346}}} 
     
    352351#!div style="font-size: 90%" 
    353352{{{#!default 
    354   cmd = "setres -x BYNAME -r PROCS=1" 
     353cmd = "setres -x BYNAME -r PROCS=1" 
    355354}}} 
    356355}}} 
     
    359358#!div style="font-size: 90%" 
    360359{{{#!default 
    361   cmd = "setres -x BYNAME -r PROCS=1 -p wp4" 
     360cmd = "setres -x BYNAME -r PROCS=1 -p wp4" 
    362361}}} 
    363362}}} 
     
    368367#!div style="font-size: 90%" 
    369368{{{#!xml 
    370   <?xml version="1.0" encoding="UTF-8"?> 
    371   <sm:SMOACore 
    372         xmlns:sm="http://schemas.smoa-project.com/core/2009/01/config" 
     369<?xml version="1.0" encoding="UTF-8"?> 
     370<sm:SMOACore 
     371        xmlns:sm="http://schemas.smoa-project.com/core/2009/01/config" 
    373372        xmlns="http://schemas.smoa-project.com/comp/2009/01/config" 
    374373        xmlns:smc="http://schemas.smoa-project.com/comp/2009/01/config" 
     
    443442   
    444443        </Configuration> 
    445   </sm:SMOACore> 
     444</sm:SMOACore> 
    446445}}} 
    447446}}} 
     
    468467#!div style="font-size: 90%" 
    469468{{{#!xml 
    470   <sm:Module xsi:type="bat_updater"> 
    471         <BATServiceURL>tcp://acct.grid.cyf-kr.edu.pl:61616</BATServiceURL> 
    472         <SiteName>psnc-smoa-plgrid</SiteName> 
    473         <QueueName>test-jobs</QueueName> 
    474   </sm:Module> 
     469<sm:Module xsi:type="bat_updater"> 
     470        <BATServiceURL>tcp://acct.grid.cyf-kr.edu.pl:61616</BATServiceURL> 
     471        <SiteName>psnc-smoa-plgrid</SiteName> 
     472        <QueueName>test-jobs</QueueName> 
     473</sm:Module> 
    475474}}} 
    476475}}} 
     
    490489#!div style="font-size: 90%" 
    491490{{{#!sh 
    492  # /etc/init.d/smoa-compd start 
     491/etc/init.d/smoa-compd start 
    493492}}} 
    494493}}} 
     
    498497#!div style="font-size: 90%" 
    499498{{{#!sh 
    500   /opt/plgrid/var/log/smoa-comp/smoa-comp.log 
     499/opt/plgrid/var/log/smoa-comp/smoa-comp.log 
    501500}}} 
    502501}}} 
     
    512511#!div style="font-size: 90%" 
    513512{{{#!sh 
    514   # INIT_WAIT=5 
    515   # 
    516   # DRM specific options 
    517    
    518   export PATH=$PATH:/opt/maui/bin 
     513# INIT_WAIT=5 
     514# 
     515# DRM specific options 
     516  
     517export PATH=$PATH:/opt/maui/bin 
    519518}}} 
    520519}}} 
     
    524523#!div style="font-size: 90%" 
    525524{{{#!sh 
    526   # INIT_WAIT=5 
    527   # 
    528   # DRM specific options 
    529  
    530   export DRMAA_LOG_LEVEL=INFO 
     525# INIT_WAIT=5 
     526# 
     527# DRM specific options 
     528 
     529export DRMAA_LOG_LEVEL=INFO 
    531530}}} 
    532531}}} 
     
    537536#!div style="font-size: 90%" 
    538537{{{#!sh 
    539   # /etc/init.d/smoa-compd stop 
     538/etc/init.d/smoa-compd stop 
    540539}}} 
    541540}}} 
     
    549548#!div style="font-size: 90%" 
    550549{{{#!sh 
    551  <?xml version="1.0" encoding="UTF-8"?> 
    552  <sm:SMOACore 
    553         xmlns:sm="http://schemas.smoa-project.com/core/2009/01/config" 
    554         xmlns="http://schemas.smoa-project.com/comp/2009/01/config" 
    555         xmlns:smc="http://schemas.smoa-project.com/comp/2009/01/config" 
    556         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
    557    
    558         <Configuration> 
    559                 <sm:ModuleManager> 
    560                         <sm:Directory>/opt/QCG/smoa/lib/smoa-core/modules/</sm:Directory> 
    561                         <sm:Directory>/opt/QCG/smoa//lib/smoa-comp/modules/</sm:Directory> 
    562                 </sm:ModuleManager> 
    563    
    564                 <sm:Client xsi:type="smoa-comp" description="SMOA Computing client"> 
    565                         <sm:Transport> 
    566                                 <sm:Module xsi:type="sm:ecm_gsoap.client"> 
    567                                         <sm:ServiceURL>httpg://frontend.example.com:19000/</sm:ServiceURL> 
    568                                         <sm:Authentication> 
    569                                                 <sm:Module xsi:type="sm:atc_transport_gsi.client"/> 
    570                                         </sm:Authentication> 
    571                                         <sm:Module xsi:type="smc:smoa-comp-client"/> 
    572                                 </sm:Module> 
    573                         </sm:Transport> 
    574                 </sm:Client> 
    575         </Configuration> 
    576  </sm:SMOACore> 
     550<?xml version="1.0" encoding="UTF-8"?> 
     551<sm:SMOACore 
     552       xmlns:sm="http://schemas.smoa-project.com/core/2009/01/config" 
     553       xmlns="http://schemas.smoa-project.com/comp/2009/01/config" 
     554       xmlns:smc="http://schemas.smoa-project.com/comp/2009/01/config" 
     555       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
     556   
     557       <Configuration> 
     558               <sm:ModuleManager> 
     559                       <sm:Directory>/opt/QCG/smoa/lib/smoa-core/modules/</sm:Directory> 
     560                       <sm:Directory>/opt/QCG/smoa//lib/smoa-comp/modules/</sm:Directory> 
     561               </sm:ModuleManager> 
     562  
     563               <sm:Client xsi:type="smoa-comp" description="SMOA Computing client"> 
     564                       <sm:Transport> 
     565                               <sm:Module xsi:type="sm:ecm_gsoap.client"> 
     566                                       <sm:ServiceURL>httpg://frontend.example.com:19000/</sm:ServiceURL> 
     567                                       <sm:Authentication> 
     568                                               <sm:Module xsi:type="sm:atc_transport_gsi.client"/> 
     569                                       </sm:Authentication> 
     570                                       <sm:Module xsi:type="smc:smoa-comp-client"/> 
     571                               </sm:Module> 
     572                       </sm:Transport> 
     573               </sm:Client> 
     574       </Configuration> 
     575</sm:SMOACore> 
    577576}}} 
    578577}}} 
     
    581580#!div style="font-size: 90%" 
    582581{{{#!sh 
    583  $ grid-proxy-init  
    584  Your identity: /O=Grid/OU=QosCosGrid/OU=PSNC/CN=Mariusz Mamonski 
    585  Enter GRID pass phrase for this identity: 
    586  Creating proxy .................................................................. Done 
    587  Your proxy is valid until: Wed Sep 16 05:01:02 2009 
     582grid-proxy-init  
     583Your identity: /O=Grid/OU=QosCosGrid/OU=PSNC/CN=Mariusz Mamonski 
     584Enter GRID pass phrase for this identity: 
     585Creating proxy .................................................................. Done 
     586Your proxy is valid until: Wed Sep 16 05:01:02 2009 
    588587}}} 
    589588}}} 
     
    592591#!div style="font-size: 90%" 
    593592{{{#!sh 
    594   $ smoa-comp -G | xmllint --format - # the xmllint is used only to present the result in more pleasant way 
    595    
    596   <bes-factory:FactoryResourceAttributesDocument xmlns:bes-factory="http://schemas.ggf.org/bes/2006/08/bes-factory"> 
     593smoa-comp -G | xmllint --format - # the xmllint is used only to present the result in more pleasant way 
     594   
     595<bes-factory:FactoryResourceAttributesDocument xmlns:bes-factory="http://schemas.ggf.org/bes/2006/08/bes-factory"> 
    597596    <bes-factory:IsAcceptingNewActivities>true</bes-factory:IsAcceptingNewActivities> 
    598597    <bes-factory:CommonName>IT cluster</bes-factory:CommonName> 
     
    612611    <bes-factory:LocalResourceManagerType>http://example.com/SunGridEngine</bes-factory:LocalResourceManagerType> 
    613612    <smcf:NotificationProviderURL xmlns:smcf="http://schemas.smoa-project.com/comp/2009/01/factory">http://localhost:2211/</smcf:NotificationProviderURL> 
    614  </bes-factory:FactoryResourceAttributesDocument> 
     613</bes-factory:FactoryResourceAttributesDocument> 
    615614}}} 
    616615}}} 
     
    619618#!div style="font-size: 90%" 
    620619{{{#!sh 
    621   $ smoa-comp -c -J /opt/plgrid/qcg/smoa/share/smoa-comp/doc/examples/jsdl/sleep.xml 
    622   Activity Id: ccb6b04a-887b-4027-633f-412375559d73 
     620smoa-comp -c -J /opt/plgrid/qcg/smoa/share/smoa-comp/doc/examples/jsdl/sleep.xml 
     621Activity Id: ccb6b04a-887b-4027-633f-412375559d73 
    623622}}} 
    624623}}} 
     
    627626#!div style="font-size: 90%" 
    628627{{{#!sh 
    629   $ smoa-comp -s -a ccb6b04a-887b-4027-633f-412375559d73 
    630   status = Executing 
    631   $ smoa-comp -s -a ccb6b04a-887b-4027-633f-412375559d73 
    632   status = Executing 
    633   $ smoa-comp -s -a ccb6b04a-887b-4027-633f-412375559d73 
    634   status = Finished 
    635   exit status = 0 
     628smoa-comp -s -a ccb6b04a-887b-4027-633f-412375559d73 
     629status = Executing 
     630smoa-comp -s -a ccb6b04a-887b-4027-633f-412375559d73 
     631status = Executing 
     632smoa-comp -s -a ccb6b04a-887b-4027-633f-412375559d73 
     633status = Finished 
     634exit status = 0 
    636635}}} 
    637636}}} 
     
    641640#!div style="font-size: 90%" 
    642641{{{#!sh 
    643  $ cp /opt/plgrid/qcg/smoa/share/smoa-comp/doc/examples/ardl/oneslot.xml oneslot.xml 
     642cp /opt/plgrid/qcg/smoa/share/smoa-comp/doc/examples/ardl/oneslot.xml oneslot.xml 
    644643}}} 
    645644}}} 
     
    649648#!div style="font-size: 90%" 
    650649{{{#!sh 
    651  $ smoa-comp -c -D oneslot.xml 
    652  Reservation Id: aab6b04a-887b-4027-633f-412375559d7d 
     650smoa-comp -c -D oneslot.xml 
     651Reservation Id: aab6b04a-887b-4027-633f-412375559d7d 
    653652}}} 
    654653}}} 
     
    657656#!div style="font-size: 90%" 
    658657{{{#!sh 
    659  $ smoa-comp -l 
    660  Reservation Id: aab6b04a-887b-4027-633f-412375559d7d 
    661  Total number of reservations: 1 
     658smoa-comp -l 
     659Reservation Id: aab6b04a-887b-4027-633f-412375559d7d 
     660Total number of reservations: 1 
    662661}}} 
    663662}}} 
     
    666665#!div style="font-size: 90%" 
    667666{{{#!sh 
    668  $ smoa-comp -s -r aab6b04a-887b-4027-633f-412375559d7d 
    669  Reserved hosts: 
    670  worker.example.com[used=0,reserved=1,total=4] 
     667smoa-comp -s -r aab6b04a-887b-4027-633f-412375559d7d 
     668Reserved hosts: 
     669worker.example.com[used=0,reserved=1,total=4] 
    671670}}} 
    672671}}} 
     
    675674#!div style="font-size: 90%" 
    676675{{{#!sh 
    677  $ smoa-comp -t -r aab6b04a-887b-4027-633f-412375559d7d 
    678  Reservation terminated. 
     676smoa-comp -t -r aab6b04a-887b-4027-633f-412375559d7d 
     677Reservation terminated. 
    679678}}} 
    680679}}} 
     
    683682#!div style="font-size: 90%" 
    684683{{{#!sh 
    685  $ globus-url-copy gsiftp://your.local.host.name/etc/profile profile 
    686  $ diff /etc/profile profile 
     684globus-url-copy gsiftp://your.local.host.name/etc/profile profile 
     685diff /etc/profile profile 
    687686}}} 
    688687}}} 
     
    700699#!div style="font-size: 90%" 
    701700{{{#!sh 
    702  $ psql -h localhost smoa_comp smoa_comp  
    703  Password for user smoa_comp:  
    704  Welcome to psql 8.1.23, the PostgreSQL interactive terminal. 
    705    
    706  Type:  \copyright for distribution terms 
    707       \h for help with SQL commands 
    708       \? for help with psql commands 
    709       \g or terminate with semicolon to execute query 
    710       \q to quit 
    711  
    712  smoa_comp=> \o jobs.acc 
    713  smoa_comp=> SELECT * FROM jobs_acc where end_time < date '2010-01-10'; 
    714  smoa_comp=> \o reservations.acc 
    715  smoa_comp=> SELECT * FROM reservations_acc where end_time < date '2010-01-10'; 
    716  smoa_comp=> \o 
    717  smoa_comp=> DELETE FROM jobs_acc where end_time < date '2010-01-10'; 
    718  smoa_comp=> DELETE FROM reservation_acc where end_time < date '2010-01-10'; 
    719 }}} 
    720 }}} 
     701psql -h localhost smoa_comp smoa_comp  
     702Password for user smoa_comp:  
     703Welcome to psql 8.1.23, the PostgreSQL interactive terminal. 
     704   
     705Type:  \copyright for distribution terms 
     706     \h for help with SQL commands 
     707     \? for help with psql commands 
     708     \g or terminate with semicolon to execute query 
     709     \q to quit 
     710 
     711smoa_comp=> \o jobs.acc 
     712smoa_comp=> SELECT * FROM jobs_acc where end_time < date '2010-01-10'; 
     713smoa_comp=> \o reservations.acc 
     714smoa_comp=> SELECT * FROM reservations_acc where end_time < date '2010-01-10'; 
     715smoa_comp=> \o 
     716smoa_comp=> DELETE FROM jobs_acc where end_time < date '2010-01-10'; 
     717smoa_comp=> DELETE FROM reservation_acc where end_time < date '2010-01-10'; 
     718}}} 
     719}}}