01f6cc0
How to set up an LFC server with a mysql backend
01f6cc0
================================================
01f6cc0
01f6cc0
The LFC server is run by the lfcmgr user. This user requires a copy of
01f6cc0
the host certificate files:
01f6cc0
01f6cc0
  cp -p /etc/grid-security/hostcert.pem /etc/grid-security/lfcmgr/lfccert.pem
01f6cc0
  cp -p /etc/grid-security/hostkey.pem /etc/grid-security/lfcmgr/lfckey.pem
01f6cc0
  chown lfcmgr:lfcmgr /etc/grid-security/lfcmgr/lfc*
01f6cc0
01f6cc0
Create the LFC database on the mysql server:
01f6cc0
01f6cc0
  mysql -u root < /usr/share/lfc/create_lfc_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 LFC server:
01f6cc0
01f6cc0
  mysql -u root
01f6cc0
  mysql> use mysql
01f6cc0
  mysql> grant all on cns_db.* to <user>@localhost identified by '<password>';
01f6cc0
  mysql> grant all on cns_db.* to <user>@<hostname> identified by '<password>';
01f6cc0
  mysql> quit
01f6cc0
01f6cc0
Let the LFC server know about the account information and make sure
01f6cc0
only the lfcmgr user can read this information:
01f6cc0
01f6cc0
  touch /etc/NSCONFIG
01f6cc0
  chmod 600 /etc/NSCONFIG
01f6cc0
  chown lfcmgr:lfcmgr /etc/NSCONFIG
01f6cc0
  echo <user>/<password>@<dbserver>/<dbname> > /etc/NSCONFIG
01f6cc0
01f6cc0
If the /<dbname> part is omitted the database "cns_db" will be used.
01f6cc0
01f6cc0
If you have a firewall, open the LFC server port (5010).
01f6cc0
01f6cc0
Once the configuration is completed, start the LFC server:
01f6cc0
01f6cc0
  service lfc-mysql start
01f6cc0
01f6cc0
If you want to start the service automatically at boot time:
01f6cc0
01f6cc0
  chkconfig --add lfc-mysql