Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Cluster Data Service for PostgreSQL Guide Oracle Solaris Cluster 3.3 3/13 |
1. Installing and Configuring HA for PostgreSQL
A. Files for Configuring Oracle Solaris Cluster HA for Solaris PostgreSQL Resources
B. Deployment Example: Installing PostgreSQL in the Global Zone
C. Deployment Example: Installing PostgreSQL in a Non-Global HA Container
Installing and Configuring PostgreSQL on Shared Storage in a Non-Global HA Container
Example: Preparing the Cluster for PostgreSQL
Example: Configuring Cluster Resources for PostgreSQL
Example: Modifying the PostgreSQL Configuration File
Example: Building and Installing the PostgreSQL Software on Shared Storage in an HA Container
Example: Enabling the PostgreSQL Software to Run in the Cluster
Example: Building and Installing the PostgreSQL Software in the Default Directory in an HA Container
D. Deployment Example: Installing PostgreSQL in a Non-Global Zone
E. Deployment Example: Installing PostgreSQL in the Global Zone Using WAL File Shipping
This example presents a sparse root zone. You can use a whole root zone if that type better suits your configuration.
phys-schost-1# mkdir /global/mnt3/zones
create -b set zonepath=/global/mnt3/zones/clu1 set autoboot=false set pool=pool_default add inherit-pkg-dir set dir=/lib end add inherit-pkg-dir set dir=/platform end add inherit-pkg-dir set dir=/sbin end add inherit-pkg-dir set dir=/usr end add net set address=hahostix1 set physical=bge0 end add attr set name=comment set type=string set value="PostgreSQL cluster zone" Put your desired zone name between the quotes here. end
phys-schost-1# zonecfg -z clu1 -f /tmp/x
phys-schost-1# zoneadm -z clu1 install
phys-schost-1# zlogin -C clu1
phys-schost-1a# zoneadm -z clu1 boot
phys-schost-1# ~~.
phys-schost-1# cp /opt/SUNWsczone/sczbt/util/sczbt_config /tmp/sczbt_config
RS=RS-PGS-ZONE RG=RG-PGS PARAMETERDIR=/global/mnt3/zonepar SC_NETWORK=false SC_LH= FAILOVER=true HAS_RS=RS-PGS-HAS Zonename=clu1 Zonebootopt= Milestone=multi-user-server Mounts=
phys-schost-1# ksh /opt/SUNWsczone/sczbt/util/sczbt_register -f /tmp/sczbt_config
phys-schost-1# clresource enable RS-PGS-ZONE