Is file migrated on tape? #7
Comments
Hi, At this point (2.1.14) this information is not provided by the CASTOR XRootD plugin. Cheers, |
Thanks for the quick answer. Actually I was wondering if xrootd was directly supported by castor or if it was a plugin? Do you know if there is a way to get the info via the standard xrootd cli for the time being? |
Technically CASTOR-XRootD is a server-side plugin to the XRootD framework, exporting the CASTOR data to XRootD users. So, as far as the clients are concerned, CASTOR can be seen as any other XRootD service. XRootD cli has various ways of sending "custom" queries to the server, but the server needs to know how to answer them, and this functionality is not provided for the time being. |
Furthermore, the cli uses the same underlying API as xrootd-python. |
Okay, thanks for the answers |
In the same topic, I did not find any way to specify the service class in the python API. Did I miss it in the doc, or is this functionality not present yet? I can open another ticket for that if needed. Cheers, |
Hi Chris, when using CopyProcess, you can add the service class as a part of the URL CGI. Ie.
Cheers, |
Excellent, thank you! May I suggest you to specify this in the doc? :-) Cheers, |
Passing parameters in the URL is an XRootD functionality, but this particular parameter is specific to Castor an meaningless in general context, so this should end up in the Castor docs. I will ask the relevant people to do this. |
It is already documented here: |
Yes, they document the -OS and -OD options for xrdcp cli, but I did not know that we could pass it that way in the python API. Thanks |
OK, I see where the confusion comes from. |
XRootD as of version 4.0.0 has a @esindril can you please make sure that the appropriate modifications are made in Castor 2.1.15 to set this flag? |
Done. Will be enabled once there is a XRootD release supporting these flags. |
Hi,
I wanted to use the python API against the castor storage at CERN. With the nsls command, you can know whether a file has been replicated with the "m" flag. Is there a way to get the same information from pyxrootd? The Offline flag from the StatInfo tells you whether the file is not on disk, but is irrelevant if it is on disk and tape. And I am not quite sure, but I think that PoscPending means that we are waiting for the replication to happen. So how can I know whether the file is on disk AND on tape?
Thanks a lot!
The text was updated successfully, but these errors were encountered: