You don't specify a choice algorithm? Might want to change your script with a quick thing like this to view all the candidates. I use a similar 120day and I've looked at atime/ctimes of them before and was happy with the output. You can then quickly size the output with a quick sed/awk/whatever. SHOW (varchar(file_size) || ' ' || varchar(USER_ID)) WHERE DAYS(CURRENT_TIMESTAMP) - DAYS(ACCESS_TIME) >= 180 and add "--choice-algorithm exact" to the command line to see what files match. I can't recall what the default is. Might already be exact? Oops, man pages says yes. Might then run all 3 and see if the output is much different. Ed On Fri, 1 Dec 2017 16:57:46 +0000 "Sobey, Richard A" <r.sobey@imperial.ac.uk> wrote:
Hi all,
I'm getting some strange results using a policy to list all the files (well, I'm only interested in the total size that GPFS chooses) that have not been accessed for more than 1/2/3 etc years.
The policy rule I'm using is:
RULE 'list_old' LIST 'atime_gt_730' WHERE DAYS(CURRENT_TIMESTAMP) -DAYS(ACCESS_TIME) > 730
..for anything over 2 years. My filesystem is 3.5 years old and we first started migrating to it about three years ago, yet although GPFS is choosing ~400000 files that match, the total size is just north of 11000KB:
[I] Summary of Rule Applicability and File Choices: Rule# Hit_Cnt KB_Hit Chosen KB_Chosen KB_Ill Rule 0 453765 11776 453765 11776 0 RULE 'list_old' LIST 'atime_gt_730' WHERE(.)
I'm having a hard time believing half a million files total 11MB especially given the very random spread of usage the system sees.
The mmapplypolicy command I'm running is:
/usr/lpp/mmfs/bin/mmapplypolicy /gpfs/path -f /gpfs/policies/ -I defer --scope filesystem -P ./list_old_allfs.txt
The directory 'path' above is the root of the main CES share which encompasses all my filesets.
This is my first real foray into using the policy engine so I might be doing something silly, or misinterpreting the results, or there is simply a far easier way to achieve my goal.
Can anyone help?
Thanks Richard
-- Ed Wahl Ohio Supercomputer Center 614-292-9302
