This wiki page explains how to install the scripts needed to automount xrootdfs area on a given node.
Prerequisites:
In short:
cd /etc/yum.repos.d/ wget http://www.xrootd.org/binaries/xrootd-stable-slc6.repo vi xrootd-stable-slc5.repo yum install yum-priorities yum install xrootd-libs.x86_64 xrootd-server.x86_64 xrootd-client.x86_64 xrootd-fuse.x86_64 xrootd-debuginfo.x86_64 chown xrootd:xrootd /dataxrd mkdir -p /dataxrd/atlas chown xrootd:xrootd /dataxrd chown xrootd:xrootd /dataxrd/atlas scp root@atlas50:/etc/xrootd/xrootd-clustered.cfg /etc/xrootd/xrootd-clustered.cfg scp root@atlas50:/etc/xrootd/auth_file /etc/xrootd/auth_file vi /etc/sysconfig/iptables # add port
As root account, create the file /usr/bin/xrootdfs.sh and set the flags for it to be executable.
Contents of /usr/bin/xrootdfs.sh are:
#!/bin/bash exec /usr/bin/xrootdfs $@ >/dev/null 2>&1
Add these lines to /etc/auto.master:
#mount of xrootdfs areas /- /etc/auto.xrootdfs
The file /etc/auto.xrootdfs contains the mount information needed to create the xrootdfs auto mounts.
For example:
/aschead01/atlas -fstype=fuse,rw,uid=xrootd,rdr=root\://aschead01.hep.anl.gov\:1094//atlas :xrootdfs.sh /atlasfs/atlas -fstype=fuse,rw,uid=xrootd,rdr=root\://atlasfs.hep.anl.gov\:1094//atlas :xrootdfs.sh /aschead02/atlas -fstype=fuse,rw,uid=xrootd,rdr=root\://aschead02.hep.anl.gov\:1094//atlas :xrootdfs.sh
mkdir -p /aschead01/atlas mkdir -p /atlasfs/atlas mkdir -p /aschead02/atlas
/sbin/service autofs restart
ls -l /atlasfs/atlas total 9 drwxrwxrwx 1 xrootd atlas 4096 Feb 26 11:31 dq2 drwxrwxrwx 1 xrootd atlas 4096 Mar 19 14:38 test