User Tools

Site Tools


asc:workbook_grid

Differences

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

Link to this comparison view

Next revision
Previous revision
asc:workbook_grid [2013/05/30 18:53]
127.0.0.1 external edit
asc:workbook_grid [2023/10/04 19:04] (current)
asc
Line 16: Line 16:
 <code bash setup.sh> <code bash setup.sh>
 #!/bin/bash #!/bin/bash
-export AVERS=17.0.4 +export ALRB_localConfigDir="/share/sl6/cvmfs/localConfig"
-export TEST_AREA=$HOME/testarea+
 export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
 source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh
-asetup --release=$AVERS --testarea=$TEST_AREA+localSetupDQ2Client  --skipConfirm 
 +voms-proxy-init -voms atlas -valid 96:00
 </code> </code>
  
 Put it in a file "setup.sh" and then "source setup.sh". Put it in a file "setup.sh" and then "source setup.sh".
- 
-Then type: 
-<code> 
-localSetupDQ2Client 
-voms-proxy-init -voms atlas -valid 96:00 
-</code> 
  
 Say "yes" and type your password. Say "yes" and type your password.
Line 43: Line 37:
  
  
-Before starting using this, type: 
-<code> 
-voms-proxy-init -voms atlas  
-</code> 
  
-or using the standard (proxy for 3 days):+In this example, we use  the standard (proxy for 3 days):
 <code> <code>
 grid-proxy-init -valid  96:00  grid-proxy-init -valid  96:00 
Line 58: Line 48:
 voms-proxy-info -all  voms-proxy-info -all 
 </code> </code>
 +
 +If there is a problem run these commands to debug them:
 +
 +<code>
 +setupATLAS
 +diagnostics
 +gridCert
 +</code>
 +
  
 Then check the location of your data: Then check the location of your data:
Line 73: Line 72:
  
  
-====== Using Pathena and pbook, prun  commands ======+====== Using Pathena commands ======
  
 Do the setup as above then then type: Do the setup as above then then type:
Line 83: Line 82:
 The general ATLAS instructions for pathena can be found [[https://twiki.cern.ch/twiki/bin/view/Atlas/DAonPanda|here]].  The general ATLAS instructions for pathena can be found [[https://twiki.cern.ch/twiki/bin/view/Atlas/DAonPanda|here]]. 
  
 +Also look at:
 +[[https://twiki.atlas-canada.ca/bin/view/AtlasCanada/ATLASLocalRootBase#Using_PandaClient | Using_PandaClient]] how to setup Panda.
 +(attention: do not setup dq2-get together with panda!)
  
  
-====== Setting up Grid Certificates ======+===== Putting files on the grid ===== 
 +(thanks to Taylor for checking)
  
 +Setup Atlas release. For SL6, source this code:
  
-  * Request a DOE grid certificate using this site http://www.doegrids.org/pages/cert-request.html and list your Argonne collaborator when it asks for it (you must be using the same computer and browser you want to import the certificate on. Use IE or Firefox . +<code bash> 
-  * Once your request is approved, you'll be sent a link to retrieve your certificate. At the bottom of that page, there is a link to import your certificate +#!/bin/bash 
-  * Import your certificate and then you'll want to export it to a .p12 file. Follow the instructions on this page http://www.doegrids.org/pages/cert-request.html . You'll be asked to create a password for the certificate. DO NOT FORGET IT! +export AVERS=17.7.
-In Fuirefox, just go to "Preferences"-"Edit"-"Advanced"-"View Certificates". Click on most recent one (with expiration 1 year from the time when you have got email) and click "Backup". Type file name with the extension pt12. You'll be asked to create a password for the certificate. DO NOT FORGET IT! +export TEST_AREA=$HOME/testarea 
-  * If your on a Linux machine, you'll want to create a directory called <code>.globus</code> if you don't have it already and you'll need to move your certificate files. +export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase 
 +source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh 
 +asetup --release=$AVERS --cmtconfig=x86_64-slc6-gcc46-opt --testarea=$TEST_AREA 
 +localSetupDQ2Client  --skipConfirm 
 +voms-proxy-init -voms atlas -valid 96:00 
 +localSetupPandaClient --noAthenaCheck 
 +</code>
  
-The first time you need to use your certificate, you'll have to run these commands+Then put files (assumes MWT2_UC_SCRATCHDISK):
  
 <code> <code>
-  openssl pkcs12 -in  YourCert.p12 -clcerts -nokeys -out $HOME/.globus/usercert.pem  +dq2-put --L MWT2_UC_SCRATCHDISK  -./<folder of files> user.<username>.<custom name>
-  openssl pkcs12 -in YourCert.p12 -nocerts -out $HOME/.globus/userkey.pem+
 </code> </code>
  
-You will be asked several times for the password. Use the same as that when you made backup copy.+ Create and register it before doing this:
  
-Then do:+You can also register it on the grid.
 <code> <code>
-chmod 600  $HOME/.globus/userkey.pem +dq2-register-dataset user.<name>.test1 
-chmod 644  $HOME/.globus/usercert.pem+dq2-register-location user.<name>.test1  MWT2_UC_SCRATCHDISK
 </code> </code>
  
-You can test that the certificate is working correctly by typing "grid-proxy-init". The command  "voms-proxy-init -voms atlas" will not work yet, since you have register again with VO ATLAS (even if you was already VO member - it seems DOE GRID re-registration resets your VO membership! (at least for me, S.C.)+====== Replicate data on the grid ======
  
  
-If you are already a member of ATLAS, then you just need to join the Virtual Organization. The instructions can be found here [[http://www.usatlas.bnl.gov/twiki/bin/view/Support/HowToAtlasVO]]. Note that even if you were a member and you need just renew this, this is totally different step from DOE grid certificate renewal.+Go to: https://rucio-ui.cern.ch/
  
-Follow the instructions on that page exactly. When you get to the set where it redirects you to https://lcg-voms.cern.ch:8443/vo/atlas/vomrs you should be using the same browser that you imported the DOE grid certificate or you'll need to import your certificate to the browser you want to use. You can check that it is setup correctly by looking in the bottom left corner and looking for your name.+Use your X509 certificate go login
  
-You will be a candidate until they approve you and then you'll need to go back to [[https://lcg-voms.cern.ch:8443/vo/atlas/vomrs]] and complete the phase II registration. Again, follow the instructions on this page [[http://www.usatlas.bnl.gov/twiki/bin/view/Support/HowToAtlasVO]] +(On top click) Data Transfer (R2D2) > Request new rules > click “List of DIDS” > copy your dataset list to the box and click Search > in step 2 use "BNL-OSG2_SCRATCHDISK” or something that you have permission to write > in step 3 you can change lifetime, I suggest to put 365 > then continue and finish the procedure and it will tell you that your new rule is established or something similar.
  
-Your grid will work only when you will get the  email (usually takes 1-3 days): 
- 
-<code> 
-Dear VO Member, 
-The membership status has been changed from New to Approved due to the following reason: Approved for your VOMRS atlas account with primary certificate: 
-DN: /DC=org/DC=doegrids/OU=People/CN=Name   XXXXX 
-CA: /DC=org/DC=DOEGrids/OU=Certificate Authorities/CN=DOEGrids CA 1 
-Please contact VO administrator if you have any questions.  
-</code> 
  
  
asc/workbook_grid.1369940005.txt.gz · Last modified: 2013/10/23 15:27 (external edit)