Difference: TutorialStoRM (6 vs. 7)

Revision 72012-10-03 - RonchieriElisabetta

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

Tutorial StoRM

Line: 8 to 8
 
]# service ntpd status
ntpd (pid  1713) is running...
Added:
>
>
]# chkconfig --list | grep ntpd ntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
 
Changed:
<
<
  • Verify the hostname output
>
>
  • Verify the hostname output (Fully Qualified Domain Name (FQAN))
 
]# hostname -f
tutor-storm.cnaf.infn.it
Added:
>
>
]# cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 131.154.100.145 tutor-storm.cnaf.infn.it tutor-storm
 
Changed:
<
<
  • Verify host file certificates
>
>
    • In the case the hosts file does not contain the last line, please modify the file and restart network service (Foundamental check for having a gridftp service running properly)
  • Verify host file certificates on the StoRM node
 
]# ll /etc/grid-security/
total 60
Line: 24 to 32
 -rw-r--r-- 1 root root 1452 Oct 2 17:42 hostcert.pem -r-------- 1 root root 891 Oct 2 17:42 hostkey.pem
Changed:
<
<
>
>
    • hostcert.pem must have permission 0644. If no, please change it
      ]# chmod 0644 hostcert.pem
       
    • hostkey.pem must have permission 0400. If no, please change it
      ]# chmod 0400 hostkey.pem
       
  • Verify acl support. StoRM uses the ACLs on files and directory to implement the security model by using the native access to the file system.
 
  • Verify acl CLIs
    ]# rpm -qa | grep acl
Line: 71 to 87
  Complete!
Changed:
<
<
  • Verify extended ACL support
>
>
    • Verify extended ACL support by using the root user
 
Deleted:
<
<
]# mkdir testacl ]# cd testacl
 ]# echo test > testfile ]# setfacl -m u:root:rw testfile ]# getfacl testfile
Line: 83 to 96
 # owner: root # group: root user::rw-
Changed:
<
<
user:root:rw-
>
>
user:root:rw
 group::r-- mask::rw- other::r--
Added:
>
>
]# rm -rf testfile
 
Changed:
<
<
>
>
  • Verify attr support. StoRM uses the extended attributes on files to store some metadata related to the file (e.g., checksum)
 
  • Verify attr CLIs
    ]# rpm -qa | grep attr
Line: 135 to 149
  Complete!
Changed:
<
<
  • Verify extended attribute support
>
>
    • Verify extended attribute support by using
 
Added:
>
>
]# touch testfile
 ]# setfattr -n joda.test -v test testfile
Added:
>
>
]# getfattr -d testfile # file: testfile user.test="test" ]# rm testfile
 

  • Satisfy common repository settings
Line: 231 to 248
 
  • Install the main StoRM node metapackages:

Changed:
<
<
]# yum install emi-storm-backend-mp emi-storm-frontend-mp emi-storm-globus-gridftp-mp emi-storm-globus-gridhttps-mp
>
>
]# yum install emi-storm-backend-mp emi-storm-frontend-mp emi-storm-globus-gridftp-mp emi-storm-gridhttps-mp
 ... EMI-2-base/gpgkey | 1.7 kB 00:00 Importing GPG key 0xDF9E12EF "Doina Cristina Aiftimiei (EMI Release Manager) <aiftim@pd.infn.it>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-emi
Line: 357 to 373
 

  • Modify the storm.def file
Changed:
<
<
    • Set top BDII
>
>
    • Modify top BDII hostname
 
Changed:
<
<
BDII_HOST="emitb-bdii-site.cern.ch"
>
>
BDII_HOST=""
 
    • Modify MY_DOMAIN
      MY_DOMAIN="cnaf.infn.it"
        
Deleted:
<
<
    • Modify SITE_NAME
      SITE_NAME="storm-1.10-all-in-one"
        
 

Configure the StoRM services

Changed:
<
<
  • Set DB information
>
>
  • Check DB information
 
MYSQL_PASSWORD="storm"
STORM_DB_PWD="bluemoon"
STORM_DB_USER="storm"
 
Changed:
<
<
  • Set information useful for the Backend, Gridhttps and Frontend services
>
>
  • Modify information useful for the Backend and Gridhttps services
    • Change STORM BACKEND HOST value
 
STORM_BACKEND_HOST=tutor-storm.cnaf.infn.it
 
Changed:
<
<
  • Set information useful for the Backend and Frontend services
>
>
  • Modify information useful for the Backend and Frontend services
 
STORM_DB_HOST=$STORM_BACKEND_HOST
STORM_USER="storm"
 
Changed:
<
<
  • Set Frontend information
>
>
  • Check Frontend information
 
STORM_FE_BE_XMLRPC_HOST=$STORM_BACKEND_HOST
 
Changed:
<
<
  • Set BDII information
>
>
  • Check BDII information
 
Added:
>
>
STORM_INFO_OVERWRITE=true SITE_NAME="storm-1.10-all-in-one"
 STORM_BDII_OVERWRITE="true" STORM_ENDPOINT_QUALITY_LEVEL=2 STORM_ENDPOINT_SERVING_STATE=4 SE_TYPE="disk" SE_LIST=$STORM_FRONTEND_PUBLIC_HOST
Changed:
<
<
  • Set Backend Information
>
>
  • Check Backend Information
    • Set Frontend service host list
 
Deleted:
<
<
STORM_DEFAULT_ROOT="/storage"
 STORM_FRONTEND_HOST_LIST=$STORM_BACKEND_HOST
Added:
>
>
* Set Frontend service public host

 STORM_FRONTEND_PUBLIC_HOST=$STORM_BACKEND_HOST
Changed:
<
<
STORM_INFO_OVERWRITE=true
>
>
* Set Gridftp service host list

 STORM_GRIDFTP_POOL_LIST=${STORM_BACKEND_HOST}
Changed:
<
<
STORM_GRIDHTTPS_SERVER_HOST=$STORM_BACKEND_HOST
>
>
* Set Gridhttps service host list
STORM_GRIDHTTPS_PLUGIN_CLASSNAME=it.grid.storm.https.GhttpsHTTPSPluginInterface
STORM_GRIDHTTPS_SERVER_PORT=8088
STORM_GRIDFTP_POOL_LIST=${STORM_BACKEND_HOST}
STORM_GRIDHTTPS_ENABLED=true 
 STORM_INFO_HTTP_SUPPORT=true STORM_INFO_HTTPS_SUPPORT=true
Changed:
<
<
STORM_GRIDHTTPS_ENABLED=true
>
>
STORM_GRIDHTTPS_SERVER_USER_UID=91 STORM_GRIDHTTPS_SERVER_GROUP_UID=91
 
Changed:
<
<
    • Set Storage Area information
>
>
    • Set default directory for Storage Area
      STORM_DEFAULT_ROOT="/storage"
       
      * Specify the list of the supported Storage Areas (Please remember that the values of the Storage Areas can be different to the VO name)
      STORM_STORAGEAREA_LIST="$VOS"
       
      * Set for each Storage Area at least the total size expressed in GB (Must be an integer value)
 
Deleted:
<
<
STORM_STORAGEAREA_LIST="$VOS testers.eu-emi.eu_no_voms testers.eu-emi.eu_https"
 STORM_DTEAM_ONLINE_SIZE=4
Deleted:
<
<
 STORM_TESTERSEUEMIEU_ONLINE_SIZE=4
Deleted:
<
<
STORM_TESTERSEUEMIEU_NO_VOMS_ONLINE_SIZE=4 STORM_TESTERSEUEMIEU_NO_VOMS_VONAME=testers.eu-emi.eu

STORM_TESTERSEUEMIEU_HTTPS_ONLINE_SIZE=4 STORM_TESTERSEUEMIEU_HTTPS_ROOT=/storage/testers.eu-emi.eu_https/https STORM_TESTERSEUEMIEU_HTTPS_VONAME=testers.eu-emi.eu

 STORM_IGIITALIANGRIDIT_ONLINE_SIZE=4
Line: 440 to 460
 
  • Set Gridhttps service
        
Deleted:
<
<
STORM_GRIDHTTPS_PLUGIN_CLASSNAME=it.grid.storm.https.GhttpsHTTPSPluginInterface
 STORM_GRIDHTTPS_SERVER_PORT=8088
Changed:
<
<
  • Set Gridftp service
>
>
  • Set Gridftp service to support
 
    
GRIDFTP_WITH_DSI="yes"
GRIDFTP_CONNECTIONS_MAX="2000"
 
Changed:
<
<

Verify the StoRM deployment

>
>
  • Run yaim
        
    /opt/glite/yaim/bin/yaim -c -d 6 -s /etc/storm/siteinfo/storm.def -n se_storm_backend -n se_storm_frontend -n se_storm_gridftp -n se_storm_gridhttps
     
 
Changed:
<
<
  • Ping
  • lcg-cp
  • lcg-del
  • BDII configuration
>
>

Verify the StoRM deployment

  • Check the StoRM services
        
    service storm-backend-server status
    service storm-frontend-server status
    service storm-globus-gridftp status
    service tomcat5 status
     
  • Check the StoRM log files
        
    tail -f /var/log/storm/storm-backend.log
    tail -f /var/log/storm/storm-frontend-server.log
     
  • BDII by using for example an LDAP browser
  • srmping
  • lcg-cp
  • lcg-del
 

References

 
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