Torque not honoring $usecp to copy output files


Issue:

I've got $usecp defined in the mom config file, but Torque is still using scp to copy output files to the directory I submitted from.

Explanation:

The first path you give it tells Torque to look for jobs submitted from that directory and the second half tells it where to put those files. There are also implicit references to user names in those directories.

Let's examine the following config line as an example:
$usecp *:/home/ /usr/local/data/

The asterisk tells Torque to use this template for jobs from any host. The '/home/' says that it should copy the output files for jobs submitted from '/home/<username>/'. And '/usr/loca/data/' tells it to put the output file(s) in the nfs share mounted at that location. If there's a folder for the user in that share it will put the output in that user's folder.

When you run momctl -d3 it still shows 'Copy Command: /usr/bin/scp -rpB'. This is because it will still use scp to copy files that weren't submitted from a directory that you specify with the $usecp parameter. For example, if you submit a job from /tmp/ Torque will still attempt to copy the output file to that directory with scp.

Tags: copy, nfs, output, secure, usecp
Last update:
2015-08-31 23:48
Author:
Ben Roberts
Revision:
1.0
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Records in this category

Tags