Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
public:grid_srm_software_installation [2012-11-29 14:14] – created 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 srm installation ====== | + | **//:!: 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:// |
- | The following documentation was developed for the installation of a | + | //This page describes the procedure to set up the tools for working directly on the srm storage. You may want to consider using the staging and download services provided by Astron if you just want to retrieve data from the archive: [[http:// |
- | grid certificate | + | |
- | .bashrc as a configuration script) Thanks | + | |
- | ===== 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 |
- | sudo apt-get install | + | The file transfer tools from the Globus package are needed, most importantly |
+ | Ubuntu | ||
+ | < | ||
- | ==== 1.2 voms ==== | + | sudo apt-get install globus-gass-copy-progs |
- | sudo apt-get install voms-clients | + | </ |
- | ==== 1.3 srmtools ==== | + | CentOS |
- | * download srmtools | + | < |
- | e.g. http:// | + | sudo yum install |
- | * extract and install | + | |
- | this will create a subdirectory srm under /opt/ | + | |
- | * add the path to the srmtools to .bashrc: | + | |
- | export SRM_PATH=/ | + | |
- | export PATH=$SRM_PATH/ | + | |
- | ===== 2 Installation of certificates ===== | + | </ |
+ | ==== voms client software ==== | ||
- | ====2.1 Personal certificate ==== | + | The VOMS tools for logging in and user account management: |
+ | Ubuntu | ||
- | * Request a user certificate using jGridstart | + | <code> |
- | http:// | + | sudo apt-get install voms-clients |
- | and follow the instructions | + | |
- | * Install the certificate as described in the certificate e-mail | + | |
- | - Save this entire mail as " | + | |
- | that the " | + | |
- | As these *.pem files are strictly personal their permissions should be set properly | + | |
- | by the following command: | + | |
- | | + | |
- | - Load the certificate into your web browser on your own | + | |
- | system. See [http:// | + | |
- | Installation can also be done using the jGridstart tool (see above). | + | |
- | | + | |
- | your service provider or help desk for more information, | + | |
- | [mailto: | + | |
- | * for access to DEISA HPC Grid resources | + | |
- | https:// | + | |
- | * for Grid communities hosted in the Netherlands | + | |
- | https:// | + | |
- | * for all Grid communities registred in Europe by discipline | + | |
- | ==== 2.2 Additional certificates from the site of the European Grid Infrastructure (EGI). ==== | + | </ |
- | Execute the following commands to install the certificates from the | + | CentOS |
- | site of the European Grid Infrastructure (EGI) (root permissions are | + | |
- | required). | + | |
- | | + | <code> |
- | > | + | sudo yum install |
- | > sudo apt-get | + | |
+ | </ | ||
- | ===== 3 Additional configuration ===== | + | ==== Certificates for the Grid Certificate Authorities (CA) ==== |
- | ==== 3.1 Add the vomses string for the LOFAR Virtual Organization | + | Execute |
- | You can find this string on the following website | + | Ubuntu |
- | https:// | + | |
- | in the text block under " | + | |
- | The string should be copied to the following file: $HOME/ | + | |
+ | Note 2021-05-19: newer versions of Ubuntu require to first add the appropriate GPG key for the EGI repository: | ||
- | ==== 3.2 List of certificates (voms.grid.sara.nl.lsc) ==== | + | < |
+ | wget -q -O - https:// | ||
- | Put the following string (without the quotes): | + | </ |
+ | < | ||
- | | + | 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 to communicate with the storage management system. | ||
+ | |||
+ | - Download srmtools | ||
+ | * {{: | ||
+ | * {{: | ||
+ | - Extract and install the srmtools, e.g. in ''/ | ||
+ | - Set the relevant environment path variables, e.g. in .bashrc (modify version number if applicable): | ||
+ | |||
+ | NB The srm client tools depend on JAVA. There is a known issue with openjava version 7. If you have this version of JAVA installed, or otherwise get JAVA exceptions when running an srm command, please install another JAVA VM. Java-7-oracle is known to work. It is possible to have multiple JAVA VM installations and it is thus not required to replace an existing installation: | ||
+ | < | ||
+ | |||
+ | export JAVA_HOME=/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | The JAVA VM used by default in Ubuntu and CentOS can be selected using the following command: | ||
+ | |||
+ | < | ||
+ | sudo update-alternatives --config java | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Certificate Revocation List retrieval (optional) ==== | ||
+ | |||
+ | The fetch-crl tool retrieves Certificate Revocation Lists. | ||
+ | |||
+ | Ubuntu | ||
+ | |||
+ | < | ||
+ | sudo apt-get install fetch-crl | ||
+ | |||
+ | </ | ||
+ | |||
+ | CentOS | ||
+ | |||
+ | < | ||
+ | sudo yum install fetch-crl | ||
+ | |||
+ | </ | ||
+ | |||
+ | 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:// | ||
+ | |||
+ | </ | ||
+ | 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. | ||
- | ==== 3.3 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: | ||