On 01/02/2021 18:11, Jan-Frode Myklebust wrote:
CAUTION: This email originated outside the University. Check before
clicking links or attachments.
Agree.. Write a policy that takes a "mmapplypolicy -M var=val" argument,
and figure out the workdays outside of the policy. Something like:
# cat test.poilcy
define( access_age, (DAYS(CURRENT_TIMESTAMP) - DAYS(ACCESS_TIME)))
/* list migrated files */
RULE EXTERNAL LIST 'oldFiles' EXEC ''
RULE 'oldFiles' LIST 'oldFiles'
WHERE (access_age > MINAGE)
# mmapplypolicy gpfs01 -P test.policy -I defer -f ./filelist -M MINAGE=5
Why bother when you can do it all in the policy?
JAB.
--
Jonathan A. Buzzard Tel: +44141-5483420
HPC System Administrator, ARCHIE-WeSt.
University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss