Changes between Version 28 and Version 29 of UpdateInstructions

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

--

Legend:

Unmodified
Added
Removed
Modified
  • UpdateInstructions

    v28 v29  
    33In most cases the update of the QCG-Notification is straightforward and doesn't need any additional work beyond typical operations (e.g. 'rpm -U' in case of RPMs). Nevertheless, some updates may require changes in configuration files or/and database schema. The following list of instructions corresponds only to the updates that need such a special treatment. 
    44 
    5 == Update to 2.6.x == 
    6 In version 2.6.x of QCG-Notification the database schema has changed so the database used by the installed service must be updated as well. Note that all data stored in the database will be removed. 
    7 1. Turn off the QCG-Notification service. 
    8 2. Update the service in a typical fashion. 
    9 3. Update the QCG-Notifcation database. For installation from RPMs you can use the script installed in /opt/plgrid/qcg/share/qcg-ntf/tools/qcg-ntf-update.sh. Alternatively you can change the database manually with the SQL script from PREFIX/share/qcg-ntf/tools/qcg-ntf-psql.sql. 
    10 4. Re-run the QCG-Notification service. 
    11  
    12 === Example === 
    13 {{{ 
    14 #!div style="font-size: 90%" 
    15 {{{#!sh 
    16 $ sudo bash 
    17 # /sbin/service qcg-ntfd stop 
    18 Shutting down qcg-ntfd:                                    [  OK  ] 
    19 # yum update qcg-ntf 
    20 ... 
    21 # /opt/plgrid/qcg/share/qcg-ntf/tools/qcg-ntf-update.sh  
    22 Welcome to qcg-ntf update script! 
    23  
    24 This script will guide you through process of updating QCG Notification service.  
    25 You have to answer few questions regarding parameters of your database.  
    26 If you are not sure check the values in QCG-Notification configuration file.  
    27  
    28 Use local PostgreSQL server? (y/n) [y]:  
    29 Database [qcg-ntf]:  
    30 User [qcg-ntf]:  
    31 Password [qcg-ntf]:  
    32  
    33 Checking for system user qcg-ntf...OK  
    34  
    35 Performing installation 
    36    
    37 Schema update 
    38  * Creating database schema...OK 
    39  
    40 # /sbin/service qcg-ntfd start 
    41 Starting qcg-ntfd:                                         [  OK  ] 
    42 }}} 
     5[[UpdateTo2_6|Update to 2.6.x]]