Create a PostgreSQL Resource Hierarchy
It is assumed that the PostgreSQL service has stopped on both the active and the standby node at the beginning of this section. (It should be stopped when the previous section is completed.)
- Log in to the active node (SIOS20-NODE1) with SIOS20-AD\lkadmin.
- Launch the LifeKeeper GUI and login with SIOS20-AD\lkadmin.
- Make all resources active on SIOS20-NODE1.
- Start the PowerShell for administrators and execute the following command to start the PostgreSQL service.
Check the service.
PS > Get-Service postgre*
Stop the service.
PS > Start-Service -Name <postgre_service_name>
- From the menu bar, click Edit > Server > Create Resource Hierarchy and follow the prompts to enter the details following tables.
PostgreSQL resource (create) |
Primary Server |
SIOS20-NODE1 |
Backup Server |
SIOS20-NODE2 |
Application to protect |
PostgreSQL Server |
PostgreSQL Service Name |
postgresql-x64-14 |
PostgreSQL Executable Location |
C:\Program Files\PostgreSQL\14\bin (Default Value) |
PostgreSQL Data Directory |
D:\pgdata |
PostgreSQL port |
5432 |
Database Administration User |
postgres |
PostgreSQL Database Tag |
pgsql-5432 (Default Value) |
PostgreSQL リソース (extend) |
PostgreSQL Executable Location |
C:\Program Files\PostgreSQL\14\bin (Default Value) |
Backup Priority |
10 (Default Value) |
Create PostgreSQL Resource Dependencies
- Log in to the Windows OS on the active node (SIOS20-NODE1) as SIOS20-AD\lkadmin.
- Launch the LifeKeeper GUI and log in as SIOS20-AD\lkadmin.
- Generate dependencies on the PostgreSQL resource and the IP resource. From the menu bar, click Edit > Resource > Add Dependency and follow the prompts to enter the details following the table.
Create Dependency |
Server |
SIOS20-NODE1 |
Parent Resource |
pgsql-5432 |
Child Resource |
10.0.2.21 |
- The resource hierarchy has been created as follows. Note that the IP address and volume resources are children of the parent resource “pgsql-5432”.
Creating Dependency between LB Health Check Resource and PostgreSQL Resource
- Log in to the Windows OS on the active node (SIOS20-NODE1) as SIOS20-AD\lkadmin.
- Launch the LifeKeeper GUI and log in as SIOS20-AD\lkadmin.
- Generate dependencies on Gen-LB and pgsql-5432. From the menu bar, click Edit > Resource > Add Dependency and follow the prompts to enter the details following the table.
Create Dependency |
Server |
SIOS20-NODE1 |
Parent Resource |
Gen-LB |
Child Resource |
pgsql-5432 |
- The resource hierarchy has been created as follows.
Post your comment on this topic.