<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:12pt" ><div dir="ltr" >If you are running on a more recent version of Scale you might want to look at the mmfind command.  It provides a find-like wrapper around the execution of policy rules.</div>
<div dir="ltr" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10pt" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div dir="ltr" ><br><font size="2" face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" ><span style="font-size:1.143em;" >Fred<br>_______________________________________________________<br>Fred Stock | Spectrum Scale Development Advocacy | 720-430-8821<br>stockf@us.ibm.com</span></font></div></div></div></div>
<div dir="ltr" > </div>
<div dir="ltr" > </div>
<blockquote data-history-content-modified="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Original message -----<br>From: "Dorigo Alvise (PSI)" <alvise.dorigo@psi.ch><br>Sent by: gpfsug-discuss-bounces@spectrumscale.org<br>To: "'gpfsug main discussion list'" <gpfsug-discuss@spectrumscale.org><br>Cc:<br>Subject: [EXTERNAL] [gpfsug-discuss] Question on changing mode on many files<br>Date: Tue, Dec 7, 2021 8:53 AM<br> <br><!--Notes ACF
<meta http-equiv="Content-Type" content="text/html; charset=utf8" >--> <!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit" >
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div><p style="margin: 0px;" >Dear users/developers/support,<o:p></o:p></p>
<p style="margin: 0px;" ><span lang="EN-US" >I’d like to ask if there is a fast way to manipulate the permission mask of many files (millions).<o:p></o:p></span></p>
<p style="margin: 0px;" ><span lang="EN-US" ><o:p> </o:p></span></p>
<p style="margin: 0px;" ><span lang="EN-US" >I tried on 900k files and a recursive chmod (chmod 0### -R path) takes about 1000s, with about 50% usage of mmfsd daemon.<o:p></o:p></span></p>
<p style="margin: 0px;" ><span lang="EN-US" >I tried with the perl’s internal function chmod that can operate on an array of files, and it takes about 1/3 of the previous method. Which is already a good result.<o:p></o:p></span></p>
<p style="margin: 0px;" ><span lang="EN-US" ><o:p> </o:p></span></p>
<p style="margin: 0px;" ><span lang="EN-US" >I’ve seen the possibility to run a policy to execute commands, but I would avoid to execute external commands through mmxargs, 1M of times; would you ?<o:p></o:p></span></p>
<p style="margin: 0px;" ><span lang="EN-US" ><o:p> </o:p></span></p>
<p style="margin: 0px;" ><span lang="EN-US" >Does anybody have any suggestion to do this operation with minimum disruption on the system ?<o:p></o:p></span></p>
<p style="margin: 0px;" ><span lang="EN-US" ><o:p> </o:p></span></p>
<p style="margin: 0px;" ><span lang="EN-US" >Thank you,<o:p></o:p></span></p>
<p style="margin: 0px;" ><span lang="EN-US" ><o:p> </o:p></span></p>
<p style="margin: 0px;" ><span lang="EN-US" >    Alvise<o:p></o:p></span></p></div>
<div><font size="2" face="Default Monospace,Courier New,Courier,monospace" >_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at spectrumscale.org<br><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a> </font></div></blockquote>
<div dir="ltr" > </div></div><BR>
<BR>