Difference: NotesAboutInstallationAndConfigurationOfVOMS-MySQL (2 vs. 3)

Revision 32012-03-02 - AlessandroPaolini

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Notes about Installation and Configuration of VOMS MySQL (WORK IN PROGRESS)

  • These notes are provided by site admins on a best effort base as a contribution to the IGI communities and MUST not be considered as a subsitute of the Official IGI documentation.
  • This document is addressed to site administrators responsible for middleware installation and configuration.
  • The goal of this page is to provide some hints and examples on how to install and configure a VOMS server based on EMI middleware.
Added:
>
>
 

References

  1. About IGI - Italian Grid infrastructure
  2. VOMS System administrator guide
Line: 13 to 15
 
  1. Troubleshooting Guide for Operational Errors on EGI Sites
  2. Grid Administration FAQs page
Added:
>
>

Service installation

<--/twistyPlugin twikiMakeVisibleInline-->

O.S. and Repos

  • Starts from a fresh installation of Scientific Linux 5.x (x86_64).
# cat /etc/redhat-release 
Scientific Linux SL release 5.7 (Boron) 

* Install the additional repositories: EPEL, Certification Authority, UMD

# yum install yum-priorities yum-protectbase
# cd /etc/yum.repos.d/
# rpm -ivh http://mirror.switch.ch/ftp/mirror/epel//5/x86_64/epel-release-5-4.noarch.rpm
# wget http://repo-pd.italiangrid.it/mrepo/repos/egi-trustanchors.repo
# rpm -ivh http://repo-pd.italiangrid.it/mrepo/EMI/1/sl5/x86_64/updates/emi-release-1.0.1-1.sl5.noarch.rpm
# wget http://repo-pd.italiangrid.it/mrepo/repos/igi/sl5/x86_64/igi-emi.repo

  • Be sure that SELINUX is disabled (or permissive). Details on how to disable SELINUX are here:

# getenforce 
Disabled

  • Check the repos list (sl-*.repo are the repos of the O.S. and they should be present by default).

# ls /etc/yum.repos.d/
adobe.repo       egi-trustanchors.repo  emi1-updates.repo  lemon.repo       sl-debuginfo.repo  sl-security.repo
atrpms.repo      emi1-base.repo         epel.repo          puppetlabs.repo  sl-fastbugs.repo   sl-srpms.repo
cnaf-local.repo  emi1-third-party.repo  epel-testing.repo  sl-contrib.repo  sl.repo            sl-testing.repo
IMPORTANT: remove the dag repository if present
<--/twistyPlugin-->

<--/twistyPlugin twikiMakeVisibleInline-->

yum install

# yum clean all
Loaded plugins: downloadonly, kernel-module, priorities, protect-packages, protectbase, security, verify, versionlock
Cleaning up Everything

# yum install ca-policy-egi-core
# yum install emi-voms-mysql
# yum install xml-commons-apis

see here for details

<--/twistyPlugin-->

Service configuration

You have to copy the configuration files in another path, for example root, and set them properly (see later):

# cp -r /opt/glite/yaim/examples/siteinfo/* .
and rename glite-voms_mysql as glite-voms

<--/twistyPlugin twikiMakeVisibleInline-->

mysql configuration

  • if not running, start mysqld
# service mysqld start
Initializing MySQL database:  Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h vomsmania.cnaf.infn.it password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
                                                           [  OK  ]
Starting MySQL:                                            [  OK  ]

  • define the password for root user:
# /usr/bin/mysqladmin -u root password qualcosa;
Make sure that the MySQL administrator password that you specify in the YAIM VOMS configuration files matches the password that is set for the root MySQL account

<--/twistyPlugin-->

<--/twistyPlugin twikiMakeVisibleInline-->

site-info.def

<--/twistyPlugin-->

<--/twistyPlugin twikiMakeVisibleInline-->

services/glite-voms

<--/twistyPlugin-->
  -- AlessandroPaolini - 2012-02-29 \ No newline at end of file
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback