Print

Print


Dear Andrew:

  Thanks a lot for you help, I have installed xroot on both 
pcncu1001.cern.ch and qing1981.cern.ch., after  starting the xrootd 
service on both machines, I can use xrdcp to transfer a file inside the 
machine:

[pcncu1001] /home/xrootd/xrootd-20100510-1509/etc > 
/opt/xrootd/bin/x86_64_linux_26/xrootd -c xrootd.cf
[pcncu1001] /home/xrootd/xrootd-20100510-1509/etc > xrdcp 
/tmp/mytestfile.dat root://pcncu1001.cern.ch//xrootd/7.dat
[xrootd] Total 1.00 MB  |====================| 100.00 % [inf MB/s]


[localhost] /home/xrootd/xrootd-20100510-1509/etc > 
/opt/xrootd/bin/x86_64_linux_26/xrootd -c xrootd.cf
[localhost] /home/xrootd/xrootd-20100510-1509 > ./bin/arch/xrdcp 
/tmp/mytestfile.dat root://qing1981.cern.ch//xrootd/7.dat
[xrootd] Total 1.00 MB  |====================| 100.00 % [1048.6 MB/s]

  But when I tried to transfer one file between the 2 machines,  it failed:

[pcncu1001] /home/xrootd/xrootd-20100510-1509/etc > xrdcp 
/tmp/mytestfile.dat root://qing1981.cern.ch//xrootd/7.dat
Last server error 10000 ('')
Error accessing path/file for root://qing1981.cern.ch//xrootd/7.dat

[localhost] /home/xrootd/xrootd-20100510-1509 > ./bin/arch/xrdcp 
/tmp/mytestfile.dat root://pcncu1001.cern.ch//xrootd/8.dat
Last server error 10000 ('')
Error accessing path/file for root://pcncu1001.cern.ch//xrootd/8.dat


Any idea what's wrong? Here is the content of my xrootd.cf:

[pcncu1001] /home/xrootd/xrootd-20100510-1509/etc > cat xrootd.cf
if pcncu1001.cern.ch
        xrd.port 1094
else
        xord.port any
fi
xrootd.fslib /opt/xrootd/lib/x86_64_linux_26/libXrdOfs.so
all.export /xrootd r/w
if pcncu1001.cern.ch
        all.role manager
else
        all.role server
fi
all.manager pcncu1001.cern.ch:1213
cms.allow host pcncu1001.cern.ch
cms.allow host qing1981.cern.ch

  Cheers,Gang




> Hi Gang,
>
> First, globally change "olb." to "cms." and then see the individual 
> changes you need to make below.
>
> How old is that configuration? It seems to be over 4 years old.
> Things have changed somewhat during that time.
>
> Andy
>
> P.S. The config file can be further simplified but this will do.
>
> On Fri, 17 Jun 2011, qing wrote:
>
>> Dear Xrood expert:
>>
>> ------------------------------------------------------------------------- 
>>
>> xrootd.fslib /opt/root/lib/libXrdOfs.so
>> xrootd.export /xrootd/
>> xrd.port 1094
>> if pcuw101.cern.ch
>> ofs.redirect remote
> *****>>>> all.role manager
>> ofs.forward all
>> else
>> ofs.redirect target
> *****>>>> all.role server
>> fi
>> olb.port 3121
>> if exec olbd
> *****>>>> if exec cmsd
>> xrd.sched mint 10 maxt 100 avlt 20
> *****>>>> We STRONGLY suggest you remove the sched directive as it 
> will cause problems for you!!!!! It is meanty largely for development 
> purposes.
>> fi
>> oss.path /xrootd/ r/w
>> olb.path rw /xrootd/
> *****>>>> The above two directives can be specified as follows:
> all.export /xrootd/ r/w
>> if pcuw101.cern.ch
>> olb.role manager
>> else
>> olb.role server
>> fi
>> olb.subscribe pcuw101.cern.ch 3121
> *****>>>> You no longer need the subscribe directive.
>> odc.manager pcuw101.cern.ch 3121
> *****>>>> Change odc to all in the above.
>
>> olb.delay startup 30
>> olb.space 20g 1g
>> if exec xrootd
>> xrd.protocol xproofd:1093 /opt/root/lib/libXrdProofd.so
>> fi
>> xpd.rootsys /opt/root
>> xpd.workdir /xrootd/
>> xpd.intwait 20
>> xpd.resource static /etc/proof.conf
>> xpd.role worker
>> xpd.role master if pcuw101.cern.ch
>> xpd.allow pcuw101.cern.ch
>> xpd.poolurl root://pcuw101.cern.ch
>> xpd.namespace /home/xrootd/proofpool
>> ----------------------------------------------------------------------------------------------------------------------- 
>>
>>
>>
>>
>> But I was told 'olbd' has been replaced by 'cmsd' since several years,
>> so how should I modify this configuration file?
>>
>>
>>
>> Cheers,Gang
>>
>>
>>
>>> Dear Xrootd-expert:
>>>
>>> Do we have an example or manual of installing and configuring xrootd on
>>> a cluster of 2 machines?
>>>
>>> Cheers,Gang
>>>
>>>
>>
> .
>