Motivation

The desire was to set up a local installation of the dq2 tools, eg, dq2_get and dq2_ls. Previous setups used by the UM group did not work for a variety of reasons.

Using the local dq2* commands

Below are the complete details of the installation process. In the end, the user must do at most 3 things.

These directions updated on February 11, 2013.

There are two ways to get to the dq2 tools, using either the CVMFS installation, or our own, local installation.

  • CVMFS access
    • source /usr/local/bin/setup/cvmfs_atlas.sh
    • localSetupDQ2Client
  • Local installation access
    • source $DQ2_ENV/setup.sh

It is now possible to do voms-proxy-init -voms atlas (you must have a grid proxy already set up to do this) and proceed to using the dq2 tools.

Note, for some of these tools, it may be necessary to do the following:

export LCG_GFAL_INFOSYS="exp-bdii.cern.ch:2170"

By default, the LOCAL dq2- tools use our own AGLT2 site as their file source. This can be over-ridden using the argument "-L some_other_site" on the tool, eg, "dq2-ls -L BNLDISK etc". Possible values for the -L argument can be obtained using the "dq2-sources" command. This is not recommended though as the copy command selected depends on both the source and destination sites, and use of "-L" implies the specified locale is also your local locale.

The environment variable above is set up only on our interactive machines (umt3int0X.physics.lsa.umich.edu), and on personal workstations. The commands are interactive in nature, so no other machine has been enabled in this way.

Examples using the local dq2* commands

  • dq2-ls M5.0029578.Default.L1TT-b00001000.ESD.v13003013
    List all files at AGLT2 in this dataset
  • dq2-ls -L BNL M5.0029578.Default.L1TT-b00001000.ESD.v13003013
    List all files in this dataset assuming you are at BNL
  • dq2-ls -r trig1_misal1_mc12.006535.McAtNloHww200.recon.AOD.v12000605_tid018601
    List sites that have this dataset, and indicate if the dataset is complete or incomplete
  • dq2-get trig1_misal1_mc12.006535.McAtNloHww200.recon.AOD.v12000605_tid018601
    Copy all files in the dataset to the current local directory tree, without specifying the source for the files
  • dq2-get -s AGLT2_SRM trig1_misal1_mc12.006535.McAtNloHww200.recon.AOD.v12000605_tid018601
    Copy all files in the dataset to the current local directory tree, specifying the source as our own dCache

Special case, BNL error

An error in copying files from BNL has been found. The symptom is that copies from BNL to AGLT2 can fail, with the following error recorded, even though dq2-ls has verified the file actually exists at BNL:
Starting transfer: lcg-cp -v --vo atlas -b -D srmv2
srm://dcsrm.usatlas.bnl.gov:8443/srm/managerv1?SFN=/pnfs/usatlas.bnl.gov/NTUP01/trig1_misal1_mc12/NTUP/trig1_misal1_mc12.005104.PythiaWenu.recon.NTUP.v13003004_tid018918_sub0999443/NTUP.018918._00387.root.1
file:///atlas/data13/daits/mc13/trig1_misal1_mc12.005104.PythiaWenu.recon.NTUP.v13003004_tid018918/NTUP.018918._00387.root.1
[Errno 2] No such file or directory:

Note the mixture of "srmv2" with "managerv1?SFN" in the erring copy command. The solution (hot fix) is to use the following copy syntax, specifying the -p switch:
  • dq2-get -p lcg1 datasetname

NOTICE: Details of the setup

Unless you are really interested in all the details, there is no need to read further on this page

The Installation Procedure

Update history

WLCG-client updated October 19, 2009, with following inclusions:
[ball@umt3int01:~]$ lcg-cp --version
lcg_util-1.7.6-1
GFAL-client-1.11.9-1

WLCG-client updated January 11, 2010. Inclusions unchanged.
WLCG-client updated May 25, 2010. Inclusions unchanged.
  • On 8/10 it is found that the adler32 command of this install is broken.
    • eg, adler32 /tmp/bob.dat
    • Revert to 1/11/2010 version.
  • On 8/23, investigation finds this ticket that precisely describes the issue, with the solution:
    • cd install_location/srm-client-fermi/lib/globus
    • ln -s cog-jglobus-1.7.0.jar cog-jglobus.jar
  • Fixed link in installed wlcg-client, but not yet switched back to using it.
WLCG-client updated Aug 27, 2010.

WLCG-client updated October 20, 2011. Inclusions remain unchanged, but WLCG version is now 1.8

dq2 tools updated as follows:
Updated to 0.1.28 version on June 2, 2009
Updated to 0.1.29 version on September 22, 2009
Updated to 0.1.31 version on October 19, 2009
Updated to 0.1.33_rc2 version on January 11, 2010
Updated to 0.1.33 version on March 1, 2010
Updated to 0.1.35_rc2 version on June 1, 2010
Updated to 0.1.36_rc4 version on Jan 17, 2011
Updated to 0.1.37_rc1 version on April 7, 2011
Version 0.1.37_rc6 downloaded October 20, 2011, but never set as default
Updated to 2.3.0 version on June 5, 2012

Current procedure -- December 12, 2008

The underlying software is no longer the LCG/UiTarInstall, but is the WLCG-client package installed via pacman. All software is installed on replicated afs volumes, typically mounted read-only. Installation is performed from umopt1.aglt2.org, sourcing the pacman setup:
source /afs/atlas.umich.edu/opt/pacman/setup.sh

Make sure that "opt" afs volume is mounted read/write (below).

# Set up the wlcg-client package.  
# Does not need update with each new DQ2Client.
cd /afs/atlas.umich.edu/opt
mkdir WLCG-client
cd WLCG-client
##
## Changes with Condor 7.6 to CONDOR locations
#
## export VDTSETUP_CONDOR_LOCATION=/opt/condor
## export VDTSETUP_CONDOR_CONFIG=/opt/condor/etc/condor_config
export VDTSETUP_CONDOR_LOCATION=/usr
export VDTSETUP_CONDOR_CONFIG=/etc/condor/condor_config
#
pacman -get http://www.mwt2.org/caches/:wlcg-client
cd globus
ln -s /afs/atlas.umich.edu/OSG_certificates/certificates TRUSTED_CA
cd share
ln -s /afs/atlas.umich.edu/OSG_certificates/certificates certificates

# New with WLCG version 1.8, October, 2011
#
# INFO: To enable the pythonloader to search for a python satisfying DQ2 requirements 
# add this symbolic link:
source setup.sh
cd atlasosgcompat/bin/
ln -s pythonloader python

# Furthermore, the dq2 tools require a 32-bit python image.  
#   NOTE: This is no longer true as of 0.1.28 version with its new WLCG-client
# Does not need update with each new DQ2Client.
cd /afs/atlas.umich.edu/opt/localDQ2LCG
pacman -get http://www.mwt2.org/caches/:Python32bit

# Directions from Mario Lassnig for dq2-*, with our local installation modifications:
cd /afs/atlas.umich.edu/opt/localDQ2LCG
mkdir #new version directory#, for example, mkdir 0.1.25
cd #new version directory#
pacman -trust-all-caches -allow tar-overwrite -get http://atlas.web.cern.ch/Atlas/GROUPS/DATABASE/project/ddm/releases/pacman/cache:DQ2Clients

(NOTE: AGLT2_UM deprecated, 10/2010, change to AGLT2_DATADISK)
edit setup.sh and add this line at the start of the pre-setup section:
. /afs/atlas.umich.edu/opt/scripts/setup_py265.sh
Add these 3 lines prior to the post-setup:
DQ2_LOCAL_SITE_ID="AGLT2_DATADISK"
export DQ2_LOCAL_SITE_ID
export VOMS_PROXY_INFO_DONT_VERIFY_AC='true'

edit setup.csh and add this line at the start of the pre-setup section:
source /afs/atlas.umich.edu/opt/scripts/setup_py265.csh
Add these 2 lines prior to the post-setup:
setenv DQ2_LOCAL_SITE_ID "AGLT2_DATADISK"
setenv VOMS_PROXY_INFO_DONT_VERIFY_AC 'true'

No other setup modification is necessary, except to define the default version.
Use the installed directory version in these commands.

cd ..
rm setup.sh; ln -s 0.1.25/setup.sh setup.sh
rm setup.csh; ln -s 0.1.25/setup.csh setup.csh

Current procedure minus 1 -- September 1, 2008

Installation is in the afs directory /afs/atlas.umich.edu/opt/localDQ2LCG

Directions here, picked up 2 files from here, namely glite-UI-3.1.18-0.tar.gz and glite-UI-3.1.18-0-external.tar.gz (September 2008 issue). Then follow the tarball installation directions, with the following modifications.

The following files must be created:
  • touch glite/yaim/etc/groups.conf
  • touch glite/yaim/etc/users.conf
  • touch glite/yaim/etc/wn-list.conf
The site-info.def must be modified to fit our situation. Following the unpacking of the 2 tarballs, an example can be found in .../glite/yaim/examples/siteinfo/site-info.def . Copy this. The following diff output shows the changes made at AGLT2.

[umopt1:gLite]# pwd
/afs/atlas.umich.edu/opt/localDQ2LCG/gLite
[umopt1:gLite]# diff glite/yaim/examples/siteinfo/site-info.def site-info.def
76c76,80
< INSTALL_ROOT=/opt
---
> ## INSTALL_ROOT=/opt
> INSTALL_ROOT=/afs/atlas.umich.edu/opt/localDQ2LCG/gLite
> GLITE_EXTERNAL_ROOT=${INSTALL_ROOT}/external
> GRID_ENV_LOCATION=${GLITE_EXTERNAL_ROOT}/etc/profile.d
> FUNCTIONS_DIR=${INSTALL_ROOT}/glite/yaim/functions
79,82c83,87
< WN_LIST=/opt/glite/yaim/etc/wn-list.conf
< USERS_CONF=/opt/glite/yaim/etc/users.conf
< GROUPS_CONF=/opt/glite/yaim/etc/groups.conf
< FUNCTIONS_DIR=/opt/glite/yaim/functions
---
> ## Modified from /opt/glite/yaim to /afs/atlas.umich.edu/opt/localDQ2LCG/gLite/glite/yaim
> WN_LIST=${INSTALL_ROOT}/glite/yaim/etc/wn-list.conf
> USERS_CONF=${INSTALL_ROOT}/glite/yaim/etc/users.conf
> GROUPS_CONF=${INSTALL_ROOT}/glite/yaim/etc/groups.conf
> FUNCTIONS_DIR=${INSTALL_ROOT}/glite/yaim/functions
94c99,100
< JAVA_LOCATION="/usr/java/j2sdk1.4.2_12"
---
> ## JAVA_LOCATION="/usr/java/j2sdk1.4.2_12"
> JAVA_LOCATION="/usr/java/jdk1.5.0_10"
98c104,105
< CRON_DIR=/etc/cron.d
---
> # CRON_DIR=/etc/cron.d
> CRON_DIR=/dev/null
103a111
> ## GLOBUS_TCP_PORT_RANGE="10000,60000"
113,117c121,125
< SITE_NAME=my-site-name
< SITE_LOC="City, Country"
< SITE_LAT=0.0 # -90 to 90 degrees
< SITE_LONG=0.0 # -180 to 180 degrees
< SITE_WEB="http://www.my-site.org"
---
> SITE_NAME=AGLT2
> SITE_LOC="Ann Arbor, Michigan, USA"
> SITE_LAT=45.0 # -90 to 90 degrees
> SITE_LONG=75.0 # -180 to 180 degrees
> SITE_WEB="http://www.aglt2.org"
119c127
< SITE_SUPPORT_SITE="my-bigger-site.their_domain"
---
> SITE_SUPPORT_SITE="usatlas.bnl.gov"
129c137,138
< CE_HOST=my-ce.$MY_DOMAIN
---
> ## CE_HOST=my-ce.$MY_DOMAIN
> CE_HOST=umfs02.grid.umich.edu
169c178,179
< RB_HOST=my-rb.$MY_DOMAIN
---
> ## RB_HOST=my-rb.$MY_DOMAIN
> RB_HOST=my-rb.cern.ch
181c191,192
< PX_HOST=my-px.$MY_DOMAIN
---
> ## PX_HOST=my-px.$MY_DOMAIN
> PX_HOST=myproxy.cern.ch

Next, install the dq2 enduser tools.

# source /opt/pacman-3.24/setup.sh

# pacman -trust-all-caches -allow tar-overwrite -get http://atlas.web.cern.ch/Atlas/GROUPS/DATABASE/project/ddm/releases/pacman/cache:DQ2Clients

setup.sh and setup.csh that are created here must be modified in two ways:
  • Add the initial value for the data source, ie, export DQ2_LOCAL_SITE_ID=AGLT2_UM
    • Values for this can be obtained by running the command "dq2-sources"
  • Add the 32-bit python image directory to the PATH, ie, /afs/atlas.umich.edu/opt/localDQ2LCG/gLite/external/usr/bin

Early version installs -- retained only for historical reasons

The dq2 tools required a local installation of the LCG tools. The also require a java sdk installation. Both are installed in afs, in the newly created volumes
  • /afs/atlas.umich.edu/opt/localDQ2LCG
  • /afs/atlas.umich.edu/opt/java
So, first things first, install the java sdk in afs. Following java installation directions we pick up the file "j2sdk-1_4_2_13-linux-i586.bin"
  • chmod +x j2sdk-1_4_2_13-linux-i586.bin
  • cd /afs/atlas.umich.edu/opt/java
  • execute the binary
This needs ~165MB of disk

If /usr/lib/libldap.so.2 does not exist, then
  • yum install compat-openldap.[i386|x86_64]

Now, following the directions here, the most recent versions of the two local tar files were copied to UMich from: http://grid-deployment.web.cern.ch/grid-deployment/download/relocatable/

These were then unpacked in the afs directory created for this purpose.

  • cd /afs/atlas.umich.edu/opt/localDQ2LCG
  • mkdir LCG
  • cd LCG
  • tar -zxf [location]/gliteUI_WN-2006-10-17.tar.gz
  • tar -xzf [location]/gliteUI_WN-userdeps-2006-10-17.tar.gz

Now, some setup. The following files must be created:
  • mkdir glite/yaim/etc
  • touch glite/yaim/etc/groups.conf
  • touch glite/yaim/etc/users.conf
  • touch glite/yaim/etc/wn-list.conf
Create the file site-info.def . As we have configured it, only the beginning of this file needs modification from the template version found at ./glite/yaim/examples/site-info.def

# YAIM example site configuration file - adapt it to your site!

MY_DOMAIN=grid.umich.edu

# Node names
# Note: - SE_HOST -->  Removed, see CLASSIC_HOST, DCACHE_ADMIN, DPM_HOST below
#       - REG_HOST --> There is only 1 central registry for the time being.
CE_HOST=umfs02.$MY_DOMAIN
RB_HOST=my-rb.$MY_DOMAIN
WMS_HOST=my-wms.$MY_DOMAIN
PX_HOST=my-px.$MY_DOMAIN
BDII_HOST=my-bdii.$MY_DOMAIN
MON_HOST=my-mon.$MY_DOMAIN
FTS_HOST=my-fts.$MY_DOMAIN
REG_HOST=lcgic01.gridpp.rl.ac.uk

# VO-BOX - Set this if you are building a VO-BOX 
#VOBOX_HOST=my-vobox.$MY_DOMAIN
#VOBOX_PORT=1975

# Set this to "yes" your site provides an X509toKERBEROS Authentication Server 
# Only for sites with Experiment Software Area under AFS 
GSSKLOG=no
GSSKLOG_SERVER=my-gssklog.$MY_DOMAIN

# LFC - Set these if you are installing an LFC
#LFC_HOST=my-lfc.$MY_DOMAIN
#LFC_DB_PASSWORD="lfc_password"

# These are set to default to using the standard database on the same hosts
# as the LFC daemon is on
#LFC_DB_HOST=$LFC_HOST
#LFC_DB=cns_db

# If you use a DNS alias in front of your LFC, specify it here
#LFC_HOST_ALIAS=""

# All catalogues are local unless you add a VO to 
# LFC_CENTRAL, in which case that will be central
#LFC_CENTRAL=""

# If you want to limit the VOs your LFC serves, add the locals here
#LFC_LOCAL=""

# TORQUE - Change this if your torque server is not on the CE
# it's ingored for other batch systems
#TORQUE_SERVER=$CE_HOST

# These variables tell YAIM where to find additional configuration files.
WN_LIST=/afs/atlas.umich.edu/opt/localDQ2LCG/LCG/glite/yaim/etc/wn-list.conf
USERS_CONF=/afs/atlas.umich.edu/opt/localDQ2LCG/LCG/glite/yaim/etc/users.conf
GROUPS_CONF=/afs/atlas.umich.edu/opt/localDQ2LCG/LCG/glite/yaim/etc/groups.conf
FUNCTIONS_DIR=/afs/atlas.umich.edu/opt/localDQ2LCG/LCG/glite/yaim/functions
YAIM_VERSION=3.0.0-3

# Repository settings 
LCG_REPOSITORY="'rpm http://glitesoft.cern.ch/EGEE/gLite/APT/R3.0/ rhel30 externals Release3.0 updates'"
CA_REPOSITORY="rpm http://linuxsoft.cern.ch/ LCG-CAs/current production"
REPOSITORY_TYPE="yum"  #"apt" # or "yum"

# For the relocatable (tarball) distribution, ensure
# that INSTALL_ROOT is set correctly
#
INSTALL_ROOT=/afs/atlas.umich.edu/opt/localDQ2LCG/LCG
#INSTALL_ROOT=/opt

# You will probably want to change these too for the relocatable dist
OUTPUT_STORAGE=/tmp
#OUTPUT_STORAGE=/tmp/jobOutput
JAVA_LOCATION="/afs/atlas.umich.edu/opt/java/j2sdk1.4.2_13"
#  "/usr/java/j2re-1.4.2_06"
#JAVA_LOCATION="/usr/java/j2sdk1.4.2_08"

# Set this to '/dev/null' or some other dir if you want
# to turn off yaim installation of cron jobs
CRON_DIR=/dev/null
#CRON_DIR=/etc/cron.d

# Set this to your prefered and firewall allowed port range
GLOBUS_TCP_PORT_RANGE="20000 25000"

# Choose a good password ! And be sure that this file cannot be read by
# any grid job !
MYSQL_PASSWORD=set_this_to_a_good_password
APEL_DB_PASSWORD="APELDB_PWD"


# GRID_TRUSTED_BROKERS: DNs of services (RBs) allowed to renew/retrives 
# credentials from/at the myproxy server. Put single quotes around each trusted DN !!! 

GRID_TRUSTED_BROKERS=" "
#'broker one'
#'broker two'
#"

# The RB now uses the DLI by default; set VOs here which should use RLS
RB_RLS="" # "atlas cms"

# Space separated list of ldap servers in edg-mkgridmap.conf which authenticate users.
# Ex.: GRIDMAP_AUTH="ldap://lcg-registrar.cern.ch/ou=users,o=registrar,dc=lcg,dc=org ldap://xyz"
GRIDMAP_AUTH="ldap://lcg-registrar.cern.ch/ou=users,o=registrar,dc=lcg,dc=org"

# GridIce server host name (usually run on the MON node).
GRIDICE_SERVER_HOST=$MON_HOST

# Site-wide settings 
SITE_EMAIL=ball@umich.edu
SITE_NAME=UMATLAS
SITE_LOC="Ann ARbor, USA"
SITE_LAT=45.0 # -90 to 90 degrees
SITE_LONG=75.0 # -180 to 180 degrees
SITE_WEB="https://umopt1.grid.umich.edu/wordpress"
SITE_TIER="TIER 2"
SITE_SUPPORT_SITE="www.umich.edu"

##### The balance of the template file beyond this point remains un-modified #####

Now, install LCG:
  • ./glite/yaim/scripts/configure_node ./site-info.def TAR_UI
A bug exists in srmcp. This should be fixed now, as indicated by the following diff output.
     edits to /public/LCG/d-cache/srm/sbin/srm
         161c162
         <     SRM_CONFIG_PARENT=dirname $SRM_CONFIG
         ---
         >     SRM_CONFIG_PARENT=`dirname $SRM_CONFIG`

Now, nearly finished, install the dq2 commands by following the directions at https://twiki.cern.ch/twiki/bin/view/Atlas/UsingDQ2#Installation These are installed in a directory parallel to the LCG directory created above
  • cd /afs/atlas.umich.edu/opt/localDQ2LCG
  • mkdir dq2_enduser
  • cd dq2_enduser
A localized setup script must be created to go along with this, based on the .CERN and .BNL examples copied in here. This script will reference the java installation above, and also set the actual copy command to be used. I have not been able to get srmcp to work, so instead we set an alternate command given by
  • export DQ2_COPY_COMMAND='lcg-cp -v --vo atlas'
The complete setup.sh.UM and setup.csh.UM are shown here.
----------------------------- setup.sh.UM --------------------------------
# DQ2 server 
export DQ2_URL_SERVER='http://atlddmpro.cern.ch:8000/dq2/'
export DQ2_URL_SERVER_SSL=https://atlddmpro.cern.ch:8443/dq2/


# local site ID
#
# e.g., for CERN
# export DQ2_LOCAL_ID=CERN
#
# if your site doesn't deploy a DQ2 site service
# export DQ2_LOCAL_ID=

export DQ2_LOCAL_ID=


# access protocol to local storage
#
# for CASTOR
# export DQ2_LOCAL_PROTOCOL=rfio
#
# for dCache
# export DQ2_LOCAL_PROTOCOL=dcap
#
# for normal disk storage
# export DQ2_LOCAL_PROTOCOL=unix

export DQ2_LOCAL_PROTOCOL=unix


# root directory of local storage.
#
# e.g.,
# export DQ2_STORAGE_ROOT=/castor
# export DQ2_STORAGE_ROOT=/pnfs
#
# if you don't have special mount point for storage
# export DQ2_STORAGE_ROOT=''

export DQ2_STORAGE_ROOT=''


# local SRM host
# 
# e.g.
# export DQ2_SRM_HOST=srm://castorgrid.cern.ch:8443
# 
# if your site doesn't deploy an SRM server
# export DQ2_SRM_HOST=''

export DQ2_SRM_HOST=''


# local GSIFTP host
#
# e.g.
# export DQ2_GSIFTP_HOST=gsiftp://castorgrid.cern.ch:2811
# 
# if your site doesn't deploy a GSIFTP server
# export DQ2_GSIFTP_HOST=''

export DQ2_GSIFTP_HOST=''

export DQ2_COPY_COMMAND='lcg-cp -v --vo atlas'

# LFC
export LCG_CATALOG_TYPE=lfc
export DQ2_LFC_HOME=/grid/atlas

# java
export JAVA_HOME=/afs/atlas.umich.edu/opt/java/j2sdk1.4.2_13

if [ $?JAVA_HOME ] ; then
        export PATH=$JAVA_HOME/bin:$PATH
fi



# PATH
export PATH=/afs/atlas.umich.edu/opt/localDQ2LCG/dq2_enduser:$PATH
#export PATH=/afs/usatlas.bnl.gov/Grid/Don-Quijote/dq2_user_client:$PATH


# prevent the wild-card expansion
_dq2_ls_helper () {
  unalias dq2_ls 
  dq2_ls $*
  set +f
  alias dq2_ls='set -f; _dq2_ls_helper'
}
alias dq2_ls='set -f; _dq2_ls_helper'

_dq2_cr_helper () {
  unalias dq2_cr 
  dq2_cr $*
  set +f
  alias dq2_cr='set -f; _dq2_cr_helper'
}
alias dq2_cr='set -f; _dq2_cr_helper'

_dq2_get_helper () {
  unalias dq2_get 
  dq2_get $*
  set +f
  alias dq2_get='set -f; _dq2_get_helper'
}
alias dq2_get='set -f; _dq2_get_helper'


----------------------------- setup.csh.UM -------------------------------
if (! $?LCG_LOCATION ) then
        echo 'ERROR : setup Grid first!'
        exit
endif

# DQ2 server 
setenv DQ2_URL_SERVER 'http://atlddmpro.cern.ch:8000/dq2/'
setenv DQ2_URL_SERVER_SSL https://atlddmpro.cern.ch:8443/dq2/

# local site ID
setenv DQ2_LOCAL_ID ""

# access protocol to local storage
setenv DQ2_LOCAL_PROTOCOL unix

# root directory of local storage
setenv DQ2_STORAGE_ROOT ""

# local SRM host
setenv DQ2_SRM_HOST ""

# local GSIFTP host
setenv DQ2_GSIFTP_HOST ""

# use SRM for all data transfer (True or False)
setenv DQ2_USE_SRM True

# LFC
setenv LCG_CATALOG_TYPE lfc
setenv DQ2_LFC_HOME /grid/atlas

setenv DQ2_COPY_COMMAND 'lcg-cp -v --vo atlas'

# setup dq2_*
setenv PATH /afs/atlas.umich.edu/opt/localDQ2LCG/dq2_enduser:$PATH

# setup python 2.4
#setenv PATH /afs/usatlas.bnl.gov/cernsw/lcg/external/Python/2.4.2/slc3_ia32_gcc323/bin:$PATH
#setenv LD_LIBRARY_PATH /afs/usatlas.bnl.gov/cernsw/lcg/external/Python/2.4.2/slc3_ia32_gcc323/lib:$LD_LIBRARY_PATH

setenv JAVA_HOME /afs/atlas.umich.edu/opt/java/j2sdk1.4.2_13

if ( $?JAVA_HOME ) then
        setenv PATH $JAVA_HOME/bin:$PATH
endif

# prevent the wild-card expansion
alias dq2_ls 'set noglob; \dq2_ls \!*; unset noglob'
alias dq2_cr 'set noglob; \dq2_cr \!*; unset noglob'
alias dq2_get 'set noglob; \dq2_get \!*; unset noglob'

Mounting afs volumes as read-write

cd /afs/atlas.umich.edu
fs lsmount opt
# If shows as #opt, then it is ro, otherwise skip these steps
fs rmmount /afs/.atlas.umich.edu/opt
fs mkmount /afs/.atlas.umich.edu/opt opt -rw
vos release root.cell
fs checkvolumes

# Moving on, opt.localDQ2LCG is mounted at localDQ2LCG.  Make it rw as well
cd opt
fs lsmount localDQ2LCG
# If shows as #opt.localDQ2LCG, then it is ro, otherwise skip these steps
fs rmmount /afs/atlas.umich.edu/opt/localDQ2LCG
fs mkmount /afs/atlas.umich.edu/opt/localDQ2LCG opt.localDQ2LCG -rw
vos release opt.localDQ2LCG
fs checkvolumes

Mounting afs volumes as read-only

# Reverse order, opt.localDQ2LCG is mounted at localDQ2LCG.  Make it ro first
cd opt
fs lsmount localDQ2LCG
# If shows as %opt.localDQ2LCG, then it is rw, otherwise skip these steps
fs rmmount /afs/atlas.umich.edu/opt/localDQ2LCG
fs mkmount /afs/atlas.umich.edu/opt/localDQ2LCG opt.localDQ2LCG
vos release opt.localDQ2LCG
fs checkvolumes

# Now do the parent opt directory
cd /afs/atlas.umich.edu
fs lsmount opt
# If shows as %opt, then it is rw, otherwise skip these steps
vos release opt
fs rmmount /afs/.atlas.umich.edu/opt
fs mkmount /afs/.atlas.umich.edu/opt opt
vos release root.cell
fs checkvolumes

-- BobBall - 09 Jan 2007
Topic revision: r29 - 21 Feb 2014, BobBall
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback