====== ANL XrootD Setup (By Doug + SC & ES corrections) ====== =====Steps (While logged in as root)===== - Fetch the yum repo for either [[http://www.xrootd.org/binaries/xrootd-stable-slc5.repo | SL5]] or [[http://www.xrootd.org/binaries/xrootd-stable-slc6.repo | SL6]]. - 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 prioritiesyum install yum-priorities - Install the the various xrootd rpms'syum 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 pointchown 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 iptablesservice 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 addressxrd locateall /atlas - Find out if you can see this machine from the redirectorxrd 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