Data Sharing at SLAC¶
This guide covers data sharing methods available at SLAC, including Xcache servers and the Data Sharing Store.
For XCache server usage and examples, see XCache at SLAC.
CERN EOS Access¶
To be documented.
Data Sharing Store at SLAC¶
US ATLAS is experimenting a data sharing store service at SLAC AF. The goal is to enable easy data sharing with your ATLAS colleagues.
Features¶
This is an object store with the following features:
- Allows ATLAS users to upload/delete files using
rootorhttpsprotocols. Anyone can download a file (see Privacy section). This service is not limited to US ATLAS. - Files uploaded there have a lifetime of N-days. After that period, they will be purged without notice. Currently N is set to 60 at SLAC AF.
- The top level directory in the object store is not browsable.
The object store is available at the following URLs:
https://sdf-dtn10.slac.stanford.edu:2094/shareroot://sdf-dtn10.slac.stanford.edu:2094//share(double slash after :2094)
Privacy¶
Low sensitivity data only
Browsing/Listing of /share is disabled in order to provide a level of privacy that is suitable for sharing low sensitivity data.
For example, if one copies a data file to:
https://sdf-dtn10.slac.stanford.edu:2094/share/random-string/myfile.dat
Others would not know the existence of myfile.dat unless they were told about the random-string. This is because /share is not searchable. As the owner, you should write down the random string and keep it secure. Anyone who know the random string can search for the content under it.
Important: Keep your random string secure
If you lose the random string, you lose access to your data. Administrators won't be able to help you since there is no records of ownership in the object store. The data will eventually be purged after expiration.
Upload and Download¶
You will need an X509 proxy with ATLAS VOMS attribute to upload and delete. No such requirement for downloading, though some tools will insist to have a X509 proxy before proceeding. So run command voms-proxy-init -voms atlas first to obtain an X509 proxy with ATLAS VOMS attribute.
Then if you will upload, think of a hard-to-guess random string to be used after /share. One secure way to generate a random string is to use Unix command uuidgen, and write it down!
There are three set of tools that can be used to upload/download/delete a file. In addition, you can also use your web browser to download.
Using curl to upload/download/delete¶
curl is available everywhere. To use curl, follow these steps:
-
Create an alias to type less:
alias mycurl="curl -E /tmp/x509up_u$(id -u) --cacert /tmp/x509up_u$(id -u) --capath /etc/grid-security/certificates"Note
You may need to adjust the proxy location and CA directory location (/etc/grid-security/certificates) in your environment.
-
Upload:
-
Download:
-
Delete:
Use gfal2 tools to upload/download/delete¶
You may need to setup the ATLAS environment (run localSetupRucioClients) to have the gfal2 tools in your PATH.
-
Upload:
-
Download:
-
Delete:
-
You can even do:
Tip
Gfal2 tools work with both https and root protocols. In the last example, the source and destination can use different protocols.
Use xrootd tools to upload/download/delete¶
You may need to setup the ATLAS environment (run localSetupRucioClients) to have the xrootd tools in your PATH. These tools will mostly work with the root protocol. Note that in a root URL, there is usually a double slash after the port number.
-
Upload:
-
Download:
-
Delete:
-
You can also do:
Note
With additional setting, xrdcp also works with the https protocol.
Use a web browser¶
You can use a web browser to download file and list a directory (except the top level, which is not browsable). To do that, just paste the https URL to your browser.
It is not possible to use a web browser for upload and deletion.