User Tools

Site Tools


tier3_admin:xrootd

ANL XrootD Setup (By Doug + SC & ES corrections)

Steps (While logged in as root)

  1. Fetch the yum repo for either SL5 or SL6.
  2. Put the appropriate repo into the /etc/yum.repos.d/ directory.
  3. Edit the appropriate repo with any text editor.
  4. Add the line (end of file)
    priority=25
  5. Install Yum priorities
    yum install yum-priorities
  6. Install the the various xrootd rpms's
    yum install xrootd-libs.x86_64 xrootd-server.x86_64 xrootd-client.x86_64 xrootd-fuse.x86_64 xrootd-debuginfo.x86_64
  7. Create a data directory to be mounted, such as
    mkdir /dataxrd
  8. Change ownership of mount point
    chown xrootd:xrootd /dataxrd
  9. Create the xrootd data area:
    mkdir /dataxrd/atlas
  10. Change the ownership of the xrootd data area
    chown xrootd:xrootd /dataxrd/atlas
  11. Run the service command to setup xootd
    /sbin/service xrootd setup
  12. Copy the xrootd configuration file and auth file over from atlas50
    scp root@atlas50:/etc/xrootd/xrootd-clustered.cfg  /etc/xrootd/xrootd-clustered.cfg
    scp root@atlas50:/etc/xrootd/auth_file  /etc/xrootd/auth_file
  13. Look inside of xrootd-clustered.cfg to see that the following lines exists:
    # change to follow your local convention if different
    set localroot = /dataxrd
    oss.localroot $(localroot)
  14. Open the xrootd port in the iptables 1094 (In /etc/sysconfig/iptables)
    -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1094 -j ACCEPT
  15. Restart iptables
    service iptables restart
  16. Startup Xrootd on the machine
    /sbin/service xrootd start
    /sbin/service cmsd start
  17. Remember that the log files are located here:
    /var/log/xrootd/xrootd.log
    /var/log/xrootd/cmsd.log

Testing

To test that the redirector sees the machine you just set up. It must be done on a machine with xrootd client libs installed.

  1. Test that the machine works. You should see its ip address
    xrd <this machine> locateall /atlas
  2. Find out if you can see this machine from the redirector
    xrd atlashn1 locateall /atlas

Example of the usage

xrdcp test.txt  xroot://aschead01.hep.anl.gov:1094//atlas/chakanau/test/text.txt

Remove the directory:

rmdir xroot://aschead01.hep.anl.gov:1094//atlas/chakanau/test
tier3_admin/xrootd.txt · Last modified: 2013/05/30 18:53 by 127.0.0.1