Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| public:grid:srmcp_pipes [2011-02-01 19:49] – created Adriaan Renting | public:grid:srmcp_pipes [2017-03-08 15:27] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ===== Problem ===== | ===== Problem ===== | ||
| + | Entire subdirectories cannot be recursively copied over to the grid with the tools currently installed on the lexar (2011-1-1). | ||
| ===== Solution ===== | ===== Solution ===== | ||
| - | The solution | + | The solution |
| - | | + | For speed, we would like to do this tar on the machine that holds the original data (an lse node), and send this tar file through a lexar to the grid light path, without touching the (relatively slow) lexar disk. |
| + | |||
| + | To write to the Grid, use globus-url-copy, | ||
| + | |||
| + | # To store to the Grid one need to use globus-url-copy | ||
| + | # which does not do a seek() in the stream | ||
| + | set GSIFTPCP=" | ||
| + | set SRMSSH=" | ||
| + | |||
| + | # Our data directory on the Grid: | ||
| + | set GSIFTPDIR=gsiftp:// | ||
| + | |||
| + | # In this case, read OBSID from the script input | ||
| + | set OBSID=$1 | ||
| + | set FILE=/ | ||
| + | |||
| + | # Tar data dir (named $OBSID), pipe to ssh and make named pipe on lexar | ||
| + | tar -cp ${OBSID} | ${SRMSSH} " | ||
| + | # wait 2 sec, then start transfer | ||
| + | sleep 2 | ||
| + | ${SRMSSH} " | ||
| + | |||
| + | To read back from the Grid one can use the same as below but inverted, or use srmcp: output to the named pipe and untar. | ||
| + | |||