Publish files to cvmfs¶
Staging area for DUNE DAQ's cvmfs repo¶
The staging area for DUNE DAQ's cvmfs repo is under /grid/fermiapp/products/dunedaq. It belongs to the user dunedaq and can be accessed from any DUNE DAQ GPVM node. The staging area contains mirrors of /cvmfs/dunedaq.opensciencegrid.org and /cvmfs/dunedaq-development.opensciencegrid.org. Files need to be put into this staging area first before publishing to cvmfs.
Publishing to cvmfs¶
-
Once the files are under the staging area mentioned above, login to
oasiscfs01.fnal.govascvmfsdunedaqif publishing to/cvmfs/dunedaq.opensciencegrid.org(or ascvmfsdunedaqdevif publishing to/cvmfs/dunedaq-development.opensciencegrid.org); -
Run
~/bin/dunedaq-sync(or~/bin/dunedaq-dev-sync) to sync the cvmfs repo to the staging area. There is a~/dunedaq-sync-deletescript which uses--deleteoption when syncing withrsync. Be careful when using this script since it may delete exisiting files from the cvmfs repo and potentially break existing workflows.
Adding more top level directories to the repo¶
The DUNE cvmfs repo utilizes .cvmfsdirtab in the top directory of the repo to help generating .cvmfscatalog files for subdirectories. If you need to add a new directory which is not covered by exisiting enties in the file, you will need to modify ~/bin/dune-split with the new directory path, and run it once.
Other ways to publish files¶
Another way to publish files to cvmfs is to use Tarball Publishing. One would not need to use a staging area in this case.
cvmfs_server ingest --tar_file <tarball.tar> --base_dir <path/where/extract/> dune.opensciencegrid.org
Note that we recently experienced file permission issues with content published by ingest tarballs. It is recommended to always use the staging area method.
Deleting files¶
You can do the following to delete files/directories:
# open a transction on the publisher node
cvmfs_server transaction dunedaq.opensciencegrid.org
# do the deletetion on the publisher node
rm <path_to_files_dirs_for_deletion>
# publish the transaction
cvmfs_server publish dunedaq.opensciencegrid.org
Alternatively, you can use the ingest subcommand to cvmfs_server for file/dir deletion.
cvmfs_server ingest --delete <path/to/delete> dunedaq.opensciencegrid.org
Last git commit to the markdown source of this page:
Author: Pengfei Ding
Date: Thu Aug 12 12:08:38 2021 -0500
If you see a problem with the documentation on this page, please file an Issue at https://github.com/DUNE-DAQ/daq-release/issues