Skip to content
Snippets Groups Projects
Commit d4716a0f authored by John-Paul Robinson's avatar John-Paul Robinson
Browse files

Update mmapplypolicy to use defer mode with list policies

The defer option with a list generates the list file outputs
according to the format described here:

https://www.ibm.com/docs/en/spectrum-scale/4.2.0?topic=pools-file-list-format

The file and ouput args control the location of the resulting file.
parent 6f9e26a5
No related branches found
No related tags found
1 merge request!2Feat parsable file names
......@@ -19,13 +19,15 @@ DATESTR=`date +'%Y-%m-%d-%H:%M:%S'`
policy=`basename $policyfile`
filetag="${policy}_slurm-${SLURM_JOBID}_${DATESTR}"
cmd="mmapplypolicy ${filesystem} -I yes \
cmd="mmapplypolicy ${filesystem} -I defer \
-P $policyfile \
-g $tmpglobal \
-s $tmpscratch \
-f ${DIR}/list-${SLURM_JOBID} \
-M FILEPATH=${filesystem} \
-M JOBID=${SLURM_JOBID} \
-N ${nodes} -n ${cores}"
-M LIST_OUTPUT_FILE=${OUTFILE:-/tmp/gpfs-list-policy}
-N ${nodes} -n ${cores} -m ${cores}"
# report final command in job log
echo $cmd
......
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