Changes between Version 56 and Version 57 of RasdamanQuickInstall


Ignore:
Timestamp:
Dec 30, 2015 6:22:59 AM (21 months ago)
Author:
pbaumann
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RasdamanQuickInstall

    v56 v57  
    3737}}}
    3838
    39  4. Get and compile rasdaman, configured to sit locally (!) in ~rasdaman/install
     39 4. Get and compile rasdaman, configured to sit in `$RMANHOME`
    4040{{{
    4141#!sh
     
    5050{{{
    5151#!sh
    52 mkdir ../install
    5352make install
    5453}}}
    5554
    56  6. Add super user in postgres (same name as the local user)
     55 6. If PostgreSQL support is needed (see [wiki:RasdamanStorageBackend options]): Add super user in postgres (same name as the local user)
    5756{{{
    5857#!sh
    5958sudo -u postgres createuser -s rasdaman -P
    6059}}}
    61  7. Setup the rasdaman database. '''Important:''' By default postgresql keeps the database in /var/lib/postgresql, so at this step you may want to [wiki:RasdamanQuickInstall#AlternativePostgreSQLdatabaselocation move it to another place].
     60
     61 7. Setup the rasdaman database:
    6262{{{
    6363#!sh
     
    8181rasql -q 'select c from RAS_COLLECTIONNAMES as c' --out string
    8282}}}
    83 
    84 = Alternative PostgreSQL database location =
    85 
    86 == Move the database ==
    87 By default postgresql keeps the database in /var/lib/postgresql/8.4/main/, to move it to another place (let's say `/data/pgdata`) follow the steps below.
    88 
    89  1. Stop postgresql
    90 {{{
    91 #!sh
    92 service postgresql stop
    93 }}}
    94  2. Create new directory for the postgres database\
    95 {{{
    96 #!sh
    97 mkdir -p /data/pgdata
    98 chown postgres: /data/pgdata
    99 }}}
    100  3. Edit postgres configuration file and change the 'data_directory' to point to /data/pgdata
    101 {{{
    102 #!sh
    103 editor /etc/postgresql/8.4/main/postgresql.conf
    104 }}}
    105   3.1. Option 1: initialize new data dir
    106 {{{
    107 #!sh
    108 sudo -u postgres /usr/lib/postgresql/8.4/bin/initdb -D /data/pgdata
    109 }}}
    110   3.2. Option 2: move your old directory to the new place
    111 {{{
    112 #!sh
    113 mv /var/lib/postgresql/8.4/main/* /data/pgdata
    114 }}}
    115  4. Link to ssl certificates
    116 {{{
    117 #!sh
    118 ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem /data/pgdata/server.crt
    119 ln -s /etc/ssl/private/ssl-cert-snakeoil.key /data/pgdata/server.key
    120 }}}
    121   4.1 Or alternatively set `ssl = false` in postgresql.conf
    122 
    123  5. Start postgresql
    124 {{{
    125 #!sh
    126 service postgresql start
    127 }}}
    128 
    129 == Use a tablespace ==
    130 Alternatively we can use a tablespace, and create RASBASE in that tablespace.
    131 
    132  1. Create new directory for the new tablespace:
    133 {{{
    134 #!sh
    135 mkdir -p /data/pgdata
    136 chown postgres: /data/pgdata
    137 }}}
    138  2. Create a `rasdaman` tablespace in postgres:
    139 {{{
    140 #!sh
    141 sudo -u postgres psql -d postgres
    142 CREATE TABLESPACE rasdaman LOCATION '/data/pgdata';
    143 }}}
    144  3. Patch the rasdaman create_db.sh script to use create the database in the new tablespace:
    145 {{{
    146 #!sh
    147 sed -i 's/createdb $DATABASE_NAME/createdb $DATABASE_NAME -D rasdaman/' $RMANHOME/bin/create_db.sh
    148 }}}