Changes between Version 21 and Version 22 of InstallingUsingRPMS
- Timestamp:
- 06/13/11 11:49:04 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallingUsingRPMS
v21 v22 112 112 = Installation using provided RPMS = 113 113 * Create the following users: 114 * `qcg _comp` - needed by the QCG-Computing service115 * `qcg _broker` - the user that the [http://apps.man.poznan.pl/trac/qcg-broker QCG-Broker] service would be mapped to116 {{{ 117 #!div style="font-size: 90%" 118 {{{#!sh 119 useradd -d /opt/plgrid/var/log/qcg-comp/ -m qcg _comp120 useradd -d /opt/plgrid/var/log/qcg-broker/ -m qcg _broker114 * `qcg-comp` - needed by the QCG-Computing service 115 * `qcg-broker` - the user that the [http://apps.man.poznan.pl/trac/qcg-broker QCG-Broker] service would be mapped to 116 {{{ 117 #!div style="font-size: 90%" 118 {{{#!sh 119 useradd -d /opt/plgrid/var/log/qcg-comp/ -m qcg-comp 120 useradd -d /opt/plgrid/var/log/qcg-broker/ -m qcg-broker 121 121 }}} 122 122 }}} 123 123 * and the following group: 124 * `qcg _dev` - this group is allowed to read the configuration and log files. Please add the qcg services' developers to this group.125 {{{ 126 #!div style="font-size: 90%" 127 {{{#!sh 128 groupadd qcg _dev124 * `qcg-dev` - this group is allowed to read the configuration and log files. Please add the qcg services' developers to this group. 125 {{{ 126 #!div style="font-size: 90%" 127 {{{#!sh 128 groupadd qcg-dev 129 129 }}} 130 130 }}} … … 172 172 173 173 Use local PostgreSQL server? (y/n) [y]: y 174 Database [qcg _comp]:175 User [qcg _comp]:176 Password [qcg _comp]: MojeTajneHaslo174 Database [qcg-comp]: 175 User [qcg-comp]: 176 Password [qcg-comp]: MojeTajneHaslo 177 177 Create database? (y/n) [y]: y 178 178 Create user? (y/n) [y]: y 179 179 180 Checking for system user qcg _comp...OK180 Checking for system user qcg-comp...OK 181 181 Checking whether PostgreSQL server is installed...OK 182 182 Checking whether PostgreSQL server is running...OK 183 183 184 184 Performing installation 185 * Creating user qcg _comp...OK186 * Creating database qcg _comp...OK185 * Creating user qcg-comp...OK 186 * Creating database qcg-comp...OK 187 187 * Creating database schema...OK 188 * Checking for ODBC data source qcg _comp...188 * Checking for ODBC data source qcg-comp... 189 189 * Installing ODBC data source...OK 190 190 191 Remember to add appropriate entry to /var/lib/pgsql/data/pg_hba.conf (as the first rule!) to allow user qcg _comp to192 access database qcg _comp. For instance:193 194 host qcg _comp qcg_comp 127.0.0.1/32 md5191 Remember to add appropriate entry to /var/lib/pgsql/data/pg_hba.conf (as the first rule!) to allow user qcg-comp to 192 access database qcg-comp. For instance: 193 194 host qcg-comp qcg-comp 127.0.0.1/32 md5 195 195 196 196 and reload Postgres server. … … 272 272 }}} 273 273 274 Add appropriate rights for the `qcg _comp` and `qcg_broker` users in the Maui scheduler configuaration file:274 Add appropriate rights for the `qcg-comp` and `qcg-broker` users in the Maui scheduler configuaration file: 275 275 {{{ 276 276 #!div style="font-size: 90%" … … 279 279 # primary admin must be first in list 280 280 ADMIN1 root 281 ADMIN2 qcg _broker282 ADMIN3 qcg _comp281 ADMIN2 qcg-broker 282 ADMIN3 qcg-comp 283 283 }}} 284 284 }}} … … 289 289 cp /etc/grid-security/hostcert.pem /opt/plgrid/qcg/etc/certs/qcgcert.pem 290 290 cp /etc/grid-security/hostkey.pem /opt/plgrid/qcg/etc/certs/qcgkey.pem 291 chown qcg _comp /opt/plgrid/qcg/etc/certs/qcgcert.pem292 chown qcg _comp /opt/plgrid/qcg/etc/certs/qcgkey.pem291 chown qcg-comp /opt/plgrid/qcg/etc/certs/qcgcert.pem 292 chown qcg-comp /opt/plgrid/qcg/etc/certs/qcgkey.pem 293 293 chmod 0600 /opt/plgrid/qcg/etc/certs/qcgkey.pem 294 294 }}} … … 411 411 412 412 <Database> 413 <DSN>qcg _comp</DSN>414 <User>qcg _comp</User>415 <Password>qcg _comp</Password>413 <DSN>qcg-comp</DSN> 414 <User>qcg-comp</User> 415 <Password>qcg-comp</Password> 416 416 </Database> 417 417 418 <UnprivilegedUser>qcg _comp</UnprivilegedUser>418 <UnprivilegedUser>qcg-comp</UnprivilegedUser> 419 419 420 420 <FactoryAttributes> … … 433 433 the hostname of the machine where the service is deployed 434 434 `Transport/Module/Authentication/Module/X509CertFile` and `Transport/Module/Authentication/Module/X509KeyFile` :: 435 the service private key and X.509 certificate. Make sure that the key and certificate is owned by the `qcg _comp` user. If you installed cert and key file in the recommended location you do not need to edit these fields.435 the service private key and X.509 certificate. Make sure that the key and certificate is owned by the `qcg-comp` user. If you installed cert and key file in the recommended location you do not need to edit these fields. 436 436 `Module[type="smc:notification_wsn"]/Module/ServiceURL` :: 437 437 the URL of the QCG-Notification service (You can do it later, i.e. after [http://www.qoscosgrid.org/trac/qcg-notification/wiki/installation_in_PL-Grid installing the QCG-Notification service]) … … 439 439 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. 440 440 `Database/Password` :: 441 the `qcg _comp` database password441 the `qcg-comp` database password 442 442 `FactoryAttributes/CommonName` :: 443 443 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) … … 693 693 #!div style="font-size: 90%" 694 694 {{{#!sh 695 psql -h localhost qcg _comp qcg_comp696 Password for user qcg _comp:695 psql -h localhost qcg-comp qcg-comp 696 Password for user qcg-comp: 697 697 Welcome to psql 8.1.23, the PostgreSQL interactive terminal. 698 698 … … 703 703 \q to quit 704 704 705 qcg _comp=> \o jobs.acc706 qcg _comp=> SELECT * FROM jobs_acc where end_time < date '2010-01-10';707 qcg _comp=> \o reservations.acc708 qcg _comp=> SELECT * FROM reservations_acc where end_time < date '2010-01-10';709 qcg _comp=> \o710 qcg _comp=> DELETE FROM jobs_acc where end_time < date '2010-01-10';711 qcg _comp=> DELETE FROM reservation_acc where end_time < date '2010-01-10';712 }}} 713 }}} 705 qcg-comp=> \o jobs.acc 706 qcg-comp=> SELECT * FROM jobs_acc where end_time < date '2010-01-10'; 707 qcg-comp=> \o reservations.acc 708 qcg-comp=> SELECT * FROM reservations_acc where end_time < date '2010-01-10'; 709 qcg-comp=> \o 710 qcg-comp=> DELETE FROM jobs_acc where end_time < date '2010-01-10'; 711 qcg-comp=> DELETE FROM reservation_acc where end_time < date '2010-01-10'; 712 }}} 713 }}}