This example illustrates how to install the PostgreSQL software on shared storage. You can also build and install the PostgreSQL binaries in the default directory /usr/local/pgsql. See Installing the PostgreSQL Binaries in the Default Directory in a Zone (Alternative Installation). Perform this procedure on phys-host-1 and phys-host-2.
Log in to the zone.
phys-schost-1# zlogin clu1 |
Add the postgres user.
zone-1# groupadd -g 1000 postgres zone-1# useradd -g 1000 -u 1006 -d /postgres -m -s /bin/ksh postgres zone-2# groupadd -g 1000 postgres zone-2# useradd -g 1000 -u 1006 -d /postgres -m -s /bin/ksh postgres |
Log in as the PostgreSQL user.
zone-1# su - postgres |
Set up the build environment.
Install the source and configure the build.
zone-1$ gzcat /tmp/postgresql-8.1.0.tag.gz | tar xvf - zone-1$ cd /global/mnt3/postgres/build/postgresql-8.1.0 zone-1$ ./configure --prefix=/global/mnt3/postgres/postgresql-8.1.0 |
Build the PostgreSQL binaries.
zone-1$ gmake |
If you use gcc to build the postgres binaries, build them in a failover file system.
Run the PostgreSQL regression tests.
zone-1$ gmake check |
Install the PostgreSQL binaries.
zone-1# gmake install |
Clean the distribution.
zone-1$ gmake clean |