Top
Enterprise Postgres 17 Installation and Setup Guide for Server

4.2.2 Preparing Directories for Resource Deployment

Prepare the directories required when creating instances.

Considerations when deploying resources

The disk configuration on the resource deployment destination is important, because it affects not only recovery following disk corruption, but normal operation as well. The points for determining the disk configuration are as follows:

  1. If the backup data storage destination and the data storage destination are both lost, it will not be possible to recover the data, so deploy them to separate disks.

  2. To shorten the recovery time following a single disk fault, deploy the system disk and data storage destination to separate disks.

  3. The backup data storage destination requires at least double the capacity of the data storage destination, so deploy it to the disk with the most space available.

  4. When large amounts of data are updated, the write-to load for the data storage destination, transaction log storage destination, and backup data storage destination (mirrored transaction log) will also be great. For this reason, deploy them to separate disks, out of consideration for performance.

Information

If you choose to place the archive log and mirrored transaction log (mirrored WAL) on a disk that is separate from the backup data storage destination, keep the following points in mind:

  • Recovery requires not only the backup data, but also the archive log and mirrored transaction log (mirrored WAL). Therefore, make sure that these items can be stored together.

  • Note that the permissions and mount state are the same at the time of the recovery as they were at the time of the backup. Make the archive log and mirrored transaction log (mirrored WAL) available before starting the recovery.

Resource

Role

Database cluster

The area where the database is stored. It is a collection of databases managed by an instance.

Tablespace

Stores table files and index files in a separate area from the database cluster.

Specify a space other than that under the database cluster.

Transaction log

Stores log information in preparation for a crash recovery or rollback.

This is the same as the WAL (Write Ahead Log).

Archive log

Stores log information for recovery

Mirrored transaction log (mirrored WAL)

Enables a database cluster to be restored to the state immediately before an error even if both the database cluster and transaction log fail when performing backup/recovery operations using the pgx_dmpall command or WebAdmin.

Corefile

Fujitsu Enterprise Postgres process corefile output when an error occurs with a Fujitsu Enterprise Postgres process.

Examples of disk deployment

The following are examples of disk deployment:

Number of disks

Disk

Deployment

3

System disk

Fujitsu Enterprise Postgres program

Corefile

Connected physical disk

Data storage destination, transaction log storage destination

Connected physical disk

Backup data storage destination

2

System disk

Fujitsu Enterprise Postgres program

Corefile

Data storage destination, transaction log storage destination

Connected physical disk

Backup data storage destination

Preparing directories

You cannot use directories mounted over the network.
Examples include NFS (Network File System) and CIFS (Common Internet File System).
Do not use these directories unless you are creating tablespaces on a storage device on your network.

The directories to be prepared depend on the way that you create the instances.


Using WebAdmin

For WebAdmin, WebAdmin automatically creates the directory during instance creation.

Directory

Description

Data storage destination

Specify in the GUI.

Backup data storage destination

Specify in the GUI.
Place them on a disk different from the data storage destination.

Transaction log storage destination

Specify in the GUI.
The default is to create in a directory in the data storage destination. When it is necessary to distribute the I/O load for the database data and the transaction log, consider putting the transaction log storage destination on a different disk from the data storage destination

Corefile output destination

WebAdmin generates it automatically, so no specification is required. For more information about directories, refer to "Directory for Core File Output when Using WebAdmin".

Directory for Core File Output when Using WebAdmin

The corefile path is as follows:

/var/tmp/fsep_productVersion_WA_architecture/instanceAdminUser_instanceNamePortNumber/core

Example:

/var/tmp/fsep_170_WA_64/naomi_myinst27599/core

To change the output destination, configure the core_directory and the core_contents parameters in postgresql.conf. Refer to "Parameters" in the Operation Guide for information on the settings for these parameters.

Using the initdb Command

For the inidb command, prepare the directory in advance.

The directories to prepare in advance are:

Directory to be prepared

Required / Optional

Data storage destination

Required

Backup data storage destination

Optional

Transaction log storage destination

Optional

Corefile output destination

Optional