01f6cc0
How to set up an DPM nameserver with a postgres backend
01f6cc0
=======================================================
01f6cc0
01f6cc0
The DPM nameserver (DPNS) is run by the dpmmgr user. This user
01f6cc0
requires a copy of the host certificate files:
01f6cc0
01f6cc0
  cp -p /etc/grid-security/hostcert.pem /etc/grid-security/dpmmgr/dpmcert.pem
01f6cc0
  cp -p /etc/grid-security/hostkey.pem /etc/grid-security/dpmmgr/dpmkey.pem
01f6cc0
  chown dpmmgr:dpmmgr /etc/grid-security/dpmmgr/dpm*
01f6cc0
01f6cc0
Create a postgres database user for the DPNS server:
01f6cc0
01f6cc0
  createuser -P <user>
01f6cc0
01f6cc0
The command above will prompt you for a password for the new user.
01f6cc0
01f6cc0
Create the DPNS database:
01f6cc0
01f6cc0
  createdb -O <user> <dbname>
01f6cc0
01f6cc0
Create the DPNS database tables:
01f6cc0
01f6cc0
  psql -W -U <user> <dbname> -f /usr/share/dpm/create_dpns_tables_postgres.sql
01f6cc0
01f6cc0
Let the DPNS server know about the account information and make sure
01f6cc0
only the dpmmgr user can read this information:
01f6cc0
01f6cc0
  touch /etc/DPNSCONFIG
01f6cc0
  chmod 600 /etc/DPNSCONFIG
01f6cc0
  chown dpmmgr:dpmmgr /etc/DPNSCONFIG
01f6cc0
  echo <user>/<password>@<dbserver>/<dbname> > /etc/DPNSCONFIG
01f6cc0
01f6cc0
If the /<dbname> part is omitted the database "cns_db" will be used.
01f6cc0
01f6cc0
If you have a firewall, open the DPNS server port (5010).
01f6cc0
01f6cc0
Once the configuration is completed, start the DPNS server:
01f6cc0
01f6cc0
  service dpm-postgres-nameserver start
01f6cc0
01f6cc0
If you want to start the service automatically at boot time:
01f6cc0
01f6cc0
  chkconfig --add dpm-postgres-nameserver