CERN Accelerating science

XRootD proxy with caching

Hi all,

What about installing a XRootD proxy with caching? Afaik there is no such service installed. Let me know if I’m wrong in this point.

I think it would improve SWAN immensely for a lot of people! Let me give an example:
We run a ROOT hands-on with around 50 people. Each of them pull via XRootD a file with around 10 GB. Currently all of these transfers go through the network all the time. However, you could have local reading performance with the XRootD cache after the first user pulled the file. Wouldn’t that be awesome? :slight_smile:


Some interesting read:

I came here for the same question, is it possible to access files from tier2/tier3 via xrootd in swan? Or do I have to copy them local to my cernbox everytime that I need them?


Hi @algomez ,

Just to understand your use case, you want to read those files remotely with ROOT via xrootd? If that is the case, you just need to do a kinit from the SWAN terminal and you will be able to read those files remotely.

Thanks @etejedor for the reply.
What I want is to access remote files (from a T2/T3 somewhere else) and run some code in a notebook from swan. I guess that this can be done through xrootd. But I have two (stupid) technical questions:

  1. Do I need to set my grid certificate for that? and if yes, how?
  2. I can access those files through swan, like: ROOT.TFIle.Open(‘root://’)

thanks for the help.


How would you do it, say on lxplus, or from your laptop? In SWAN you should be able to follow the same procedure.

I found these instructions online (I don’t know if this is how it is supposed to be done in your case, just shooting in the dark):

It seems that the first thing you would need to do is copy your grid certificate in your CERNBox. After that, you should run voms-proxy-init (available in SWAN) from the SWAN terminal to get your proxy certificate. Then, from your notebook, you should be able to open the file with ROOT.

We had a presentation from a user in the SWAN workshop that did a similar thing for ALICE:

See e.g. slide 5 where he talks about setting up the grid certificate. @blim perhaps you can help @algomez out with this?


I tried this before contacting this forum, I installed my certificate as usual but then trying to run voms-proxy-init I am getting this message:

algomez@b02b398a660c:/home/algomez$ voms-proxy-init --voms cms
Enter GRID pass phrase:
Your identity: /DC=ch/DC=cern/OU=blahblah
Cannot find file or dir: /etc/vomses
VOMS Server for cms not known!

while from other machines this work. That is why I assumed that this does not work. Any suggestion?



What you copied here, did you run it from the SWAN terminal?

Indeed, in SWAN we don’t have an /etc/vomses directory with the configuration files of the voms servers, which does exist in lxplus:

[etejedor@lxplus758 ~]$ cd /etc/vomses
[etejedor@lxplus758 vomses]$ ls                                                                                                                                                                       

I created a ticket to install those voms server configuration files in the next SWAN update:

In the meantime, what you can do is copy the CMS voms server configuration files you need from lxplus to your CERNBox. Then, when you run voms-proxy-init, there is a parameter that you can pass to make it look elsewhere for voms server configuration files:

    -vomses <file>                 Non-standard location of configuration files.

That should work for now.

Hi @etejedor
thank you so much, yes this works like a charm! and thank you for the JIRA ticket as well.
Now I’ll try to run more complicated things in swan :smiley: