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 [2015-11-17 13:54] – add CentOS 7 instructions + fix a few minor issues amesfoort | 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 ====== | ||
- | //This page describes the procedure to set up the tools for working directly on the srm storage. You may want to consider | + | **//:!: Several sections in this page are deprecated or obsolete. In particular, users are advised |
- | //You might also be interested in the [[public:srmclientinstallation|portable package of GRID storage access tools]], which offers the same functionality but does not require root access.// | + | //This page describes the procedure to set up the tools for working directly on the srm storage. |
- | + | ||
- | 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 .bashrc as a configuration script). We have not tested the installation using csh derivatives but it is to be expected that not all scripts will work. Thanks to Martin van den Akker for providing notes of his installation procedure. | + | |
Sites that provide packages and further information on installation of grid middleware on linux based systems: | Sites that provide packages and further information on installation of grid middleware on linux based systems: | ||
* [[http:// | * [[http:// | ||
- | * [[http:// | ||
- | * [[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. | + | 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 [[: |
- | You might also first need to obtain a [[GRID certificate]]. | + | |
===== Installation of software packages ===== | ===== Installation of software packages ===== | ||
Line 25: | Line 20: | ||
Ubuntu | Ubuntu | ||
- | | + | < |
+ | |||
+ | sudo apt-get install globus-gass-copy-progs | ||
+ | |||
+ | </ | ||
CentOS | CentOS | ||
- | | + | |
+ | < | ||
+ | sudo yum install globus-gass-copy-progs | ||
+ | |||
+ | </ | ||
==== voms client software ==== | ==== voms client software ==== | ||
Line 35: | Line 38: | ||
Ubuntu | Ubuntu | ||
- | | + | |
+ | < | ||
+ | sudo apt-get install voms-clients | ||
+ | |||
+ | </ | ||
CentOS | CentOS | ||
- | | + | |
+ | < | ||
+ | sudo yum install voms-clients-cpp | ||
+ | |||
+ | </ | ||
==== Certificates for the Grid Certificate Authorities (CA) ==== | ==== Certificates for the Grid Certificate Authorities (CA) ==== | ||
- | Execute the following commands to install the certificates from the | + | Execute the following commands to install the certificates from the site of the European Grid Infrastructure (EGI) (root permissions are required). |
- | site of the European Grid Infrastructure (EGI) (root permissions are | + | |
- | required). | + | |
Ubuntu | Ubuntu | ||
- | | + | |
- | sudo apt-get update | + | Note 2021-05-19: newer versions of Ubuntu require to first add the appropriate GPG key for the EGI repository: |
- | sudo apt-get install ca-policy-egi-core | + | |
+ | < | ||
+ | wget -q -O - https:// | ||
+ | |||
+ | </ | ||
+ | < | ||
+ | |||
+ | sudo add-apt-repository 'deb http:// | ||
+ | sudo apt-get update | ||
+ | sudo apt-get install ca-policy-egi-core | ||
+ | |||
+ | </ | ||
CentOS | CentOS | ||
- | | + | |
- | sudo mv EGI-trustanchors.repo / | + | < |
- | sudo yum install ca-policy-egi-core | + | wget http:// |
+ | sudo mv EGI-trustanchors.repo / | ||
+ | sudo yum install ca-policy-egi-core | ||
+ | |||
+ | </ | ||
==== srmtools ==== | ==== srmtools ==== | ||
Line 61: | Line 85: | ||
- Download srmtools | - Download srmtools | ||
- | | + | |
- | * {{public: | + | * {{:public: |
- | - Extract and install the srmtools, e.g. in ''/ | + | - Extract and install the srmtools, e.g. in ''/ |
- | - Set the relevant environment path variables, e.g. in .bashrc (modify version number if applicable): | + | - 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: | 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: | 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) ==== | ==== Certificate Revocation List retrieval (optional) ==== | ||
Line 79: | Line 109: | ||
Ubuntu | Ubuntu | ||
- | | + | |
+ | < | ||
+ | sudo apt-get install fetch-crl | ||
+ | |||
+ | </ | ||
CentOS | 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. | NB This is not required unless you intend to allow others to access your system by providing their grid certificate. | ||
Line 92: | Line 130: | ||
Add the following string for the LOFAR Virtual Organization (VO) to the vomses file (any filename is fine). | 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:// | + | </ |
+ | |||
+ | You can find this string also on the following website | ||
==== List of certificates for voms.grid.sara.nl.lsc ==== | ==== List of certificates for voms.grid.sara.nl.lsc ==== | ||
Put the following strings: | Put the following strings: | ||
+ | < | ||
+ | |||
+ | / | ||
+ | / | ||
- | | + | </code> |
- | / | + | |
in the file (root permissions required): | in the file (root permissions required): | ||
- | | + | < |
+ | / | ||
- | NB If this step is skipped or nor configured correctly '' | + | </ |
+ | |||
+ | NB If this step is skipped or nor configured correctly '' | ||
==== Environment (optional) ==== | ==== Environment (optional) ==== | ||
- | You may want to provide the following settings in '' | + | You may want to provide the following settings in '' |
- | | + | < |
- | export X509_USER_KEY=$HOME/ | + | export X509_USER_CERT=$HOME/ |
- | export X509_CERT_DIR=/ | + | export X509_USER_KEY=$HOME/ |
- | export X509_VOMS_DIR=/ | + | export X509_CERT_DIR=/ |
- | export X509_USER_PROXY=$HOME/ | + | export X509_VOMS_DIR=/ |
- | export VOMS_USERCONF=$HOME/ | + | export X509_USER_PROXY=$HOME/ |
- | | + | export VOMS_USERCONF=$HOME/ |
+ | |||
+ | </ | ||
+ | |||
+ | **Note: | ||
==== CRL cron job (optional) ==== | ==== CRL cron job (optional) ==== | ||
Line 128: | Line 179: | ||
This creates a proxy (valid for 48 hours, increase if needed) in your home directory: | This creates a proxy (valid for 48 hours, increase if needed) in your home directory: | ||
+ | |||
< | < | ||
voms-proxy-init -valid 48:00 -voms lofar:/ | voms-proxy-init -valid 48:00 -voms lofar:/ | ||
+ | |||
</ | </ | ||
You can test that everything works by copying this file from surfsara to your working directory: | You can test that everything works by copying this file from surfsara to your working directory: | ||
+ | |||
< | < | ||
srmcp -server_mode=passive srm:// | 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. | 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. | ||
- | If you have the [[public: | + | If you have the [[:public: |
< | < | ||
+ | |||
srmcp -use_urlcopy_script=true -urlcopy=./ | srmcp -use_urlcopy_script=true -urlcopy=./ | ||
+ | |||
</ | </ | ||
- | **Note:** You may have to force the use of TLS, (export GLOBUS_GSSAPI_FORCE_TLS=1 or in / | + | |
+ | **Note: | ||
+ |