Changes between Version 1 and Version 2 of InstallingUsingRPMS
- Timestamp:
- 06/12/11 16:24:34 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallingUsingRPMS
v1 v2 11 11 12 12 IMPORTANT: :: 13 The implementation name of the QCG BES/AR service is ''' SmoaComputing''' and this name is used as a common in this guide.13 The implementation name of the QCG BES/AR service is '''QCG-Computing''' and this name is used as a common in this guide. 14 14 15 15 == Prerequisites == 16 We assume that you have the Torque local resource manager and the Maui scheduler already installed. This would be typically a frontend machine (i.e. machine where the pbs_server and maui daemons are running). If you want to install the Smoa Computing service on a separate submit host you should read this [[Smoa_Computing_on_separate_machine| notes]]. Moreover the following packages must be installed before you proceed with the SmoaComputing installation.16 We assume that you have the Torque local resource manager and the Maui scheduler already installed. This would be typically a frontend machine (i.e. machine where the pbs_server and maui daemons are running). If you want to install the QCG-Computing service on a separate submit host you should read this [[qcg_Computing_on_separate_machine| notes]]. Moreover the following packages must be installed before you proceed with the QCG-Computing installation. 17 17 18 18 * Install database backend (PostgresSQL): … … 115 115 == Installation using provided RPMS == 116 116 * Create the following users: 117 * ` smoa_comp` - needed by the SmoaComputing service117 * `qcg_comp` - needed by the QCG-Computing service 118 118 * `grms` - the user that the GRMS (i.e. the !QosCosGrid Broker service) would be mapped to 119 119 {{{ 120 120 #!div style="font-size: 90%" 121 121 {{{#!sh 122 useradd -d /opt/plgrid/var/log/ smoa-comp/ -m smoa_comp122 useradd -d /opt/plgrid/var/log/qcg-comp/ -m qcg_comp 123 123 useradd -d /opt/plgrid/var/log/grms/ -m grms 124 124 }}} 125 125 }}} 126 126 * and the following group: 127 * ` smoa_dev` - this group is allowed to read the configuration and log files. Please add the Smoaservices' developers to this group.128 {{{ 129 #!div style="font-size: 90%" 130 {{{#!sh 131 groupadd smoa_dev127 * `qcg_dev` - this group is allowed to read the configuration and log files. Please add the qcg services' developers to this group. 128 {{{ 129 #!div style="font-size: 90%" 130 {{{#!sh 131 groupadd qcg_dev 132 132 }}} 133 133 }}} … … 154 154 }}} 155 155 156 * install SmoaComputing using YUM Package Manager:157 {{{ 158 #!div style="font-size: 90%" 159 {{{#!sh 160 yum install smoa-comp161 }}} 162 }}} 163 164 * setup SmoaComputing database using provided script:165 {{{ 166 #!div style="font-size: 90%" 167 {{{#!sh 168 /opt/plgrid/qcg/ smoa/share/smoa-comp/tools/smoa-comp-install.sh169 Welcome to smoa-comp installation script!156 * install QCG-Computing using YUM Package Manager: 157 {{{ 158 #!div style="font-size: 90%" 159 {{{#!sh 160 yum install qcg-comp 161 }}} 162 }}} 163 164 * setup QCG-Computing database using provided script: 165 {{{ 166 #!div style="font-size: 90%" 167 {{{#!sh 168 /opt/plgrid/qcg/qcg/share/qcg-comp/tools/qcg-comp-install.sh 169 Welcome to qcg-comp installation script! 170 170 171 171 This script will guide you through process of configuring proper environment 172 for running the SmoaComputing service. You have to answer few questions regarding172 for running the QCG-Computing service. You have to answer few questions regarding 173 173 parameters of your database. If you are not sure just press Enter and use the 174 174 default values. 175 175 176 176 Use local PostgreSQL server? (y/n) [y]: y 177 Database [ smoa_comp]:178 User [ smoa_comp]:179 Password [ smoa_comp]: MojeTajneHaslo177 Database [qcg_comp]: 178 User [qcg_comp]: 179 Password [qcg_comp]: MojeTajneHaslo 180 180 Create database? (y/n) [y]: y 181 181 Create user? (y/n) [y]: y 182 182 183 Checking for system user smoa_comp...OK183 Checking for system user qcg_comp...OK 184 184 Checking whether PostgreSQL server is installed...OK 185 185 Checking whether PostgreSQL server is running...OK 186 186 187 187 Performing installation 188 * Creating user smoa_comp...OK189 * Creating database smoa_comp...OK188 * Creating user qcg_comp...OK 189 * Creating database qcg_comp...OK 190 190 * Creating database schema...OK 191 * Checking for ODBC data source smoa_comp...191 * Checking for ODBC data source qcg_comp... 192 192 * Installing ODBC data source...OK 193 193 194 Remember to add appropriate entry to /var/lib/pgsql/data/pg_hba.conf (as the first rule!) to allow user smoa_comp to195 access database smoa_comp. For instance:196 197 host smoa_comp smoa_comp 127.0.0.1/32 md5194 Remember to add appropriate entry to /var/lib/pgsql/data/pg_hba.conf (as the first rule!) to allow user qcg_comp to 195 access database qcg_comp. For instance: 196 197 host qcg_comp qcg_comp 127.0.0.1/32 md5 198 198 199 199 and reload Postgres server. … … 274 274 }}} 275 275 276 Add appropriate rights for the ` smoa_comp` and `grms` users in the Maui scheduler configuaration file:276 Add appropriate rights for the `qcg_comp` and `grms` users in the Maui scheduler configuaration file: 277 277 {{{ 278 278 #!div style="font-size: 90%" … … 282 282 ADMIN1 root 283 283 ADMIN2 grms 284 ADMIN3 smoa_comp285 }}} 286 }}} 287 Copy the service certificate and key into the `/opt/plgrid/qcg/ smoa/etc/certs/`. Remember to set appropriate rights to the key file.288 {{{ 289 #!div style="font-size: 90%" 290 {{{#!default 291 cp /etc/grid-security/hostcert.pem /opt/plgrid/qcg/ smoa/etc/certs/smoacert.pem292 cp /etc/grid-security/hostkey.pem /opt/plgrid/qcg/ smoa/etc/certs/smoakey.pem293 chown smoa_comp /opt/plgrid/qcg/smoa/etc/certs/smoacert.pem294 chown smoa_comp /opt/plgrid/qcg/smoa/etc/certs/smoakey.pem295 chmod 0600 /opt/plgrid/qcg/ smoa/etc/certs/smoakey.pem284 ADMIN3 qcg_comp 285 }}} 286 }}} 287 Copy the service certificate and key into the `/opt/plgrid/qcg/qcg/etc/certs/`. Remember to set appropriate rights to the key file. 288 {{{ 289 #!div style="font-size: 90%" 290 {{{#!default 291 cp /etc/grid-security/hostcert.pem /opt/plgrid/qcg/qcg/etc/certs/qcgcert.pem 292 cp /etc/grid-security/hostkey.pem /opt/plgrid/qcg/qcg/etc/certs/qcgkey.pem 293 chown qcg_comp /opt/plgrid/qcg/qcg/etc/certs/qcgcert.pem 294 chown qcg_comp /opt/plgrid/qcg/qcg/etc/certs/qcgkey.pem 295 chmod 0600 /opt/plgrid/qcg/qcg/etc/certs/qcgkey.pem 296 296 }}} 297 297 }}} … … 318 318 }}} 319 319 After installation you need '''either''': 320 * configure the DRMAA library to use Torque logs ('''RECOMMENDED'''). Sample configuration file of the DRMAA library (`/opt/plgrid/qcg/ smoa/etc/pbs_drmaa.conf`):320 * configure the DRMAA library to use Torque logs ('''RECOMMENDED'''). Sample configuration file of the DRMAA library (`/opt/plgrid/qcg/qcg/etc/pbs_drmaa.conf`): 321 321 {{{ 322 322 #!div style="font-size: 90%" … … 336 336 * configure Torque to keep information about completed jobs (e.g.: by setting: `qmgr -c 'set server keep_completed = 300'`). 337 337 338 It is possible to limit users to submit job to predefined queue by setting default job category (in the `/opt/plgrid/qcg/ smoa/etc/pbs_drmaa.conf` file):338 It is possible to limit users to submit job to predefined queue by setting default job category (in the `/opt/plgrid/qcg/qcg/etc/pbs_drmaa.conf` file): 339 339 {{{ 340 340 #!div style="font-size: 90%" … … 347 347 348 348 == Restricting advance reservation == 349 In some deployments enabling advance reservation for the whole cluster is not desirable. In such cases one can limit advance reservation to particular partition by editing `/opt/plgrid/qcg/ smoa/lib/smoa-comp/modules/python/reservation_maui.py` file and changing the following line:349 In some deployments enabling advance reservation for the whole cluster is not desirable. In such cases one can limit advance reservation to particular partition by editing `/opt/plgrid/qcg/qcg/lib/qcg-comp/modules/python/reservation_maui.py` file and changing the following line: 350 350 {{{ 351 351 #!div style="font-size: 90%" … … 363 363 364 364 = Service configuration = 365 Edit the preinstalled service configuration file (`/opt/plgrid/qcg/ smoa/etc/smoa-compd.xml`):365 Edit the preinstalled service configuration file (`/opt/plgrid/qcg/qcg/etc/qcg-compd.xml`): 366 366 {{{ 367 367 #!div style="font-size: 90%" 368 368 {{{#!xml 369 369 <?xml version="1.0" encoding="UTF-8"?> 370 <sm: SMOACore371 xmlns:sm="http://schemas. smoa-project.com/core/2009/01/config"372 xmlns="http://schemas. smoa-project.com/comp/2009/01/config"373 xmlns:smc="http://schemas. smoa-project.com/comp/2009/01/config"370 <sm:qcgCore 371 xmlns:sm="http://schemas.qcg-project.com/core/2009/01/config" 372 xmlns="http://schemas.qcg-project.com/comp/2009/01/config" 373 xmlns:smc="http://schemas.qcg-project.com/comp/2009/01/config" 374 374 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 375 375 376 376 <Configuration> 377 377 <sm:ModuleManager> 378 <sm:Directory>/opt/plgrid/qcg/ smoa/lib/smoa-core/modules/</sm:Directory>379 <sm:Directory>/opt/plgrid/qcg/ smoa/lib/smoa-comp/modules/</sm:Directory>378 <sm:Directory>/opt/plgrid/qcg/qcg/lib/qcg-core/modules/</sm:Directory> 379 <sm:Directory>/opt/plgrid/qcg/qcg/lib/qcg-comp/modules/</sm:Directory> 380 380 </sm:ModuleManager> 381 381 382 <sm:Service xsi:type=" smoa-compd" description="SMOAComputing">382 <sm:Service xsi:type="qcg-compd" description="QCG-Computing"> 383 383 <sm:Logger> 384 <sm:Filename>/opt/plgrid/var/log/ smoa-comp/smoa-comp.log</sm:Filename>384 <sm:Filename>/opt/plgrid/var/log/qcg-comp/qcg-comp.log</sm:Filename> 385 385 <sm:Level>INFO</sm:Level> 386 386 </sm:Logger> … … 393 393 <sm:Authentication> 394 394 <sm:Module xsi:type="sm:atc_transport_gsi.service"> 395 <sm:X509CertFile>/opt/plgrid/qcg/ smoa/etc/certs/smoacert.pem</sm:X509CertFile>396 <sm:X509KeyFile>/opt/plgrid/qcg/ smoa/etc/certs/smoakey.pem</sm:X509KeyFile>395 <sm:X509CertFile>/opt/plgrid/qcg/qcg/etc/certs/qcgcert.pem</sm:X509CertFile> 396 <sm:X509KeyFile>/opt/plgrid/qcg/qcg/etc/certs/qcgkey.pem</sm:X509KeyFile> 397 397 </sm:Module> 398 398 </sm:Authentication> … … 403 403 </sm:Authorization> 404 404 </sm:Module> 405 <sm:Module xsi:type="smc: smoa-comp-service"/>405 <sm:Module xsi:type="smc:qcg-comp-service"/> 406 406 </sm:Transport> 407 407 408 408 <sm:Module xsi:type="pbs_jsdl_filter"/> 409 409 <sm:Module xsi:type="atz_ardl_filter"/> 410 <sm:Module xsi:type="sm:general_python" path="/opt/plgrid/qcg/ smoa/lib/smoa-comp/modules/python/monitoring.py"/>411 412 <sm:Module xsi:type="submission_drmaa" path="/opt/plgrid/qcg/ smoa/lib/libdrmaa.so"/>413 <sm:Module xsi:type="reservation_python" path="/opt/plgrid/qcg/ smoa/lib/smoa-comp/modules/python/reservation_maui.py"/>410 <sm:Module xsi:type="sm:general_python" path="/opt/plgrid/qcg/qcg/lib/qcg-comp/modules/python/monitoring.py"/> 411 412 <sm:Module xsi:type="submission_drmaa" path="/opt/plgrid/qcg/qcg/lib/libdrmaa.so"/> 413 <sm:Module xsi:type="reservation_python" path="/opt/plgrid/qcg/qcg/lib/qcg-comp/modules/python/reservation_maui.py"/> 414 414 415 415 <sm:Module xsi:type="notification_wsn"> … … 424 424 425 425 <sm:Module xsi:type="application_mapper"> 426 <ApplicationMapFile>/opt/plgrid/qcg/ smoa/etc/application_mapfile</ApplicationMapFile>426 <ApplicationMapFile>/opt/plgrid/qcg/qcg/etc/application_mapfile</ApplicationMapFile> 427 427 </sm:Module> 428 428 429 429 <Database> 430 <DSN> smoa_comp</DSN>431 <User> smoa_comp</User>432 <Password> smoa_comp</Password>430 <DSN>qcg_comp</DSN> 431 <User>qcg_comp</User> 432 <Password>qcg_comp</Password> 433 433 </Database> 434 434 435 <UnprivilegedUser> smoa_comp</UnprivilegedUser>435 <UnprivilegedUser>qcg_comp</UnprivilegedUser> 436 436 437 437 <FactoryAttributes> … … 442 442 443 443 </Configuration> 444 </sm: SMOACore>444 </sm:qcgCore> 445 445 }}} 446 446 }}} … … 450 450 the hostname of the machine where the service is deployed 451 451 `Transport/Module/Authentication/Module/X509CertFile` and `Transport/Module/Authentication/Module/X509KeyFile` :: 452 the service private key and X.509 certificate (consult the [[http://www.globus.org/toolkit/docs/4.0/security/prewsaa/rn01re02.html|Globus User Gide]] on how to generate service certificate request or use the host certificate/key pair). Make sure that the key and certificate is owned by the ` smoa_comp` user and the private key is not password protected (generating certificate with the `-service` option implies this). If you installed cert and key file in the recommended location you do not need to edit these fields.452 the service private key and X.509 certificate (consult the [[http://www.globus.org/toolkit/docs/4.0/security/prewsaa/rn01re02.html|Globus User Gide]] on how to generate service certificate request or use the host certificate/key pair). Make sure that the key and certificate is owned by the `qcg_comp` user and the private key is not password protected (generating certificate with the `-service` option implies this). If you installed cert and key file in the recommended location you do not need to edit these fields. 453 453 `Module[type="smc:notification_wsn"]/Module/ServiceURL` :: 454 the URL of the Smoa Notification (QCG Notification) service (You can do it later, i.e. after [[installation_QCG_Notification_in_PLGrid|installing the SmoaNotification service]])454 the URL of the qcg Notification (QCG Notification) service (You can do it later, i.e. after [[installation_QCG_Notification_in_PLGrid|installing the qcg Notification service]]) 455 455 `Module[type="submission_drmaa"]/@path` :: 456 456 path to the DRMAA library (the `libdrmaa.so`). Also, if you installed the DRMAA library using provided SRC RPM you do not need to change this path. 457 457 `Database/Password` :: 458 the ` smoa_comp` database password458 the `qcg_comp` database password 459 459 `FactoryAttributes/CommonName` :: 460 460 a common name of the cluster (e.g. reef.man.poznan.pl). You can use any name that is unique among all systems (e.g. cluster name + domain name of your institution) … … 463 463 464 464 == Configuring BAT accounting module == 465 In order to report resource usage to the central PL-Grid accounting service you must enable the `bat_updater` module. You can do this by including the following snippet in the aforementioned configuration file (`/opt/plgrid/qcg/ smoa/etc/smoa-comp.xml`). Please put the following snippet just before the `Database` section:465 In order to report resource usage to the central PL-Grid accounting service you must enable the `bat_updater` module. You can do this by including the following snippet in the aforementioned configuration file (`/opt/plgrid/qcg/qcg/etc/qcg-comp.xml`). Please put the following snippet just before the `Database` section: 466 466 {{{ 467 467 #!div style="font-size: 90%" … … 469 469 <sm:Module xsi:type="bat_updater"> 470 470 <BATServiceURL>tcp://acct.grid.cyf-kr.edu.pl:61616</BATServiceURL> 471 <SiteName>psnc- smoa-plgrid</SiteName>471 <SiteName>psnc-qcg-plgrid</SiteName> 472 472 <QueueName>test-jobs</QueueName> 473 473 </sm:Module> … … 480 480 481 481 = Note on the security model = 482 The Smoa Computing can be configured with various authentication and authorization modules. However in the typical deployment we assume that the SmoaComputing is configured as in the above example, i.e.:482 The QCG-Computing can be configured with various authentication and authorization modules. However in the typical deployment we assume that the QCG-Computing is configured as in the above example, i.e.: 483 483 * authentication is provided on basics of ''httpg'' protocol 484 484 * authorization is based on the local `grid-mapfile` mapfile (see [[installation_GridFTP#Usersconfiguration|Users configuration]]). … … 489 489 #!div style="font-size: 90%" 490 490 {{{#!sh 491 /etc/init.d/ smoa-compd start491 /etc/init.d/qcg-compd start 492 492 }}} 493 493 }}} … … 497 497 #!div style="font-size: 90%" 498 498 {{{#!sh 499 /opt/plgrid/var/log/ smoa-comp/smoa-comp.log499 /opt/plgrid/var/log/qcg-comp/qcg-comp.log 500 500 }}} 501 501 }}} … … 507 507 * `releaseres` 508 508 * `checknode` 509 If any of the above commands is not installed in a standard location (e.g. `/usr/bin`) you may need to edit the `/opt/plgrid/qcg/ smoa/etc/sysconfig/smoa-compd` file and set the `PATH` variable appropriately, e.g.:509 If any of the above commands is not installed in a standard location (e.g. `/usr/bin`) you may need to edit the `/opt/plgrid/qcg/qcg/etc/sysconfig/qcg-compd` file and set the `PATH` variable appropriately, e.g.: 510 510 {{{ 511 511 #!div style="font-size: 90%" … … 536 536 #!div style="font-size: 90%" 537 537 {{{#!sh 538 /etc/init.d/ smoa-compd stop538 /etc/init.d/qcg-compd stop 539 539 }}} 540 540 }}} … … 542 542 = Verifying the installation = 543 543 544 * For convenience you can add the `/opt/plgrid/qcg/ smoa/bin` and `/opt/plgrid/qcg/smoa-dep/globus/bin/` to your `PATH` variable.545 * Edit the Smoa Computing client configuration file (`/opt/plgrid/qcg/smoa/etc/smoa-comp.xml`):546 * set the `Host` and `Port` to reflects the changes in the service configuration file (` smoa-compd.xml`).544 * For convenience you can add the `/opt/plgrid/qcg/qcg/bin` and `/opt/plgrid/qcg/qcg-dep/globus/bin/` to your `PATH` variable. 545 * Edit the QCG-Computing client configuration file (`/opt/plgrid/qcg/qcg/etc/qcg-comp.xml`): 546 * set the `Host` and `Port` to reflects the changes in the service configuration file (`qcg-compd.xml`). 547 547 {{{ 548 548 #!div style="font-size: 90%" 549 549 {{{#!sh 550 550 <?xml version="1.0" encoding="UTF-8"?> 551 <sm: SMOACore552 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"551 <sm:qcgCore 552 xmlns:sm="http://schemas.qcg-project.com/core/2009/01/config" 553 xmlns="http://schemas.qcg-project.com/comp/2009/01/config" 554 xmlns:smc="http://schemas.qcg-project.com/comp/2009/01/config" 555 555 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 556 556 557 557 <Configuration> 558 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>559 <sm:Directory>/opt/QCG/qcg/lib/qcg-core/modules/</sm:Directory> 560 <sm:Directory>/opt/QCG/qcg//lib/qcg-comp/modules/</sm:Directory> 561 561 </sm:ModuleManager> 562 562 563 <sm:Client xsi:type=" smoa-comp" description="SMOAComputing client">563 <sm:Client xsi:type="qcg-comp" description="QCG-Computing client"> 564 564 <sm:Transport> 565 565 <sm:Module xsi:type="sm:ecm_gsoap.client"> … … 568 568 <sm:Module xsi:type="sm:atc_transport_gsi.client"/> 569 569 </sm:Authentication> 570 <sm:Module xsi:type="smc: smoa-comp-client"/>570 <sm:Module xsi:type="smc:qcg-comp-client"/> 571 571 </sm:Module> 572 572 </sm:Transport> 573 573 </sm:Client> 574 574 </Configuration> 575 </sm: SMOACore>575 </sm:qcgCore> 576 576 }}} 577 577 }}} … … 587 587 }}} 588 588 }}} 589 * Query the SMOAComputing service:590 {{{ 591 #!div style="font-size: 90%" 592 {{{#!sh 593 smoa-comp -G | xmllint --format - # the xmllint is used only to present the result in more pleasant way589 * Query the QCG-Computing service: 590 {{{ 591 #!div style="font-size: 90%" 592 {{{#!sh 593 qcg-comp -G | xmllint --format - # the xmllint is used only to present the result in more pleasant way 594 594 595 595 <bes-factory:FactoryResourceAttributesDocument xmlns:bes-factory="http://schemas.ggf.org/bes/2006/08/bes-factory"> … … 608 608 <bes-factory:NamingProfile>http://schemas.ggf.org/bes/2006/08/bes/naming/BasicWSAddressing</bes-factory:NamingProfile> 609 609 <bes-factory:BESExtension>http://schemas.ogf.org/hpcp/2007/01/bp/BasicFilter</bes- factory:BESExtension> 610 <bes-factory:BESExtension>http://schemas. smoa-project.com/comp/2009/01</bes-factory:BESExtension>610 <bes-factory:BESExtension>http://schemas.qcg-project.com/comp/2009/01</bes-factory:BESExtension> 611 611 <bes-factory:LocalResourceManagerType>http://example.com/SunGridEngine</bes-factory:LocalResourceManagerType> 612 <smcf:NotificationProviderURL xmlns:smcf="http://schemas. smoa-project.com/comp/2009/01/factory">http://localhost:2211/</smcf:NotificationProviderURL>612 <smcf:NotificationProviderURL xmlns:smcf="http://schemas.qcg-project.com/comp/2009/01/factory">http://localhost:2211/</smcf:NotificationProviderURL> 613 613 </bes-factory:FactoryResourceAttributesDocument> 614 614 }}} … … 618 618 #!div style="font-size: 90%" 619 619 {{{#!sh 620 smoa-comp -c -J /opt/plgrid/qcg/smoa/share/smoa-comp/doc/examples/jsdl/sleep.xml620 qcg-comp -c -J /opt/plgrid/qcg/qcg/share/qcg-comp/doc/examples/jsdl/sleep.xml 621 621 Activity Id: ccb6b04a-887b-4027-633f-412375559d73 622 622 }}} … … 626 626 #!div style="font-size: 90%" 627 627 {{{#!sh 628 smoa-comp -s -a ccb6b04a-887b-4027-633f-412375559d73628 qcg-comp -s -a ccb6b04a-887b-4027-633f-412375559d73 629 629 status = Executing 630 smoa-comp -s -a ccb6b04a-887b-4027-633f-412375559d73630 qcg-comp -s -a ccb6b04a-887b-4027-633f-412375559d73 631 631 status = Executing 632 smoa-comp -s -a ccb6b04a-887b-4027-633f-412375559d73632 qcg-comp -s -a ccb6b04a-887b-4027-633f-412375559d73 633 633 status = Finished 634 634 exit status = 0 … … 640 640 #!div style="font-size: 90%" 641 641 {{{#!sh 642 cp /opt/plgrid/qcg/ smoa/share/smoa-comp/doc/examples/ardl/oneslot.xml oneslot.xml642 cp /opt/plgrid/qcg/qcg/share/qcg-comp/doc/examples/ardl/oneslot.xml oneslot.xml 643 643 }}} 644 644 }}} … … 648 648 #!div style="font-size: 90%" 649 649 {{{#!sh 650 smoa-comp -c -D oneslot.xml650 qcg-comp -c -D oneslot.xml 651 651 Reservation Id: aab6b04a-887b-4027-633f-412375559d7d 652 652 }}} … … 656 656 #!div style="font-size: 90%" 657 657 {{{#!sh 658 smoa-comp -l658 qcg-comp -l 659 659 Reservation Id: aab6b04a-887b-4027-633f-412375559d7d 660 660 Total number of reservations: 1 … … 665 665 #!div style="font-size: 90%" 666 666 {{{#!sh 667 smoa-comp -s -r aab6b04a-887b-4027-633f-412375559d7d667 qcg-comp -s -r aab6b04a-887b-4027-633f-412375559d7d 668 668 Reserved hosts: 669 669 worker.example.com[used=0,reserved=1,total=4] … … 674 674 #!div style="font-size: 90%" 675 675 {{{#!sh 676 smoa-comp -t -r aab6b04a-887b-4027-633f-412375559d7d676 qcg-comp -t -r aab6b04a-887b-4027-633f-412375559d7d 677 677 Reservation terminated. 678 678 }}} … … 689 689 = Configuring firewall = 690 690 In order to expose the !QosCosGrid services externally you need to open the following ports in the firewall: 691 * 19000 (TCP) - SmoaComputing692 * 19001 (TCP) - SmoaNotification691 * 19000 (TCP) - QCG-Computing 692 * 19001 (TCP) - qcg Notification 693 693 * 2811 (TCP) - GridFTP server 694 694 * 9000-9500 (TCP) - GridFTP port-range (if you want to use different port-range adjust the `GLOBUS_TCP_PORT_RANGE` variable in the `/etc/xinetd.d/gsiftp` file) 695 695 696 696 = Maintenance = 697 The historic usage information is stored in two relations of the SmoaComputing database: `jobs_acc` and `reservations_acc`. You can always archive old usage data to a file and delete it from the database using the psql client:698 {{{ 699 #!div style="font-size: 90%" 700 {{{#!sh 701 psql -h localhost smoa_comp smoa_comp702 Password for user smoa_comp:697 The historic usage information is stored in two relations of the QCG-Computing database: `jobs_acc` and `reservations_acc`. You can always archive old usage data to a file and delete it from the database using the psql client: 698 {{{ 699 #!div style="font-size: 90%" 700 {{{#!sh 701 psql -h localhost qcg_comp qcg_comp 702 Password for user qcg_comp: 703 703 Welcome to psql 8.1.23, the PostgreSQL interactive terminal. 704 704 … … 709 709 \q to quit 710 710 711 smoa_comp=> \o jobs.acc712 smoa_comp=> SELECT * FROM jobs_acc where end_time < date '2010-01-10';713 smoa_comp=> \o reservations.acc714 smoa_comp=> SELECT * FROM reservations_acc where end_time < date '2010-01-10';715 smoa_comp=> \o716 smoa_comp=> DELETE FROM jobs_acc where end_time < date '2010-01-10';717 smoa_comp=> DELETE FROM reservation_acc where end_time < date '2010-01-10';718 }}} 719 }}} 711 qcg_comp=> \o jobs.acc 712 qcg_comp=> SELECT * FROM jobs_acc where end_time < date '2010-01-10'; 713 qcg_comp=> \o reservations.acc 714 qcg_comp=> SELECT * FROM reservations_acc where end_time < date '2010-01-10'; 715 qcg_comp=> \o 716 qcg_comp=> DELETE FROM jobs_acc where end_time < date '2010-01-10'; 717 qcg_comp=> DELETE FROM reservation_acc where end_time < date '2010-01-10'; 718 }}} 719 }}}