tier3_admin:xrootd
Table of Contents
ANL XrootD Setup (By Doug + SC & ES corrections)
Steps (While logged in as root)
- Put the appropriate repo into the /etc/yum.repos.d/ directory.
- Edit the appropriate repo with any text editor.
- Add the line (end of file)
priority=25
- Install Yum priorities
yum install yum-priorities
- 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
- Create a data directory to be mounted, such as
mkdir /dataxrd
- Change ownership of mount point
chown xrootd:xrootd /dataxrd
- Create the xrootd data area:
mkdir /dataxrd/atlas
- Change the ownership of the xrootd data area
chown xrootd:xrootd /dataxrd/atlas
- Run the service command to setup xootd
/sbin/service xrootd setup
- 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
- 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)
- 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
- Restart iptables
service iptables restart
- Startup Xrootd on the machine
/sbin/service xrootd start /sbin/service cmsd start
- 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.
- Test that the machine works. You should see its ip address
xrd <this machine> locateall /atlas
- 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