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 LFC server with a postgres backend
===================================================
The LFC server is run by the lfcmgr user. This user requires a copy of
the host certificate files:
cp -p /etc/grid-security/hostcert.pem /etc/grid-security/lfcmgr/lfccert.pem
cp -p /etc/grid-security/hostkey.pem /etc/grid-security/lfcmgr/lfckey.pem
chown lfcmgr:lfcmgr /etc/grid-security/lfcmgr/lfc*
Create a postgres database user for the LFC server:
createuser -P <user>
The command above will prompt you for a password for the new user.
Create the LFC database:
createdb -O <user> <dbname>
Create the LFC database tables:
psql -W -U <user> <dbname> -f /usr/share/lcgdm/create_lfc_tables_postgres.sql
Let the LFC server know about the account information and make sure
only the lfcmgr user can read this information:
touch /etc/NSCONFIG
chmod 600 /etc/NSCONFIG
chown lfcmgr:lfcmgr /etc/NSCONFIG
echo <user>/<password>@<dbserver>/<dbname> > /etc/NSCONFIG
If the /<dbname> part is omitted the database "cns_db" will be used.
If you have a firewall, open the LFC server port (5010).
Once the configuration is completed, change RUN_LFCDAEMON=no to
RUN_LFCDAEMON=yes in /etc/default/lfcdaemon, then start the LFC
server:
invoke-rc.d lfcdaemon start
|