CoEPP RC
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
cloud:image_cernvm_2.5.1 [2013/07/19 16:56]
joannah [CVMFS Configuration]
cloud:image_cernvm_2.5.1 [2013/07/25 15:23]
scrosby
Line 90: Line 90:
  
 ==== format_mount_vdb ==== ==== format_mount_vdb ====
 +<WRAP center round important 60%>
 +We don't use this anymore as Openstack provides a formatted drive already, with the label "​ephemeral0"​. We just add a line in /etc/fstab to mount LABEL=ephemeral0 to /scratch
 +</​WRAP>​
   * This script is to format and mount the on-instance/​secondary/​ephemeral storage of the 30 GB (per CPU core) disk.   * This script is to format and mount the on-instance/​secondary/​ephemeral storage of the 30 GB (per CPU core) disk.
   * Create an init script /​mnt/​etc/​init.d/​format_mount_vdb:​ <code bash>   * Create an init script /​mnt/​etc/​init.d/​format_mount_vdb:​ <code bash>
Line 322: Line 325:
 $ exit $ exit
 </​code>​ </​code>​
-  * Fix it with the following command. This will make a hardlink from /​usr/​local/​bin/​python ​--> ​/usr/bin/python (replacing the old hardlink). <​code ​bash+ 
-$ chroot ​/mnt +==== New way of dealing ​with multiple Python versions ==== 
-$ ln -f /​usr/​bin/​python /​usr/​local/​bin/​python + 
-python ​-V +The only script which references ​/​usr/​local/​bin/​python ​is /usr/local/bin/contexthelperSo I did this to make sure contexthelper could still run 
-Python 2.4.3 + 
-$ exit+<​code>​ 
 +rm /usr/​local/​bin/​python 
 +cp /​usr/​bin/​python /​usr/​local/​bin/​python-cs 
 +vi /​usr/​local/​bin/​contexthelper 
 +     
 +   ​Change:​ 
 +    
 +   #​!/​usr/​local/​bin/​python 
 +   ​ 
 +   To: 
 +    
 +   #​!/​usr/​local/​bin/​python-cs
 </​code>​ </​code>​
 +
 +
  
 ===== CVMFS Configuration ===== ===== CVMFS Configuration =====
Line 334: Line 350:
 $ vi /​mnt/​etc/​cvmfs/​default.local $ vi /​mnt/​etc/​cvmfs/​default.local
 CVMFS_REPOSITORIES=atlas.cern.ch,​atlas-condb.cern.ch,​grid.cern.ch CVMFS_REPOSITORIES=atlas.cern.ch,​atlas-condb.cern.ch,​grid.cern.ch
-CVMFS_QUOTA_LIMIT=3000+CVMFS_QUOTA_LIMIT=20000
 CVMFS_HTTP_PROXY="​http://​rcsquid1.atlas.unimelb.edu.au:​3128|http://​rcsquid2.atlas.unimelb.edu.au:​3128;​http://​cernvm-webfs.atlas-canada.ca:​3128"​ CVMFS_HTTP_PROXY="​http://​rcsquid1.atlas.unimelb.edu.au:​3128|http://​rcsquid2.atlas.unimelb.edu.au:​3128;​http://​cernvm-webfs.atlas-canada.ca:​3128"​
 +CVMFS_CACHE_BASE=/​scratch/​cvmfs
 $ vi /​mnt/​etc/​cvmfs/​domain.d/​cern.ch.local $ vi /​mnt/​etc/​cvmfs/​domain.d/​cern.ch.local
 CVMFS_SERVER_URL="​http://​cvmfs.fnal.gov:​8000/​opt/​@org@;​http://​cvmfs.racf.bnl.gov:​8000/​opt/​@org@;​http://​cernvmfs.gridpp.rl.ac.uk:​8000/​opt/​@org@;​http://​cvmfs-stratum-one.cern.ch:​8000/​opt/​@org@"​ CVMFS_SERVER_URL="​http://​cvmfs.fnal.gov:​8000/​opt/​@org@;​http://​cvmfs.racf.bnl.gov:​8000/​opt/​@org@;​http://​cernvmfs.gridpp.rl.ac.uk:​8000/​opt/​@org@;​http://​cvmfs-stratum-one.cern.ch:​8000/​opt/​@org@"​
Line 416: Line 433:
 </​code>​ </​code>​
  
-===== Modify ​ATLAS_SITE_NAME in .bashrc ===== +===== Modify .bashrc ​for users ===== 
-  * Modify the file **.bashrc** under each atlas user's home directory (eg. /mnt/​home/​atlas01/​.bashrc); ​change the value of directive ​ATLAS_SITE_NAME ​from **FutureGrid** to **Australia-ATLAS**.+  * Modify the file **.bashrc** under each atlas user's home directory (eg. /​home/​atlas01/​.bashrc);​ 
 + 
 +<​code>​ 
 +# Workaround for condor not setting $HOME. 
 +# voms-proxy-info requires this. 
 +if [[ -z "​$HOME"​ ]] ; then 
 +  export HOME=/​home/​`whoami` 
 +fi 
 + 
 +## Set up grid environment:​ 
 +## Option 1: gLite 3.1 in CernVM 
 +#. /​opt/​external/​etc/​profile.d/​grid-env.sh 
 +## Option 2: gLite 3.2 in AtlasLocalRootBase 
 +shopt -s expand_aliases 
 +export ATLAS_LOCAL_ROOT_BASE=/​cvmfs/​atlas.cern.ch/​repo/​ATLASLocalRootBase 
 +alias setupATLAS='​source ${ATLAS_LOCAL_ROOT_BASE}/​user/​atlasLocalSetup.sh'​ 
 +setupATLAS --quiet 
 +localSetupEmi 
 +# Fix for using AtlasLocalRootBase with a kit 
 +unset  AtlasSetupSite 
 +rm ~/.asetup 
 + 
 +# Site-specific variables (e.g. Frontier and Squid servers) 
 +# are set based on ATLAS_SITE_NAME
 +export ATLAS_SITE_NAME=Australia-NECTAR 
 +# This auto-setup is only temporarily needed, and will soon become automatic 
 +/​cvmfs/​atlas.cern.ch/​repo/​sw/​local/​bin/​auto-setup 
 +</​code>​ 
 + 
 +   * Major changes are the ATLAS_SITE_NAME,​ and the change to localSetupEmi instead of localSetupGlite
  
  
cloud/image_cernvm_2.5.1.txt · Last modified: 2013/07/25 15:31 by scrosby
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki