<div dir="ltr">No problem at all. If you can't get mmfind compiled... you can do everything it does via mmapplypolicy. But it is certainly easier with mmfind to add in options dynamically.<div><br></div><div>I have modified the program that mmfind invokes... I forget offhand tr_Polsomething.pl to add functions such as -gpfsCompress_lz4 and -gpfsIsCompressed.<br></div><div><br></div><div>Spectrum Scale really has way more power than most people know what to do with... I wish there was a much richer library of scripts available.<br></div><div><br></div><div>For instance with mmfind, this saved my bacon a few days ago.. as our 416TB file system had less than 400GB free...</div><div>mmfind -polArgs "-a 8 -N node1,node2 -B 20" /sasfilesystem -mtime +1800 -name '*.sas7bdat' -size +1G -not -gpfsIsCompressed -gpfsCompress_lz4</div><div> (I had to add in my own -gpfsIsCompressed and -gpfsCompress_lz4 features... but that was fairly easy)</div><div> -- Find any file named '*.sas7bdat' over 1800 days (5 years), larger than 1G, and compress it down using lz4... Farmed it out to my two app nodes 8 threads each... and 14000 files compressed overnight. </div><div><br></div><div>Next morning I had an extra 5TB of free space.. funny thing is I needed to run it on my app nodes to slow down their write capacity so we didn't get a fatal out of capacity.</div><div><br></div><div>If you really want to have fun, check out the ksh93 built in time functions pairs nicely with this requirement.</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><p style="margin-top:10px;margin-bottom:10px;padding-top:0px;padding-bottom:0px;color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px">Output the day of the week corresponding to the last day of February 2008.</p></div><div><div class="gmail-notranslate" style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px"><pre class="gmail-displaybox" style="font-family:"liberation mono","bitstream vera mono","dejavu mono",monospace;font-size:0.9em;overflow:auto hidden;padding:0.5em 1em;width:516px;border-radius:5px;background-color:rgb(244,244,244);border:1px solid rgb(225,225,225);margin-bottom:0.3em">$ printf "%(%a)T\n" "final day Feb 2008" </pre></div></div><div><div class="gmail-notranslate" style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px"><pre class="gmail-displaybox" style="font-family:"liberation mono","bitstream vera mono","dejavu mono",monospace;font-size:0.9em;overflow:auto hidden;padding:0.5em 1em;width:516px;border-radius:5px;background-color:rgb(244,244,244);border:1px solid rgb(225,225,225);margin-bottom:0.3em">Fri</pre></div></div><div><p style="margin-top:10px;margin-bottom:10px;padding-top:0px;padding-bottom:0px;color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px"><br></p></div><div><p style="margin-top:10px;margin-bottom:10px;padding-top:0px;padding-bottom:0px;color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px">Output the date corresponding to the third Wednesday in May 2008.</p></div><div><div class="gmail-notranslate" style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px"><pre class="gmail-displaybox" style="font-family:"liberation mono","bitstream vera mono","dejavu mono",monospace;font-size:0.9em;overflow:auto hidden;padding:0.5em 1em;width:516px;border-radius:5px;background-color:rgb(244,244,244);border:1px solid rgb(225,225,225);margin-bottom:0.3em">$ printf "%(%D)T\n" "3rd wednesday may 2008"</pre></div></div><div><div class="gmail-notranslate" style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px"><pre class="gmail-displaybox" style="font-family:"liberation mono","bitstream vera mono","dejavu mono",monospace;font-size:0.9em;overflow:auto hidden;padding:0.5em 1em;width:516px;border-radius:5px;background-color:rgb(244,244,244);border:1px solid rgb(225,225,225);margin-bottom:0.3em">05/21/08</pre></div></div><div><p style="margin-top:10px;margin-bottom:10px;padding-top:0px;padding-bottom:0px;color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px"><br></p></div><div><p style="margin-top:10px;margin-bottom:10px;padding-top:0px;padding-bottom:0px;color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px">Output what date it was 4 weeks ago.</p></div><div><div class="gmail-notranslate" style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px"><pre class="gmail-displaybox" style="font-family:"liberation mono","bitstream vera mono","dejavu mono",monospace;font-size:0.9em;overflow:auto hidden;padding:0.5em 1em;width:516px;border-radius:5px;background-color:rgb(244,244,244);border:1px solid rgb(225,225,225);margin-bottom:0.3em">$ printf "%(%D)T\n" "4 weeks ago"</pre></div></div><div><div class="gmail-notranslate" style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px"><pre class="gmail-displaybox" style="font-family:"liberation mono","bitstream vera mono","dejavu mono",monospace;font-size:0.9em;overflow:auto hidden;padding:0.5em 1em;width:516px;border-radius:5px;background-color:rgb(244,244,244);border:1px solid rgb(225,225,225);margin-bottom:0.3em">02/18/08</pre></div></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px">Read more: <a href="https://blog.fpmurphy.com/2008/10/ksh93-date-manipulation.html#ixzz6l0Egm6hp" style="color:rgb(0,51,153);text-decoration-line:none">https://blog.fpmurphy.com/2008/10/ksh93-date-manipulation.html#ixzz6l0Egm6hp</a></span> </div></blockquote><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 29, 2021 at 7:39 PM Owen Morgan <<a href="mailto:owen.morgan@motionpicturesolutions.com">owen.morgan@motionpicturesolutions.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
Alec,</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
<br>
</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
Thank you for your response!</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
<br>
</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
I get it now! And, I also understand some of the other peoples responses better as well!</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
<br>
</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
Not only does this make sense I also suppose that it shows I have to broaden my 'ideas' as to what tools avaliable can be used more than mmapplypolicy and policy files alone. Using the power of all of them provides more ability than just focusing on one!</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
<br>
</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
Just want to thank you, and the other respondents as you've genuinely helped me and I've learnt new things in the process (until I posted the original question I didn't even know mmfind was a thing!)</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
<br>
</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
Thanks!</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
<br>
</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
Owen.</div>
<div><table cellpadding="0" cellspacing="0" border="0" style="width:100%"><tbody><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px;line-height:normal"><tbody><tr style="font-size:0px"><td style="padding:0px"> </td><td style="padding:10px 0px 0px"> </td></tr><tr style="font-size:0px"><td align="left" style="padding:0px 4px 0px 0px;border-top:none;border-right:1px solid rgb(255,204,0);border-bottom:none;border-left:none;vertical-align:middle"><img src="http://www.motionpicturesolutions.com/wp-content/uploads/2018/06/MPSEmail.jpg" height="91" border="0" alt="" style="height: 91px; min-height: 91px; max-height: 91px; font-size: 0px;"></td><td align="left" style="padding:10px 0px 10px 10px;vertical-align:middle"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0px;font-style:normal;font-weight:700;white-space:nowrap"><tbody><tr style="font-size:12px;color:rgb(255,204,0)"><td align="left" style="vertical-align:top;font-family:Calibri,Arial,sans-serif">Owen Morgan<span style="font-family:remialcxesans;font-size:1px;color:rgb(255,255,255);line-height:1px"></span></td></tr><tr style="font-size:10.67px;color:rgb(35,35,35)"><td align="left" style="vertical-align:top;font-family:Calibri,Arial,sans-serif">Data Wrangler</td></tr><tr style="font-size:10.67px;color:rgb(35,35,35)"><td align="left" style="vertical-align:top;font-family:Calibri,Arial,sans-serif">Motion Picture Solutions Ltd</td></tr><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px"><tbody><tr style="font-size:0px"><td align="left" style="padding:10px 0px 0px;vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px;color:rgb(35,35,35);font-style:normal;font-weight:400;white-space:nowrap"><tbody><tr style="font-size:10.67px"><td align="left" style="vertical-align:middle;font-family:Calibri,Arial,sans-serif"><span style="font-weight:700">T:</span> <a id="gmail-m_-3345555678747989762LPlnk689713" style="text-decoration:none;color:rgb(35,35,35)"><strong style="font-weight:400"></strong></a></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px;color:rgb(35,35,35);font-style:normal;font-weight:400;white-space:nowrap"><tbody><tr style="font-size:10.67px"><td align="left" style="vertical-align:middle;font-family:Calibri,Arial,sans-serif"><span style="font-weight:700">E:</span> <a href="mailto:owen.morgan@motionpicturesolutions.com" id="gmail-m_-3345555678747989762LPlnk689713" style="text-decoration:none;color:rgb(35,35,35)" target="_blank"><strong style="font-weight:400">owen.morgan@motionpicturesolutions.com</strong></a></td><td align="center" style="vertical-align:middle;font-size:12px;color:rgb(254,212,0);font-family:Calibri,Arial,sans-serif"> | </td><td align="left" style="vertical-align:middle;font-family:Calibri,Arial,sans-serif;font-weight:700">W: <span style="font-weight:400"><a href="https://www.motionpicturesolutions.com/" id="gmail-m_-3345555678747989762LPlnk689713" style="text-decoration:none;color:rgb(35,35,35)" target="_blank"><strong style="font-weight:400">motionpicturesolutions.com</strong></a></span></td></tr></tbody></table></td></tr><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px;color:rgb(35,35,35);font-style:normal;font-weight:400;white-space:nowrap"><tbody><tr style="font-size:10.67px"><td align="left" style="vertical-align:middle;font-family:Calibri,Arial,sans-serif;font-weight:700">A: </td><td align="left" style="vertical-align:middle;font-family:Calibri,Arial,sans-serif">Mission Hall, 9‑11 North End Road</td><td align="left" style="vertical-align:middle;font-family:Calibri,Arial,sans-serif">, </td><td align="left" style="vertical-align:middle;font-family:Calibri,Arial,sans-serif">London</td><td align="left" style="vertical-align:middle;font-family:Calibri,Arial,sans-serif">, </td><td align="left" style="vertical-align:middle;font-family:Calibri,Arial,sans-serif">W14 8ST<br></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0px"><tbody><tr style="font-size:0px"><td align="left" style="padding:10px 0px 0px;vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="white-space:normal;color:rgb(192,192,192);font-size:14.67px;font-family:Calibri,Arial,sans-serif;font-weight:400;font-style:normal;text-align:justify;width:100%"><tbody><tr style="font-size:10.67px"><td style="font-family:Calibri,Arial,sans-serif">Motion Picture Solutions Ltd is a company registered in England and Wales under number 5388229, VAT number 201330482</td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div>
_______________________________________________<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/listinfo/gpfsug-discuss</a><br>
</blockquote></div>