Changes between Version 7 and Version 8 of RasdamanQuickInstallDebian8


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

--

Legend:

Unmodified
Added
Removed
Modified
  • RasdamanQuickInstallDebian8

    v7 v8  
    120120Once rasdaman is installed and running, you can optionally setup petascope, the rasdaman geo services suite (see [wiki:PetascopeUserGuide installation guide]).
    121121
    122 = Alternative PostgreSQL database location =
    123 
    124 == Move the database (untested yet) ==
    125 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.
    126 
    127  1. Stop postgresql
    128 {{{
    129 #!sh
    130 service postgresql stop
    131 }}}
    132  2. Create new directory for the postgres database\
    133 {{{
    134 #!sh
    135 mkdir -p /data/pgdata
    136 chown postgres: /data/pgdata
    137 }}}
    138  3. Edit postgres configuration file and change the 'data_directory' to point to /data/pgdata
    139 {{{
    140 #!sh
    141 editor /etc/postgresql/8.4/main/postgresql.conf
    142 }}}
    143   3.1. Option 1: initialize new data dir
    144 {{{
    145 #!sh
    146 sudo -u postgres /usr/lib/postgresql/8.4/bin/initdb -D /data/pgdata
    147 }}}
    148   3.2. Option 2: move your old directory to the new place
    149 {{{
    150 #!sh
    151 mv /var/lib/postgresql/8.4/main/* /data/pgdata
    152 }}}
    153  4. Link to ssl certificates
    154 {{{
    155 #!sh
    156 ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem /data/pgdata/server.crt
    157 ln -s /etc/ssl/private/ssl-cert-snakeoil.key /data/pgdata/server.key
    158 }}}
    159   4.1 Or alternatively set `ssl = false` in postgresql.conf
    160 
    161  5. Start postgresql
    162 {{{
    163 #!sh
    164 service postgresql start
    165 }}}
    166 
    167 == Use a tablespace ==
    168 Alternatively we can use a tablespace, and create RASBASE in that tablespace.
    169 
    170  1. Create new directory for the new tablespace:
    171 {{{
    172 #!sh
    173 mkdir -p /data/pgdata
    174 chown postgres: /data/pgdata
    175 }}}
    176  2. Create a `rasdaman` tablespace in postgres:
    177 {{{
    178 #!sh
    179 sudo -u postgres psql -d postgres
    180 CREATE TABLESPACE rasdaman LOCATION '/data/pgdata';
    181 }}}
    182  3. Patch the rasdaman create_db.sh script to use create the database in the new tablespace:
    183 {{{
    184 #!sh
    185 sed -i 's/createdb $DATABASE_NAME/createdb $DATABASE_NAME -D rasdaman/' $RMANHOME/bin/create_db.sh
    186 }}}