Project

General

Profile

Write files to CVMFS » History » Version 5

Version 4 (Gianluca Petrillo, 12/28/2016 09:24 AM) → Version 5/6 (Andrzej Szelc, 02/04/2017 12:16 PM)

h1. Write files to CVMFS

{{>toc}}

Modifications to SBND area in CVMFS are performed interacting as user @cvmfssbnd@ on the server @oasiscfs.fnal.gov@. @oasiscfs02.fnal.gov@.
A file @README@ in the home directory in there contains instructions that may be more up to date than these ones.

These are the suggested operations, optimised for "the less time in @oasiscfs.fnal.gov@, @oasiscfs02.fnal.gov@, the better":

# get a Kerberos ticket as usual:<pre>kinit -R "${USER}@FNAL.GOV" || kinit "${USER}@FNAL.GOV"</pre> (this is just a trick so that it renews if available, otherwise it asks for a password and creates a new one)
# copy the files you want to store in CVMFS into @oasiscfs.fnal.gov@ @oasiscfs02.fnal.gov@ (you need to [[Write files to CVMFS#Access-privileges|be authorised]]):<pre>scp sbnd_data-01.00.00-noarch.tar.bz2 cvmfssbnd@oasiscfs.fnal.gov:</pre> cvmfssbnd@oasiscfs02.fnal.gov:</pre> will copy all the files (in this case, a single @sbnd_data-01.00.00-noarch.tar.bz2@) into the home directory of @cvmfssbnd@
# log in @oasiscfs.fnal.gov@ @oasiscfs02.fnal.gov@ (you need to [[Write files to CVMFS#Access-privileges|be authorised]]):<pre>ssh cvmfssbnd@oasiscfs.fnal.gov</pre> cvmfssbnd@oasiscfs02.fnal.gov</pre>
# start the CVMFS update session:<pre>cvmfs_server transaction sbnd.opensciencegrid.org</pre>
# do what it takes to modify the CVMFS area at @/cvmfs/sbnd.opensciencegrid.org@: copy files, move files, expand files, edit files...<pre>tar xvvf sbnd_data-01.00.00-noarch.tar.bz2 -C /cvmfs/sbnd.opensciencegrid.org/products/sbnd</pre>
# close and "publish" the update wit a tag string and a message; **make sure you are not in the CVMFS directory**:<pre>cd
cvmfs_server publish -m "Published sbnd_data 1.0.0" -a 1.0 sbnd.opensciencegrid.org</pre>
will create a new tag @1.0@, with a meaningful description. A tag can be also created after publication, with @cvmfs_server tag -m "Published sbnd_data 1.0.0" -a 1.0 sbnd.opensciencegrid.org@ (same effect as before). To see all tags, issue @cvmfs_server tag -l sbnd.opensciencegrid.org@ (@-l@ is optional).
# log out

You can try and check the directory @/cvmfs/sbnd.opensciencegrid.org/products/sbnd@ (and note that on GPVM the directory @/cvmfs/sbnd.opensciencegrid.org@ might not show with a @ls /cvmfs@, but it will automatically appear the first time it is requested), but it takes some time for the CVMFS server to propagate the change to the world.

h2. Access privileges

A few SBND people are allowed to log as @cvmfssbnd@ on @oasiscfs.fnal.gov@, @oasiscfs02.fnal.gov@, and they can add a few others.
As of December 2016, these people are:

| "Andrzej Szelc":mailto:andrzej.szelc@manchester.ac.uk |
| "Gianluca Petrillo":mailto:petrillo@fnal.gov |
| "Corey Adams":mailto:corey.adams@yale.edu |
| "Roxanne Guenette":mailto:Roxanne.Guenette@physics.ox.ac.uk |
| "Tom Brooks":mailto:tom.g.r.brooks@gmail.com
|

To add a user to the list, his/her Kerberos principal must be added to @.k5login@ file in the home directory of @cvmfssbnd@.