public:grid:troubleshooting

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
public:grid:troubleshooting [2010-11-19 12:38] Marcel Loosepublic:grid:troubleshooting [2017-03-08 15:27] (current) – external edit 127.0.0.1
Line 40: Line 40:
  
  
 +== srmmkdir ==
 +The ''srmmkdir'' command is not symmetric. It is not possible to use it to create a directory on a local disk.
 +<code>
 +$ srmmkdir file:///`pwd`/foo/
 +Wed Nov 24 09:24:56 CET 2010: illegal source url for multiple sources modefile:////home/lfrsgm01/foo/
 +srm client error:
 +java.lang.IllegalArgumentException: illegal source url for multiple sources modefile:////home/lfrsgm01/foo/
 +</code>
 +This is unfortunate, because it makes testing of scripts on a local system more difficult. Simply changing the URI from ''%%srm://%%'' to ''%%file:///%%'' doesn't work.
 +
 +
 +== srmls ==
 +The ''srmls'' command does not support wildcards. This is quite irritating, because you have to do the filtering on the client side using ''grep''. For example, to get a list of all the ''L2009_*.tar'' files in the directory ''/data/lofar/lotest/disk/'', you would have to use:
 +<code>
 +$ srmls srm://srm.grid.sara.nl:8443/pnfs/grid.sara.nl/data/lofar/lotest/disk/ | grep '/L2009_[^/]*\.tar'
 +</code>
 +This, however, will not always give you a complete list, because storage systems like dCache limit the number of listed files to 1000. So, if you have more than 1000 files in a directory, you'll have to use ''srmls'' multiple times in conjunction with the options ''-offset='' and ''-count=''. Very inconvenient!
  
  • Last modified: 2010-11-19 12:38
  • by Marcel Loose