From d4716a0ff3ad4d8ddda0a9fc6cbf36dcf8fd7c53 Mon Sep 17 00:00:00 2001 From: John-Paul Robinson <jpr@uab.edu> Date: Fri, 2 Dec 2022 09:38:41 -0600 Subject: [PATCH] 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. --- run-mmpol.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/run-mmpol.sh b/run-mmpol.sh index e6e46b1..3bfa26d 100755 --- a/run-mmpol.sh +++ b/run-mmpol.sh @@ -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 -- GitLab