EOS

  • Permissions on your personal area
    • eos chmod -r 750 /eos/atlas/user/l/login makes the directory readable by the whole ATLAS group, but not by other users
    • eos attr set user.acl="u::rx" /eos/atlas/user/l/login give access to any of your directories to specific users

  • Getting your quota on EOS:
    • eos quota | grep -A 4 "Quota Node: /eos/atlas/user/$" | head -5

  • How to list a directory in EOS:
    • eos ls [-l] /eos/atlas/user/l/lchen

  • Copy file to EOS:
    • xrdcp local.file root://eosatlas//eos/atlas/user/l/lchen/

  • Copy directory to EOS
    • xrdcp -f -R test/  root://eosatlas//eos/atlas/user/l/lchen/

  • Reading files from your EOS:
    • xrdcp root://eosatlas//eos/atlas/user/l/lchen/file.name .
    • TFile *file = TFile::Open("root://eosatlas//eos/atlas/user/[l]/[login]/file.name");

  • xrdcp will create automatically al non-existing directories specified in your path:
    • xrdcp local.file root://eosatlas//eos/atlas/user/[l]/[login]/dir1/dir2/dest_file

  • If you just need to create an empty directory, you can choose two options:
    • xrd eosatlas mkdir /eos/atlas/user/l/lchendir1/dir2/...
    • eos mkdir /eos/atlas/user/l/lchen/dir1/dir2/...

  • Deleting files and directories on EOS
    • Delete files: eos rm /eos/atlas/.../filename
    • Delete directories eos rm -r /eos/atlas/.../directory_to_remove

  • Don't use mv (move) on eos
      "Moving" files or directories on EOS is NOT supported.
      You can copy from one plece to another, you can delete but you cannot move.
      This is like this by design: moving would imply an actual recalculation of the accounting
      (which is based on paths in EOS) and this would crash the system.

  • Go to EOS:
      [lxplus439] /afs/cern.ch/user/l/lchen/Dilep_cutflow/mySrc > eos
      EOS Console [root://eosatlas.cern.ch] |/> cd /eos/atlas/user/l/lchen
      EOS Console [root://eosatlas.cern.ch] |/eos/atlas/user/l/lchen/> ls
      data11_7TeV.00180710.physics_Egamma_E
      mc10_7TeV.105200.T1_McAtNlo_Jimmy.merge.NTUP_TOP.e598_s933_s946_r2302_r2300_p572
      EOS Console [root://eosatlas.cern.ch] |/eos/atlas/user/l/lchen/> .q

  • mount EOS
      You can also mount EOS on your filesystem and copy there with xrdcp or 
      dq2-get (writing on a mounted filesystem is somewhat slower than xrdcp 
      on a remote server, but for small datasets it's really handy):
      [gnegri@lxplus310 ~] mkdir eos
      [gnegri@lxplus310 ~] eosmount eos
      [...]
      [gnegri@lxplus310 ~] dq2-get -H eos/atlas/user/l/lchen/dest_dir/<dataset_name>
      Like this, you don't have to care wher your dataset is on the grid (dq2-get will care for you).

  • EOS help: eos help
Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2012-12-10 - WilliamLockman
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback