Before Starting
- HOSTNAME: emitestbed03.cnaf.infn.it
- OS: SL5 X86_64 Installed + Network
- Host certificate required
Service Installation
- Repositories ( see EMI basic configuration):
- egi-trustanchors.repo + emi1.repo + epel.repo
- $> yum clean all
- $> yum makecache
- INSTALLING STORM
- $> yum install emi-storm-backend-mp emi-storm-frontend-mp emi-storm-globus-gridftp-mp emi-storm-gridhttps-mp lcg-CA
Service Configuration
- PREPARING FOR YAIM CONFIGURATION:
- COPY YAIM FILES UNDER ROOT: $>cp -r /opt/glite/yaim/examples/siteinfo/ /root/siteinfo/
- TESTERS VO files: follow description at [[https://twiki.cern.ch/twiki/bin/view/EMI/TestBed] [VO TESTERS HOWTO section 3.5]], download the following files: groups.conf, users.conf + vo.d directory
- CONTENT of /root/siteinfo: site-info.def + groups.conf + users.conf + storm-wn-list.conf + vo.d (DIR)
[root@emitestbed03 siteinfo]# grep -v "#" site-info.def
BDII_HOST="emitb-bdii-site.cern.ch"
WN_LIST=/root/siteinfo/vo.d/storm-wn-list.conf
USERS_CONF=/root/siteinfo/vo.d/users.conf
GROUPS_CONF=/root/siteinfo/vo.d/groups.conf
ENABLE_MPI=no
MY_DOMAIN="cnaf.infn.it"
SITE_NAME="EMI-INFN-CNAF"
SITE_LAT=0.0
SITE_LONG=0.0
NTP_HOSTS_IP="131.154.1.103 193.206.144.10"
MYSQL_PASSWORD=emipwd
JAVA_LOCATION="/usr/java/latest"
VOS="testers.eu-emi.eu"
STORM_STORAGEAREA_LIST=${VOS}
STORM_BACKEND_HOST=emitestbed03.cnaf.infn.it
STORM_BDII_OVERWRITE="true"
STORM_DB_HOST=$STORM_BACKEND_HOST
STORM_USER="storm"
STORM_DB_PWD=emipwdstorm
STORM_DB_USER="storm"
STORM_DEFAULT_ROOT="/storage"
STORM_FE_BE_XMLRPC_HOST=$STORM_BACKEND_HOST
STORM_FRONTEND_HOST_LIST=$STORM_BACKEND_HOST
STORM_FRONTEND_PUBLIC_HOST=$STORM_BACKEND_HOST
STORM_GRIDFTP_POOL_LIST=${STORM_BACKEND_HOST}
SE_TYPE="disk"
SE_LIST=$STORM_FRONTEND_PUBLIC_HOST
STORM_CKSUM_SUPPORT=false
GRIDFTP_WITH_DSI="yes"
STORM_INFO_OVERWRITE=true
STORM_GRIDHTTPS_SERVER_USER_UID=91
STORM_GRIDHTTPS_SERVER_GROUP_UID=91
STORM_GRIDHTTPS_SERVER_HOST=$STORM_BACKEND_HOST
STORM_INFO_HTTP_SUPPORT=true
STORM_INFO_HTTPS_SUPPORT=true
STORM_GRIDHTTPS_ENABLED=true
STORM_GRIDHTTPS_PLUGIN_CLASSNAME=it.grid.storm.https.GhttpsHTTPSPluginInterface
STORM_GRIDHTTPS_SERVER_PORT=8088
[root@emitestbed03 siteinfo]# cat vo.d/storm-wn-list.conf
emitestbed11.cnaf.infn.it
Note :
- YAIM variables set into /root/siteinfo/services/XXXfiles will overrid variables in siteinfo.def file with same name
- After all yaim files are OK run the following commands:
- $> /opt/glite/yaim/bin/yaim -d 6 -c -s site-info.def -n se_storm_backend -n se_storm_frontend -n se_storm_gridftp -n se_storm_gridhttps
- If everything's OK yaim will end with (BTW yaim output is in /opt/glite/yaim/log/yaimlog file)
.....
INFO: Configuration Complete. [ OK ]
INFO: YAIM terminated succesfully.
N.B. SET CORRECTLY hostname!
[root@emitestbed03 siteinfo]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 emitestbed03.cnaf.infn.it emitestbed03 localhost.localdomain localhost
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
131.154.101.129 emitestbed03.cnaf.infn.it emitestbed03
You have new mail in /var/spool/mail/root
Service Testing
- Basic test from UI ---> notice: storm-srm-client-VERSION.sl5.x86_64.rpm must be installed
- PING test:
[dongiovanni@emitestbed16 ~]$ clientSRM ping -e httpg://emitestbed03.cnaf.infn.it:8444
============================================================
Sending Ping request to: httpg://emitestbed03.cnaf.infn.it:8444
Before execute:
execute Request with:Ping
started calling ns1__srmPing:
finished calling ns1__srmPing:
Afer execute:
Request Status Code 0
Poll Flag 0
============================================================
Request status:
statusCode="SRM_SUCCESS"(0)
explanation="SRM server successfully contacted"
============================================================
SRM Response:
versionInfo="v2.2"
otherInfo (size=3)
[0] key="backend_type"
[0] value="StoRM"
[1] key="backend_version"
[1] value="<FE:1.7.0-4><BE:1.7.0-7>"
[2] key="backend_os_distribution"
[2] value="Scientific Linux SL release 5.5 (Boron)"
============================================================
- MKDIR test:
[dongiovanni@emitestbed16 ~]$ srmmkdir -2 -debug srm://emitestbed03.cnaf.infn.it:8444/srm/managerv2?SFN=/testers.eu-emi.eu/testdirectory
Storage Resource Manager (SRM) Client version 2.1.5-23
Copyright (c) 2002-2009 Fermi National Accelerator Laboratory
SRM Configuration:
default_port=8443
debug=true
srmcphome=..
urlcopy=sbin/urlcopy.sh
gsiftpclient=globus-url-copy
help=false
h=false
gsissl=true
mapfile=conf/SRMServerV1.map
webservice_path=null
webservice_protocol=https
use_proxy=true
x509_user_proxy=/tmp/x509up_u500
x509_user_cert=null
x509_user_key=null
x509_user_trusted_certificates=/etc/grid-security/certificates
globus_tcp_port_range=null
gss_expected_name=null
protocols=gsiftp,dcap,http
pushmode=false
buffer_size=131072
tcp_buffer_size=0
streams_num=10
conf=/home/dongiovanni/.srmconfig/config.xml
save_conf=null
do_remove=false
copy=false
bringOnline=false
ping=false
reserveSpace=false
array_of_client_networks=null
retention_policy=null
space_desc=null
access_latency=null
access_pattern=null
connection_type=null
desired_size=null
guaranteed_size=null
lifetime=null
releaseSpace=false
space_token=null
force=false
getSpaceMetaData=false
space_tokens=null
copyjobfile=null
wsdl_url=null
use_urlcopy_script=false
getFileMetaData=false
ls=false
getSpaceTokens=false
rm=false
rmdir=false
mv=false
mkdir=true
getPermissions=false
checkPermissions=false
setPermissions=false
getRequestSummary=false
getRequestTokens=false
abortFiles=false
releaseFiles=false
request_desc=null
type=null
owner=null
group=null
other=null
request_tokens=null
request_token=null
file_lifetime=null
pin_lifetime=null
extendFileLifetime=false
advisoryDelete=false
getRequestStatus=false
request_id=0
getStorageElementInfo=false
retry_timeout=10000
retry_num=20
connect_to_wsdl=false
delegate=true
full_delegation=true
version=false
report=null
server_mode=null
storagetype=null
stage=false
l=false
recursive=false
offset=0
count=null
srm_protocol_version=2
request_lifetime=86400
priority=0
overwrite_mode=null
send_cksm=true
cksm_type=null
cksm_value=null
abortRequest=false
repeat=null
dryrun=false
action is mkdir
surl[0]=srm://emitestbed03.cnaf.infn.it:8444/srm/managerv2?SFN=/testers.eu-emi.eu/testdirectory
Wed Jun 15 18:03:15 CEST 2011: In SRMClient ExpectedName: host
Wed Jun 15 18:03:15 CEST 2011: SRMClient(https,srm/managerv2,true)
SRMClientV2 : user credentials are: /C=IT/O=INFN/OU=Personal Certificate/L=CNAF/CN=Danilo Nicola Dongiovanni
SRMClientV2 : connecting to srm at httpg://emitestbed03.cnaf.infn.it:8444/srm/managerv2
SRMClientV2 : srmMkdir , contacting service httpg://emitestbed03.cnaf.infn.it:8444/srm/managerv2
-
- Put File test:
[dongiovanni@emitestbed16 ~]$ lcg-cp -b --verbose -D srmv2 file:////home/dongiovanni/ISB.2mega srm://emitestbed03.cnaf.infn.it:8444/srm/managerv2?SFN=/testers.eu-emi.eu/testdirectory/tstorm-output-file-ISB.2mega
Using grid catalog type: UNKNOWN
Using grid catalog : (null)
VO name: testers.eu-emi.eu
Checksum type: None
Destination SE type: SRMv2
Destination SRM Request Token: 24e7d912-387e-40f5-be92-4307552036a7
Source URL: file:/home/dongiovanni/ISB.2mega
File size: 2097152
Source URL for copy: file:/home/dongiovanni/ISB.2mega
Destination URL: gsiftp://emitestbed03.cnaf.infn.it:2811//storage/testers.eu-emi.eu/testdirectory/tstorm-output-file-ISB.2mega
# streams: 1
GSIFTP: default set up URL mode
GSIFTP: dest: set up FTP mode. DCAU disabled. Streams = 1, Tcp BS = 0
0 bytes 0.00 KB/sec avg 0.00 KB/sec inst
1048576 bytes 5494.27 KB/sec avg 5494.27 KB/sec inst
-
- LS test:
[dongiovanni@emitestbed16 ~]$ lcg-ls -l -b -D srmv2 srm://emitestbed03.cnaf.infn.it:8444/srm/managerv2?SFN=/testers.eu-emi.eu/testdirectory/tstorm-output-file-ISB.2mega
-rw-rw-rw- 1 2 2 2097152 UNKNOWN /testers.eu-emi.eu/testdirectory/tstorm-output-file-ISB.2mega
* Checksum: 01e00001 (ADLER32)
--
DaniloDongiovanni - 15-Jun-2011