<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I have an observation, which may merely serve to show my ignorance:<div class="">&nbsp;Is it significant that the words "EXTERNAL EXEC/script\u201d are seen below? &nbsp;</div><div class="">If migrating between storage pools within the cluster, I would expect the PIT engine to do the migration.</div><div class="">When doing HSM (off cluster, tape libraries, etc) is where I would expect to need a script to actually do the work.</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">[I] 2017-04-18@09:06:51.124 Policy execution. 1620263 files dispatched.<div class=""><div class="">[I] A total of 1620263 files have been migrated, deleted or processed by an EXTERNAL EXEC/script;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; 0 'skipped' files and/or errors.</div></div></blockquote><div class=""><div class=""><br class=""></div><div class="">\u2014 ddj</div><div class="">Dave Johnson</div><div class="">Brown University&nbsp;</div><div class=""><br class=""></div></div><div><blockquote type="cite" class=""><div class="">On Apr 18, 2017, at 11:11 AM, Marc A Kaplan &lt;<a href="mailto:makaplan@us.ibm.com" class="">makaplan@us.ibm.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><font size="2" face="sans-serif" class="">ANYONE else reading this saga? &nbsp;Who
uses mmapplypolicy to migrate files within multi-TB file systems? &nbsp;Problems?
Or all working as expected?</font><br class=""><br class=""><font size="2" face="sans-serif" class="">------</font><br class=""><br class=""><font size="2" face="sans-serif" class="">Well, again mmapplypolicy "thinks"
it has "chosen" 1.6 million files whose total size is 61 Terabytes
and migrating those will bring the occupancy of gpfs23capacity pool to
98% and then we're done.</font><br class=""><br class=""><font size="2" face="sans-serif" class="">So now I'm wondering where this is going
wrong. &nbsp;Is there some bug in the reckoning inside of mmapplypolicy
or somewhere else in GPFS?</font><br class=""><br class=""><font size="2" face="sans-serif" class="">Sure you can put in an PMR, and probably
should. &nbsp;I'm guessing whoever picks up the PMR will end up calling
or emailing me ... but maybe she can do some of the clerical work for us...
&nbsp;</font><br class=""><br class=""><font size="2" face="sans-serif" class="">While we're waiting for that... Here's
what I suggest next.</font><br class=""><br class=""><font size="2" face="sans-serif" class="">Add &nbsp;a clause ...</font><br class=""><br class=""><font size="2" face="sans-serif" class="">SHOW(varchar(KB_ALLOCATED) || ' n='
|| varchar(NLINK))</font><br class=""><br class=""><font size="2" face="sans-serif" class="">before the WHERE clause to each of your
rules.</font><br class=""><br class=""><font size="2" face="sans-serif" class="">Re-run the command with options &nbsp;'-I
test -L 2' &nbsp;and collect the output. &nbsp;</font><br class=""><br class=""><font size="2" face="sans-serif" class="">We're not actually going to move any
data, but we're going to look at the files and file sizes that are "chosen"...</font><br class=""><br class=""><font size="2" face="sans-serif" class="">You should see 1.6 million lines that
look kind of like this:</font><br class=""><br class=""><font size="2" face="sans-serif" class="">/yy/dat/bigC &nbsp; &nbsp; RULE 'msx'
MIGRATE FROM POOL 'system' TO POOL 'xtra' WEIGHT(inf) SHOW( 1024 n=1)</font><br class=""><br class=""><font size="2" face="sans-serif" class="">Run a script over the output to add
up all the SHOW() values in the lines that contain TO POOL 'gpfs23capacity'
and verify that they do indeed</font><br class=""><font size="2" face="sans-serif" class="">add up to 61TB... &nbsp;(The show is
in KB so the SHOW numbers should add up to 61 billion).<br class=""></font><br class=""><font size="2" face="sans-serif" class="">That sanity checks the policy arithmetic.
&nbsp;Let's assume that's okay. </font><br class=""><br class=""><font size="2" face="sans-serif" class="">Then the next question is whether the
individual numbers are correct... Zach Giles made a suggestion... which
I'll interpret as <br class="">find some of the biggest of those files and check that they really are
that big....</font><br class=""><br class=""><font size="2" face="sans-serif" class="">At this point, I really don't know,
but I'm guessing there's some discrepances in the reported KB_ALLOCATED
numbers for many of the files...</font><br class=""><font size="2" face="sans-serif" class="">and/or they are "illplaced"
&nbsp;- the data blocks aren't all in the pool FROM POOL ...</font><br class=""><br class=""><font size="2" face="sans-serif" class="">HMMMM.... &nbsp;I just thought about
this some more and added the NLINK statistic. &nbsp;It would be unusual
for this to be a big problem, but files that are hard linked are<br class="">not recognized by mmapplypolicy as sharing storage... <br class="">This has not come to my attention as a significant problem -- does the
file system in question have significant GBs of hard linked files?</font><br class=""><br class=""><font size="2" face="sans-serif" class="">The truth is that you're the first customer/user/admin
in a long time to question/examine how mmapplypolicy does its space reckoning
... <br class="">Optimistically that means it works fine for most customers... &nbsp;</font><br class=""><br class=""><font size="2" face="sans-serif" class="">So sorry, something unusual about your
installation or usage...</font><br class=""><br class=""><font size="2" face="sans-serif" class=""><br class=""></font><br class=""><br class="">_______________________________________________<br class="">gpfsug-discuss mailing list<br class="">gpfsug-discuss at <a href="http://spectrumscale.org" class="">spectrumscale.org</a><br class=""><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" class="">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a><br class=""></div></blockquote></div><br class=""></div></body></html>