JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Cluster Data Service for PostgreSQL Guide     Oracle Solaris Cluster 4.1
search filter icon
search icon

Document Information

Preface

1.  Installing and Configuring HA for PostgreSQL

HA for PostgreSQL Overview

Overview of Installing and Configuring HA for PostgreSQL

Planning the HA for PostgreSQL Installation and Configuration

PostgreSQL and Oracle Solaris Zones

PostgreSQL WAL Shipping

Configuration Restrictions

Restriction for the Location of the Database Cluster

Restriction for the Listening Policy of the PostgreSQL Database Server

Restriction for the PostgreSQL postgresql.conf File

Restriction for the Password Policy for the HA for PostgreSQL Monitoring Database

Restriction for the PostgreSQL smf Service Name in an HA for Solaris Zones Configuration

Restriction for the PostgreSQL WAL File Shipping Without Shared Storage

Configuration Requirements

Dependencies Between HA for PostgreSQL Components

Parameter File for HA for PostgreSQL

Configuration Requirements for the WAL File Shipping Without Shared Storage Configuration

Installing and Configuring PostgreSQL

How to Enable a PostgreSQL Database to Run in the Global Zone

How to Install and Configure PostgreSQL in the Global Zone

How to Enable a Non-Global Zone to Run PostgreSQL in an HA for Solaris Zones Configuration

How to Install and Configure PostgreSQL in an HA for Solaris Zones Configuration

Verifying the Installation and Configuration of PostgreSQL

How to Verify the Installation and Configuration of PostgreSQL

Installing the HA for PostgreSQL Package

How to Install the HA for PostgreSQL Package

Registering and Configuring HA for PostgreSQL

Specifying Configuration Parameters for the PostgreSQL Resource

Specifying the Parameters for the Rolechanger Resource

Specifying Configuration Files for WAL File Shipping Without Shared Storage

Preparing Your PostgreSQL Installation for Cluster Control

How to Prepare Your PostgreSQL for Oracle Solaris Cluster Registration in the Global Zone

How to Prepare Your PostgreSQL for Oracle Solaris Cluster Registration in an HA for Solaris Zones Configuration

Creating and Enabling Resources for PostgreSQL

How to Create and Enable Resources for PostgreSQL

How to Modify Parameters in the HA for PostgreSQL Manifest

How to Remove a HA for PostgreSQL Resource From an HA Container

How to Create and Enable Resources for PostgreSQL Rolechanger

Verifying the HA for PostgreSQL Installation and Configuration

How to Verify the HA for PostgreSQL Installation and Configuration

How to Verify the Oracle Solaris Cluster HA for PostgreSQL WAL File Shipping Installation and Configuration

Tuning the HA for PostgreSQL Fault Monitor

Operation of the HA for PostgreSQL Parameter File

Operation of the Fault Monitor for HA for PostgreSQL

Debugging HA for PostgreSQL

How to Activate Debugging for HA for PostgreSQL

A.  Files for Configuring Oracle Solaris Cluster HA for PostgreSQL Resources

B.  Deployment Example: Installing PostgreSQL in the Global Zone or a Zone Cluster

C.  Deployment Example: Installing PostgreSQL in a Non-Global Zone With HA for Solaris Zones

D.  Deployment Example: Installing PostgreSQL in the Global Zone Using WAL File Shipping

Index

Verifying the HA for PostgreSQL Installation and Configuration

After you install, register, and configure HA for PostgreSQL, verify this installation and configuration to determine whether the HA for PostgreSQL data service makes your PostgreSQL database highly available.

How to Verify the HA for PostgreSQL Installation and Configuration

  1. Become superuser on a cluster node that is to host the PostgreSQL component.
  2. Ensure that all the PostgreSQL resources are online.

    For each resource, perform the following steps:

    1. Determine whether the resource is online.
      # clresource status postgres-rs
    2. If the resource is not online, bring the resource online.
      # clresource enable postgres-rs
  3. Switch the resource group to another cluster node, such as node2.
    # clresourcegroup switch -h node2 postgres-rg
  4. Confirm that the resource is now online on node2.
    # clresource status postgres-rs

How to Verify the Oracle Solaris Cluster HA for PostgreSQL WAL File Shipping Installation and Configuration

  1. Become superuser on a cluster node that is to host the PostgreSQL component.
  2. Ensure that all the PostgreSQL resources are online.

    For each resource, perform the following steps:

    1. Determine whether the resource is online.
      # clresource status postgres-prim-rs
      # clresource status postgres-sta-rs
      # clresource status rolechg-rs
    2. If the resource is not online, bring the resource online.
      # clresource enable postgres-sta-rs
      # clresource enable postgres-prim-rs
      # clresource enable rolechg-rs
  3. Reboot the primary node where the primary database runs.
    # reboot
  4. Confirm that the resource is now online on node 2.
    # clresource status rolechg-rs
  5. For a failback, log in as the Postgres user on the standby node and resilver the primary node by executing scripts resilver-step1 and resilver-step2.

    Note - Ensure that you follow the configuration steps for the scripts.