[gpfsug-discuss] gpfsug-discuss Digest, Vol 108, Issue 18
Jonathan Buzzard
jonathan.buzzard at strath.ac.uk
Mon Feb 1 20:17:34 GMT 2021
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
More information about the gpfsug-discuss
mailing list