<div dir="ltr"><div>Hi Richard,</div><div><br></div>Either add something like &quot;-L 2&quot; to your mmapplypolicy command or add an &#39;EXEC ...&#39; to your policy file to have it print out the actual files that matched. There is an example exec script somewhere in the samples folder<div><br></div><div>I have found that in the past when I doubted the policy results, there was something I misunderstood. So just go ahead and examine the metadata on the actual files that match.</div><div><br></div><div>Perhaps at some point in the past, you had some kind of application scan through the filesystem and thus all the access times got updated to newer than you expect.</div><div><br></div><div>For the file count/size numbers, I don&#39;t find that unusual; there are all kinds of user applications that have pathological patterns like 450k files totaling 11MB.  But worth double-checking.  You can run some example policies like the one you ran, but list only &gt;10TB files or list only files of 0 size; you never know what you might find.</div><div><br></div><div>Regards,</div><div>Alex</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 1, 2017 at 8:57 AM, Sobey, Richard A <span dir="ltr">&lt;<a href="mailto:r.sobey@imperial.ac.uk" target="_blank">r.sobey@imperial.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="m_371190213704801388WordSection1">
<p class="MsoNormal">Hi all,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I\u2019m getting some strange results using a policy to list all the files (well, I\u2019m only interested in the total size that GPFS chooses) that have not been accessed for more than 1/2/3 etc years.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The policy rule I\u2019m using is:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">RULE &#39;list_old&#39; LIST &#39;atime_gt_730&#39;<u></u><u></u></p>
<p class="MsoNormal">WHERE DAYS(CURRENT_TIMESTAMP) -DAYS(ACCESS_TIME) &gt; 730<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">..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:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[I] Summary of Rule Applicability and File Choices:<u></u><u></u></p>
<p class="MsoNormal">Rule#      Hit_Cnt          KB_Hit          Chosen       KB_Chosen          KB_Ill     Rule<u></u><u></u></p>
<p class="MsoNormal">     0       453765           11776          453765           11776               0     RULE &#39;list_old&#39; LIST &#39;atime_gt_730&#39; WHERE(.)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I\u2019m having a hard time believing half a million files total 11MB especially given the very random spread of usage the system sees.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The mmapplypolicy command I\u2019m running is:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">/usr/lpp/mmfs/bin/<wbr>mmapplypolicy /gpfs/path -f /gpfs/policies/ -I defer --scope filesystem -P ./list_old_allfs.txt<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The directory \u2018path\u2019 above is the root of the main CES share which encompasses all my filesets.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Can anyone help?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal">Richard<u></u><u></u></p>
</font></span></div>
</div>

<br>______________________________<wbr>_________________<br>
gpfsug-discuss mailing list<br>
gpfsug-discuss at <a href="http://spectrumscale.org" rel="noreferrer" target="_blank">spectrumscale.org</a><br>
<a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" rel="noreferrer" target="_blank">http://gpfsug.org/mailman/<wbr>listinfo/gpfsug-discuss</a><br>
<br></blockquote></div><br></div>