mkdir /opt/bestman
cd /opt/bestman
. /opt/pacman/latest/setup.sh
echo -e 'y\nl\ny\nn\ny\ny\ny' | pacman -trust-all-caches -get ITB:Bestman
# The pre-answered questions above are for the following questions; please adjust for your own local requirements:
# y # accept licenses
# l # CA area local; other options are r (root) and n (none)
# y # CA updated automatically
# n # do not start gridftp server (we use an already existing gridftp server on a different machine)
# y # rotate VDT logs automatically
# y # start bestman automatically as service
# y # update CRLs automatically
. setup.sh
emacs vdt/etc/vdt-update-certs.conf
# uncomment OSG CA line
. vdt-questions.sh
./vdt/sbin/vdt-setup-ca-certificates
mkdir /ibrix/data/bestman-storage
chmod go+w /ibrix/data/bestman-storage
$VDT_LOCATION/vdt/setup/configure_bestman --server y --user daemon --cert /etc/grid-security/http/httpcert.pem --key /etc/grid-security/http/httpkey.pem --http-port 8080 --https-port 8443 --globus-tcp-port-range 63001,65000 --enable-gateway --with-tokens-list "ATLASDATADISK[desc:ATLASDATADISK][40000][owner:atlas][retention:CUSTODIAL][latency:ONLINE][usedBytesCommand:/bin/echo $[(`/bin/df /ibrix/data/bestman-storage | tail -1 | awk '{print $3}'`)*1024]];ATLASMCDISK[desc:ATLASMCDISK][20000][owner:atlas][retention:CUSTODIAL][latency:ONLINE][usedBytesCommand:/bin/echo $[(`/bin/df /ibrix/data/bestman-storage | tail -1 | awk '{print $3}'`)*1024]];ATLASUSERDISK[desc:ATLASUSERDISK][10000][owner:atlas][retention:CUSTODIAL][latency:ONLINE][usedBytesCommand:/bin/echo $[(`/bin/df /ibrix/data/bestman-storage | tail -1 | awk '{print $3}'`)*1024]];ATLASPRODDISK[desc:ATLASPRODDISK][30000][owner:atlas][retention:CUSTODIAL][latency:ONLINE][usedBytesCommand:/bin/echo $[(`/bin/df /ibrix/data/bestman-storage | tail -1 | awk '{print $3}'`)*1024]];ATLASGROUPDISK[desc:ATLASGROUPDISK][30000][owner:atlas][retention:CUSTODIAL][latency:ONLINE][usedBytesCommand:/bin/echo $[(`/bin/df /ibrix/data/bestman-storage | tail -1 | awk '{print $3}'`)*1024]]" --with-transfer-servers gsiftp://tier2-02.ochep.ou.edu --with-allowed-paths=/ibrix/data/bestman-storage
export EDITOR=emacs
visudo # add:
----
Cmnd_Alias SRM_CMD = /bin/rm, /bin/mkdir, /bin/rmdir, /bin/mv, /bin/cp, /bin/ls
Runas_Alias SRM_USR = ALL, !root
daemon ALL=(SRM_USR) NOPASSWD: SRM_CMD
----
vdt-control --list
vdt-control --on
Then, to test it as a regular user:
srm-copy file://///home/hs/tmp/test1 srm://tier2-05.ochep.ou.edu:8443/srm/v2/server\?SFN=/ibrix/data/bestman-storage/test1 -spacetoken ATLASDATADISK srm-copy srm://tier2-05.ochep.ou.edu:8443/srm/v2/server\?SFN=/ibrix/data/bestman-storage/test1 file://///home/hs/tmp/test2 srm-ping srm://tier2-05.ochep.ou.edu:8443/srm/v2/server srm-sp-tokens srm://tier2-05.ochep.ou.edu:8443/srm/v2/server srm-get-space-tokens srm://tier2-05.ochep.ou.edu:8443/srm/v2/server?SFN=/ srm-get-space-tokens -space_desc=ATLASPRODDISK srm://tier2-05.ochep.ou.edu:8443/srm/v2/server?SFN=/ srm-get-space-metadata -space_tokens=ATLASPRODDISK,ATLASUSERDISK srm://tier2-05.ochep.ou.edu:8443/srm/v2/server?SFN=/
staticTokenList=ATLASDATADISK[desc:ATLASDATADISK][151200];ATLASMCDISK[51200] [desc:ATLASMCDISK];ATLASPRODDISK[20480][desc:ATLASPRODDISK] (and userdisk, groupdisk)
Please note that this site is a content mirror of the BNL US ATLAS TWiki. To edit the content of this page, click the Edit this page button at the top of the page and log in with your US ATLAS computing account name and password.