From b80d9104fec881fd5755abbb32049a791dc15159 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Tue, 21 Jul 2015 17:15:42 -0400 Subject: [PATCH] Adding more content into configure postgres instructions --- .../databases/postgres_configure.rst | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/source/guides/admin-guides/large_clusters/databases/postgres_configure.rst b/source/guides/admin-guides/large_clusters/databases/postgres_configure.rst index ad28bd8dd..ad4f75d77 100644 --- a/source/guides/admin-guides/large_clusters/databases/postgres_configure.rst +++ b/source/guides/admin-guides/large_clusters/databases/postgres_configure.rst @@ -1,5 +1,8 @@ +Configure PostgreSQL +==================== + Migrate xCAT to use PostgreSQL -============================== +------------------------------ A utility is provided to migrate an existing xCAT database from SQLite to PostgreSQL. :: @@ -7,3 +10,26 @@ A utility is provided to migrate an existing xCAT database from SQLite to Postgr **While not recommended**, if you wish to manually migrate your xCAT database, see the following documentation: `Manually set up PostgreSQL `_ + +Setting up the Service Nodes +---------------------------- + +For service nodes, add the IP address of each service nodes to the postgres configuration file: ``/var/lib/pgsql/data/pg_hba.conf`` + +If you had the following two service nodes: :: + + sn10 192.168.1.10 + sn11 192.168.1.11 + +You would add the following to ``/var/lib/pgsql/data/pg_hba.conf`` :: + + host all all 11.16.1.230/32 md5 + host all all 11.16.2.230/32 md5 + +Restart PostgreSQL after editing the file: :: + + service postgresql restart + + +For more information about changing the ``pg_hab.conf`` file and ``postgresql.conf`` files, see the following documentation: +`Setup the PostgreSQL Configuraion Files `_