Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The xrootd tools used by FGST are in the release directory of the glastdat user. Sourcing the wk_env script will set the PATH to a release bin directory and set the PYTHONPATH for the python packages.

Code Block

 % cd /u/gl/glastdat/releases/current/
 % . bin/wk_env

Running commands

...

remotely on servers

The ScaRunOnHosts script will take a list of FGST xrootd servers and a command. It will ssh to all of the servers in the list and execute the command directly on the server. The basic usage is:

Code Block

  % ScaRunOnHosts -s wain018,wain034 -r -e -- <command>
  % ScaRunOnHosts -f glast -r -e -- <command>

...

Code Block
titleUsage SrvPurgeFiles.sh
borderStylesolid

  SrvPurgeFiles.sh [options] pass

  options:
    -l   write output to log file
    -n   number of files to purge
    -T   test, print only command and exit
 
    pass: P202 | P300

Example:

Code Block

  % cd /u/gl/glastdat/releases/current
  % . bin/wk_env  
  % ScaRunOnHosts -f glast -r -e -- SrvPurgeFiles.sh -l P202
  % ScaRunOnHosts -f glast -r -e -- SrvPurgeFiles.sh -l P300

...

Migrate files using the daily file lists

Code Block

ScaRunOnHosts -f glast -e -r -- SrvMigrateFiles.sh -b [-r] [-e]

...

  1. Create a file, <file-list>, with filenames that need to be remigrated (/glast/....)
  2. Mark file on server as migratable (Linux):

    Code Block
     frm_admin mark -m /glast/Data/..... 
  3. Run migration

    Code Block
    
    SrvMigrateFiles.sh  <file-list>
    

...