Install the PostgreSQL Client

  1. Log in to SIOS20-BASTION as SIOS20-AD\lkadmin.
  1. Download the PostgreSQL (Windows x86-64) installation image from the following site, place it anywhere, and double-click it to open it. Version 14.7 is used here. This installation image is identical to the one for the PostgreSQL server.
    https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
  1. Select only the Command Line Tools for installation. Then follow the prompts to install by default.

Verifying PostgreSQL Client Connectivity

  1. Log in to SIOS20-NODE1 or SIOS20-NODE2 as SIOS20-AD\lkadmin.
  1. Launch the LifeKeeper GUI and verify that the resource hierarchy is active on SIOS20-NODE1.
  1. Log in to SIOS20-BASTION as SIOS20-AD\lkadmin.
  1. Open the command prompt and run the following command:
    > "C:\Program Files\PostgreSQL\14\bin\psql" -h 10.0.2.21 -p 5432 -U postgres -l
    

    If you enter your password and see the list of databases, this means everything is working correctly.
  1. Then run the following command:
    > "C:\Program Files\PostgreSQL\14\bin\psql" -h 10.0.2.21 -p 5432 -U postgres
    

    Enter the password and run the following internal command:
    postgres=# SELECT inet_server_addr();
    

    The IP address used when executing the psql command will be displayed. It returns 10.0.2.21.
  1. Using the LifeKeeper GUI, configure the PostgreSQL resources so that SIOS20-NODE2 is active.
  1. Run the command again on SIOS20-BASTION. The IP address shown at the end is 10.0.2.21.

This completes the connection verification.

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment