<font size=2 face="sans-serif">Thanks Jonathan B for your comments and
tips on experience using mmapplypolicy and policy rules.  Good to
see that some of the features we put into the product are actually useful.
 </font><br><br><font size=2 face="sans-serif">For those not quite as familiar, and
have come somewhat later to the game, like Matthias K - I have a few remarks
and tips that may be helpful:</font><br><br><font size=2 face="sans-serif">You can think of and use mmapplypolicy
as a fast, parallelized version of the classic   `<b>find ... | xargs
...</b> `  pipeline.</font><br><font size=2 face="sans-serif">In fact we've added some "sample"
scripts with options that make this easy:</font><br><br><font size=2 face="sans-serif"><b>samples/ilm/mmfind</b>  :  "understands"
the classic find search arguments as well as all the mmapplypolicy options
and the recent versions</font><br><font size=2 face="sans-serif">  also support an -xargs option
so you can write the classic pipepline as one command:  <b> mmfind
... -xargs ...</b></font><br><font size=2 face="sans-serif">    </font><br><font size=2 face="sans-serif">There are debug/diagnostic options so
you can see the underlying GPFS commands and policy rules that are generated,
so if mmfind doesn't do exactly what you were hoping, you can capture the
commands and rules that it does do and tweak/hack those.</font><br><br><font size=2 face="sans-serif">Two of the most crucial and tricky parts
of mmfind are available as separate scripts that can be used separately:</font><br><br><font size=2 face="sans-serif"><b>tr_findToPol.pl </b>:  convert
classic options to policy rules.</font><br><font size=2 face="sans-serif"> </font><br><font size=2 face="sans-serif"><b>mmxargs :</b>   100% correctly
deal with the problem of whitespace and/or "special" characters
in the pathnames output as file lists by<br>                    
   mmapplypolicy.  This is somewhat tricky.  </font><br><br><font size=2 face="sans-serif">EVEN IF you've already worked out your
own policy rules and use policy  RULE  ... EXTERNAL ...  EXEC
'myscript'</font><br><font size=2 face="sans-serif">you may want to use mmxargs or "lift"
some of the code there-in -- because it is very likely your 'myscript'
is not handling the problem of special characters correctly.</font><br><br><font size=2 face="sans-serif"><b>FILESETs vs POOLs</b> - yes these
are "orthogonal" concepts in GPFS (Spectrum Scale!)  BUT
some customer/admins may choose to direct GPFS to assign to POOL based
on FILESET using policy rules clauses like:</font><br><font size=2 face="sans-serif">    FOR FILESET('a_fs', 'b_fs')
  /* handy to restrict a rule to one or a few filesets */</font><br><font size=2 face="sans-serif">    WHERE ...   AND (FILESET_NAME
LIKE 'xyz_%') AND ...  /*  restrict to filesets whose name matches
a pattern */<br></font><br><font size=2 face="sans-serif">-- marc of GPFS</font><BR>