Confluence will be down for maintenance June 14 2024 at 6AM PT.
...
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
|
...
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 | ||||
---|---|---|---|---|
| ||||
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
|
...
Code Block |
---|
ScaRunOnHosts -f glast -e -r -- SrvMigrateFiles.sh -b [-r] [-e]
|
...
Mark file on server as migratable (Linux):
Code Block |
---|
frm_admin mark -m /glast/Data/..... |
Run migration
Code Block |
---|
SrvMigrateFiles.sh <file-list>
|
...