...
- To know if a file is on the disk, you can use lcg-ls [1921] command command with the option -l. For example:
lcg-ls -c 100 -v -l srm://storm-fe-archive.cr.cnaf.infn.it:8444/pamela/data/file
The output will be something like this:SE type: SRMv2
-rw-rw-rw- 1 2 2 681491712 ONLINE_AND_NEARLINE /pamela/data/file […]
In output of the command, next to the file, there will be its status.ONLINE_AND_NEARLINE
means the file is present both on disk and tape, whileNEARLINE
means it is only on tape.
NB: for SL7 “lcg-utils
” and so “lcg-ls
” are deprecated - Another way to check where is a file is to use the following command (to be used with a valid VOMS Proxy):
clientSRM ls -l -v NIG -e <endpoint> -s <file-SURL>
Based on the information shown in the output, it is possible to locate the file:
- "retentionPolicyInfo=(2,0)
" : on tape
- "retentionPolicyInfo=(0,0)
" : only on disk
Example:# file on TAPE:
clientSRM ls -l -v NIG -e httpg://storm-fe-archive.cr.cnaf.infn.it:8444/ -s srm://storm-fe-archive.cr.cnaf.infn.it:8444/icarus/test-srm
[...]
[0] retentionPolicyInfo=(2,0)
[...]
#file only on DISK:
clientSRM ls -l -v NIG -e httpg://storm-fe-archive.cr.cnaf.infn.it:8444/ -s srm://storm-fe-archive.cr.cnaf.infn.it:8444/icarusdata/std.err
[...]
[0] retentionPolicyInfo=(0,0)
[...]
- Using "
gfal-xattr
" command as following:gfal-xattr <file-SURL>
NB:gfal-xattr
ALWAYS recall a file! This is a bug of the command that will be fixed by the gfal utils developers.
...