01f6cc0
How to set up an DPM server with a mysql backend
01f6cc0
================================================
01f6cc0
01f6cc0
The DPM server is run by the dpmmgr user. This user requires a copy of
01f6cc0
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 the DPM database on the mysql server:
01f6cc0
01f6cc0
  mysql -u root < /usr/share/dpm/create_dpm_tables_mysql.sql
01f6cc0
01f6cc0
Select a username and password for this mysql database table. Replace
01f6cc0
<user> and <password> in the commands below with your choice, also
01f6cc0
replace <hostname> with the hostname of the DPM server:
01f6cc0
01f6cc0
  mysql -u root
01f6cc0
  mysql> use mysql
01f6cc0
  mysql> grant all on dpm_db.* to <user>@localhost identified by '<password>';
01f6cc0
  mysql> grant all on dpm_db.* to <user>@<hostname> identified by '<password>';
01f6cc0
  mysql> quit
01f6cc0
01f6cc0
Let the DPM server know about the account information and make sure
01f6cc0
only the dpmmgr user can read this information:
01f6cc0
01f6cc0
  touch /etc/DPMCONFIG
01f6cc0
  chmod 600 /etc/DPMCONFIG
01f6cc0
  chown dpmmgr:dpmmgr /etc/DPMCONFIG
01f6cc0
  echo <user>/<password>@<dbserver>/<dbname> > /etc/DPMCONFIG
01f6cc0
01f6cc0
If the /<dbname> part is omitted the database "dpm_db" will be used.
01f6cc0
01f6cc0
If you have a firewall, open the DPM server port (5015).
01f6cc0
01f6cc0
Once the configuration is completed, start the DPM server:
01f6cc0
609b698
  service dpm start
01f6cc0
01f6cc0
If you want to start the service automatically at boot time:
01f6cc0
609b698
  chkconfig --add dpm