Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
public:grid_srm_software_installation [2012-11-29 15:45] – Adriaan Renting | public:grid_srm_software_installation [2024-05-10 12:14] (current) – Hanno Holties | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
====== GRID storage access tools installation ====== | ====== GRID storage access tools installation ====== | ||
- | The following documentation was developed for the installation of a GRID tools and certificates on an Ubuntu 12.04 system using a bash shell (using | + | **//:!: Several sections in this page are deprecated or obsolete. In particular, users are advised to avoid SRM clients and globus client software and instead look into using the [[https:// |
- | There is also an instruction | + | //This page describes the procedure to set up the tools for working directly |
- | There is also an instruction for installing on [[http://glite.web.cern.ch/glite/packages/R3.2/ | + | |
- | ===== 1 Installation of software packages ===== | + | Sites that provide packages and further information on installation of grid middleware on linux based systems: |
+ | |||
+ | * [[http:// | ||
+ | |||
+ | NB We have tested the installation as described below only on Ubuntu 12 and CentOS 7. Please let us know if you have feedback or if you can contribute instructions on installations in different environments. You might also first need to obtain a [[: | ||
+ | |||
+ | ===== Installation of software packages ===== | ||
Note: all installations require root permissions. | Note: all installations require root permissions. | ||
- | ==== 1.1 globus ==== | + | ==== globus |
- | You will need to install the file transfer tools from the Globus package, most importantly globus-url-copy: | + | The file transfer tools from the Globus package |
- | sudo apt-get install globus-gass-copy-progs globus-common-progs globus-core | + | Ubuntu |
+ | < | ||
+ | sudo apt-get install globus-gass-copy-progs | ||
- | ==== 1.2 voms ==== | + | </ |
- | You will need to install the VOMS tools for logging in and user account management: | + | CentOS |
- | | + | < |
+ | sudo yum install | ||
- | ==== 1.3 srmtools ==== | + | </ |
- | You will need to install the SRM tools to be able to communicate with the storage management system. | + | ==== voms client software ==== |
+ | |||
+ | The VOMS tools for logging in and user account management: | ||
+ | |||
+ | Ubuntu | ||
+ | |||
+ | < | ||
+ | sudo apt-get install voms-clients | ||
+ | |||
+ | </ | ||
+ | |||
+ | CentOS | ||
+ | |||
+ | < | ||
+ | sudo yum install voms-clients-cpp | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Certificates for the Grid Certificate Authorities (CA) ==== | ||
+ | |||
+ | Execute the following commands | ||
+ | |||
+ | Ubuntu | ||
+ | |||
+ | Note 2021-05-19: newer versions of Ubuntu require to first add the appropriate GPG key for the EGI repository: | ||
+ | |||
+ | < | ||
+ | wget -q -O - https:// | ||
+ | |||
+ | </ | ||
+ | < | ||
+ | |||
+ | sudo add-apt-repository 'deb http:// | ||
+ | sudo apt-get update | ||
+ | sudo apt-get install ca-policy-egi-core | ||
+ | |||
+ | </ | ||
+ | |||
+ | CentOS | ||
+ | |||
+ | < | ||
+ | wget http:// | ||
+ | sudo mv EGI-trustanchors.repo / | ||
+ | sudo yum install ca-policy-egi-core | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== srmtools ==== | ||
+ | |||
+ | The SRM tools are needed | ||
- Download srmtools | - Download srmtools | ||
- | | + | |
- | * http://www.astro.ru.nl/ | + | * {{:public: |
- | - Extract and install the srmtools in ''/ | + | - Extract and install the srmtools, e.g. in ''/ |
- | - Add the path to the srmtools to .bashrc:\\ '' | + | - Set the relevant environment |
- | ===== 2 Installation | + | NB The srm client tools depend on JAVA. There is a known issue with openjava version 7. If you have this version |
+ | < | ||
+ | export JAVA_HOME=/ | ||
- | ====2.1 Personal certificate ==== | + | </ |
- | * Request a user certificate using jGridstart\\ http:// | + | The JAVA VM used by default |
- | * Install the certificate as described | + | |
- | - Save this entire mail as '' | + | |
- | - Load the certificate into your web browser on your own system. See http:// | + | |
- | - [optional] Apply for authorization to use resources or services. Please consult your service provider or help desk for more information, | + | |
- | * https:// | + | |
- | * deisa-support@sara.nl for access to DEISA HPC Grid resources | + | |
- | * https:// | + | |
- | * https:// | + | |
- | ==== 2.2 Additional certificates from the site of the European Grid Infrastructure (EGI). ==== | + | < |
+ | sudo update-alternatives --config java | ||
- | Execute the following commands to install the certificates from the | + | </ |
- | site of the European Grid Infrastructure (EGI) (root permissions are | + | |
- | required). | + | |
- | sudo add-repository 'deb http:// | + | ==== Certificate Revocation List retrieval (optional) ==== |
- | sudo apt-get update | + | |
- | sudo apt-get install ca-policy-egi-core | + | |
+ | The fetch-crl tool retrieves Certificate Revocation Lists. | ||
- | ===== 3 Additional configuration ===== | + | Ubuntu |
- | ==== 3.1 Add VOMSES string ==== | + | < |
+ | sudo apt-get install fetch-crl | ||
- | Add the vomses string for the LOFAR Virtual Organization (VO) to the vomses file. You can find this string on the following website https:// | + | </code> |
+ | CentOS | ||
- | ==== 3.2 List of certificates (voms.grid.sara.nl.lsc) ==== | + | < |
+ | sudo yum install fetch-crl | ||
- | Put the following string (without the quotes): | + | </ |
- | | + | NB This is not required unless you intend to allow others to access your system by providing their grid certificate. |
+ | |||
+ | ===== Additional configuration ===== | ||
+ | |||
+ | ==== VOMSES file for LOFAR ==== | ||
+ | |||
+ | Add the following string for the LOFAR Virtual Organization (VO) to the vomses file (any filename is fine). | ||
+ | |||
+ | < | ||
+ | " | ||
+ | |||
+ | </ | ||
+ | |||
+ | You can find this string also on the following website [[https:// | ||
+ | |||
+ | ==== List of certificates for voms.grid.sara.nl.lsc ==== | ||
+ | |||
+ | Put the following strings: | ||
+ | < | ||
+ | |||
+ | / | ||
+ | / | ||
+ | |||
+ | </ | ||
in the file (root permissions required): | in the file (root permissions required): | ||
- | | + | < |
+ | / | ||
+ | |||
+ | </ | ||
+ | |||
+ | NB If this step is skipped or nor configured correctly '' | ||
+ | |||
+ | ==== Environment (optional) ==== | ||
+ | |||
+ | You may want to provide the following settings in '' | ||
+ | |||
+ | < | ||
+ | export X509_USER_CERT=$HOME/ | ||
+ | export X509_USER_KEY=$HOME/ | ||
+ | export X509_CERT_DIR=/ | ||
+ | export X509_VOMS_DIR=/ | ||
+ | export X509_USER_PROXY=$HOME/ | ||
+ | export VOMS_USERCONF=$HOME/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | **Note: | ||
+ | |||
+ | ==== CRL cron job (optional) ==== | ||
+ | |||
+ | You may want to create a cron job to automatically retrieve certificate revocation lists (CRLs) by invoking the fetch-crl tool at regular intervals (at least once a year). | ||
+ | |||
+ | ===== Usage ===== | ||
+ | |||
+ | This creates a proxy (valid for 48 hours, increase if needed) in your home directory: | ||
+ | |||
+ | < | ||
+ | voms-proxy-init -valid 48:00 -voms lofar:/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | You can test that everything works by copying this file from surfsara to your working directory: | ||
+ | |||
+ | < | ||
+ | srmcp -server_mode=passive srm:// | ||
+ | </ | ||
- | ==== 3.3 Environment ==== | + | If your firewall allows incoming connections to non-standard ports, you can try this command without the server_mode option which will enable utilization of multiple streams to increase performance. |
- | Add the following settings | + | If you have the [[: |
+ | < | ||
- | export X509_VOMS_CERT=$HOME/.globus/usercert.pem | + | srmcp -use_urlcopy_script=true -urlcopy=./lta-url-copy.sh -server_mode=passive srm://srm.grid.sara.nl/pnfs/grid.sara.nl/data/lofar/ |
- | export X509_VOMS_KEY=$HOME/.globus/userkey.pem | + | |
- | export X509_VOMS_DIR=/etc/grid-security/vomsdir | + | |
- | export VOMS_USERCONF=$HOME/.glite | + | |
+ | </ | ||
+ | **Note: | ||