Skip to content
Snippets Groups Projects
Commit 359b37cc authored by Julien Leduc's avatar Julien Leduc
Browse files

as the prepare is now synchronous using 4 processes and xargs to trigger it fast enough for mhvtl.

parent f0bdd685
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
NB_PROCS=4
EOSINSTANCE=ctaeos
EOS_DIR=/eos/ctaeos/cta/$(uuidgen)
......@@ -66,9 +67,11 @@ echo "###"
echo "Trigerring EOS retrieve workflow as poweruser1:powerusers (12001:1200)"
for TEST_FILE_NAME in $(grep tapeonly$ ${STATUS_FILE} | sed -e 's/ .*$//'); do
XrdSecPROTOCOL=sss xrdfs ${EOSINSTANCE} prepare -s "${EOS_DIR}/${TEST_FILE_NAME}?eos.ruid=12001&eos.rgid=1200" || echo "Could not trigger retrieve for ${EOS_DIR}/${TEST_FILE_NAME}"
done
#for TEST_FILE_NAME in $(grep tapeonly$ ${STATUS_FILE} | sed -e 's/ .*$//'); do
# XrdSecPROTOCOL=sss xrdfs ${EOSINSTANCE} prepare -s "${EOS_DIR}/${TEST_FILE_NAME}?eos.ruid=12001&eos.rgid=1200" || echo "Could not trigger retrieve for ${EOS_DIR}/${TEST_FILE_NAME}"
#done
grep tapeonly$ ${STATUS_FILE} | sed -e 's/ .*$//' | XrdSecPROTOCOL=sss xargs --max-procs=${NB_PROCS} -iTEST_FILE_NAME xrdfs ${EOSINSTANCE} prepare -s "${EOS_DIR}/TEST_FILE_NAME?eos.ruid=12001&eos.rgid=1200"
# Wait for the copy to appear on disk
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment