File: dpm-name-server-mysql.README.Debian

package info (click to toggle)
lcgdm 1.10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 17,532 kB
  • sloc: ansic: 226,887; sh: 13,562; perl: 11,575; python: 11,572; cpp: 5,716; sql: 1,824; makefile: 1,301; fortran: 113
file content (41 lines) | stat: -rw-r--r-- 1,515 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
How to set up an DPM nameserver with a mysql backend
====================================================

The DPM nameserver (DPNS) is run by the dpmmgr user. This user
requires a copy of the host certificate files:

  cp -p /etc/grid-security/hostcert.pem /etc/grid-security/dpmmgr/dpmcert.pem
  cp -p /etc/grid-security/hostkey.pem /etc/grid-security/dpmmgr/dpmkey.pem
  chown dpmmgr:dpmmgr /etc/grid-security/dpmmgr/dpm*

Create the DPNS database on the mysql server:

  mysql -u root < /usr/share/lcgdm/create_dpns_tables_mysql.sql

Select a username and password for this mysql database table. Replace
<user> and <password> in the commands below with your choice, also
replace <hostname> with the hostname of the DPNS server:

  mysql -u root
  mysql> use mysql
  mysql> grant all on cns_db.* to <user>@localhost identified by '<password>';
  mysql> grant all on cns_db.* to <user>@<hostname> identified by '<password>';
  mysql> quit

Let the DPNS server know about the account information and make sure
only the dpmmgr user can read this information:

  touch /etc/DPNSCONFIG
  chmod 600 /etc/DPNSCONFIG
  chown dpmmgr:dpmmgr /etc/DPNSCONFIG
  echo <user>/<password>@<dbserver>/<dbname> > /etc/DPNSCONFIG

If the /<dbname> part is omitted the database "cns_db" will be used.

If you have a firewall, open the DPNS server port (5010).

Once the configuration is completed, change RUN_DPNSDAEMON=no to
RUN_DPNSDAEMON=yes in /etc/default/dpnsdaemon, then start the DPNS
server:

  invoke-rc.d dpnsdaemon start