<div dir="ltr"><div>I checked on my office network....</div><div><br></div>mmfind --help<div><br></div><div>mmfind -polFlags &#39;-N node1,node2 -B 100 -m 24&#39; /path/to/find -perm +o=w ! \( -type d -perm +o=t \) -xargs chmod o-w</div><div><br></div><div>I think that the -m 24 is the default (24 threads per node), but it&#39;s nice to include on the command line so you remember you can increment/decrement it as your needs require or your nodes can handle.</div><div><br></div><div>It&#39;s IMPORTANT to review in the mmfind --help output that some things are &#39;mmfind&#39; args and go BEFORE the path... some are CRITERIA args and have no impact on the files...  BUT SOME ARE ACTION args, and they will affect files.</div><div><br></div><div>So -exec -xargs are obvious actions, however, -gpfsCompress doesn&#39;t find compressed files, it will actually compress the objects... in our AIX environment our compressed reads feel like they&#39;re essentially broken, we only get about 5MB/s, however on Linux compress reads seem to work fairly well.</div><div><br></div><div>So make sure to read the man page carefully before using some non-obvious GPFS enhancements.  Also the nice thing is mmfind -xargs takes care of all the strange file names, so you don&#39;t have to do anything complicated, but you also can&#39;t pipe the output as it will run the xarg in the policy engine.</div><div><br></div><div>As a footnote this is my all time favorite find for troubleshooting...</div><div>find $(pwd) -mtime -1 | sed -e &#39;s/.*/&quot;&amp;&quot;/g&#39; | xargs ls -latr</div><div><br></div><div>List all the files modified in the last day in reverse chronology...</div><div><br></div><div>Doesn&#39;t work :-(</div><div><br></div><div>Alec</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 13, 2021 at 3:30 AM Dorigo Alvise (PSI) &lt;<a href="mailto:alvise.dorigo@psi.ch">alvise.dorigo@psi.ch</a>&gt; 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 lang="IT" style="overflow-wrap: break-word;">
<div class="gmail-m_6811305022959134668WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi Alec ,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">mmfind doesn\u2019t have a man page (does it have an online one ? I cannot find it). And according to mmfind -h it doesn\u2019t exposes the \u201c-N\u201d neither  the \u201c-B\u201d flags. RPM is gpfs.base-5.1.1-2.x86_64.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Do I have chance to download a newest version of that script from somewhere ?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">   Alvise<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">Da:</span></b><span lang="EN-US"> <a href="mailto:gpfsug-discuss-bounces@spectrumscale.org" target="_blank">gpfsug-discuss-bounces@spectrumscale.org</a> &lt;<a href="mailto:gpfsug-discuss-bounces@spectrumscale.org" target="_blank">gpfsug-discuss-bounces@spectrumscale.org</a>&gt;
<b>Per conto di </b>Dorigo Alvise (PSI)<br>
<b>Inviato:</b> lunedě 13 dicembre 2021 11:50<br>
<b>A:</b> gpfsug main discussion list &lt;<a href="mailto:gpfsug-discuss@spectrumscale.org" target="_blank">gpfsug-discuss@spectrumscale.org</a>&gt;<br>
<b>Oggetto:</b> [gpfsug-discuss] R: Question on changing mode on many files<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I am definitely going to try this solution with mmfind.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you also for the command line and several hints\u2026 I\u2019ll be back with the outcome soon.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">   Alvise<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">Da:</span></b><span lang="EN-US"> </span>
<a href="mailto:gpfsug-discuss-bounces@spectrumscale.org" target="_blank"><span lang="EN-US">gpfsug-discuss-bounces@spectrumscale.org</span></a><span lang="EN-US"> &lt;</span><a href="mailto:gpfsug-discuss-bounces@spectrumscale.org" target="_blank"><span lang="EN-US">gpfsug-discuss-bounces@spectrumscale.org</span></a><span lang="EN-US">&gt;
<b>Per conto di </b>Alec<br>
<b>Inviato:</b> domenica 12 dicembre 2021 23:04<br>
<b>A:</b> gpfsug main discussion list &lt;</span><a href="mailto:gpfsug-discuss@spectrumscale.org" target="_blank"><span lang="EN-US">gpfsug-discuss@spectrumscale.org</span></a><span lang="EN-US">&gt;<br>
<b>Oggetto:</b> Re: [gpfsug-discuss] Question on changing mode on many files<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">How am I just learning about this right now, thank you!  Makes so much more sense now the odd behaviors I&#39;ve seen over the years on GPFS vs POSIX chmod/ACL.  Will definitely go review those settings on my filesets now,
 wonder if the default has evolved from 3.x -&gt; 4.x -&gt; 5.x.<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">IBM needs to find a way to pre-compile mmfind and make it supported, it really is essential and so beneficial, and so hard to get done in a production regulated environment.  Though a bigger warning that the compress
 option is an action not a criteria! <u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Alec<u></u><u></u></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">On Sun, Dec 12, 2021 at 9:01 AM Simon Thompson &lt;</span><a href="mailto:s.j.thompson@bham.ac.uk" target="_blank"><span lang="EN-US">s.j.thompson@bham.ac.uk</span></a><span lang="EN-US">&gt; wrote:<u></u><u></u></span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<div>
<p class="MsoNormal"><span lang="EN-GB">&gt; I&#39;m not sure if this happens on Spectrum Scale but on most FS&#39;s if you do a chmod 770 file you&#39;ll lose any ACLs assigned to the<br>
&gt; file, so safest to bump the permissions with a subtractive or additive o-w or g+w type operation.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">This depends entirely on the fileset setting, see:<u></u><u></u></span></p>
<p class="MsoNormal"><a href="https://www.ibm.com/docs/en/spectrum-scale/5.1.2?topic=reference-mmchfileset-command" target="_blank"><span lang="EN-GB">https://www.ibm.com/docs/en/spectrum-scale/5.1.2?topic=reference-mmchfileset-command</span></a><span lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">\u201c</span><b><span lang="EN-GB" style="font-size:12pt;font-family:&quot;IBM Plex Sans&quot;,sans-serif;color:rgb(22,22,22);letter-spacing:0.1pt;background:white">allow-permission-change</span></b><span lang="EN-GB">\u201d<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">We typically have file-sets set to chmodAndUpdateAcl, though not exclusively, I think it was some quirky software that tested the permissions after doing something
 and didn\u2019t like the updatewithAcl thing \u2026<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Simon<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US">_______________________________________________<br>
gpfsug-discuss mailing list<br>
gpfsug-discuss at </span><a href="http://spectrumscale.org" target="_blank"><span lang="EN-US">spectrumscale.org</span></a><span lang="EN-US"><br>
</span><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank"><span lang="EN-US">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</span></a><span lang="EN-US"><u></u><u></u></span></p>
</blockquote>
</div>
</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>