<div dir="ltr"><div dir="ltr"><div dir="ltr"><br><div>I also see that /usr/lpp/mmfs/samples/util/tsinode will list these flags:</div><div><br></div><div><div>[root@scale-dev-01 util]# ./tsinode /mnt/gpfs01/|grep 55559</div><div>              55559   631878862      0      0 1048576000  104857600 -rw-r--r--         2 1610965529.234470000 1610965531.035007326 1612952829.394919000      0 blk=1048576 modsnap=1 extperms=0x2,xa replmeta <b>illReplicated unbalanced</b> dev=3824,150 archive compressed crtime 1610965529.234470000</div></div><div><br></div><div>That program can probably easily be modified to only list these files..</div><div><br></div><div><br></div><div>  -jf</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 19, 2021 at 1:50 PM Jan-Frode Myklebust <<a href="mailto:janfrode@tanso.net">janfrode@tanso.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">We just discussed this a bit internally, and I found "something* that might help... There's a <span style="color:rgb(224,30,90);font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px;white-space:pre-wrap;background-color:rgba(29,28,29,0.04)">mmrestripefs --inode-criteria</span> command that can be used to identify files with these unknown-to-ILM flags set. Something like:</div><div dir="ltr"><br></div><div dir="ltr"><pre style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-wrap:break-word;word-break:normal;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace"># echo illreplicated > criteria<br style="box-sizing:inherit"># mmrestripefs gpfs01 -p --inode-criteria criteria -o result<br style="box-sizing:inherit">Scanning file system metadata, phase 1 ...<br style="box-sizing:inherit"> 100 % complete on Thu Feb 18 15:30:10 2021<br style="box-sizing:inherit">Scan completed successfully.<br style="box-sizing:inherit">Scanning file system metadata, phase 2 ...<br style="box-sizing:inherit"> 100 % complete on Thu Feb 18 15:30:10 2021<br style="box-sizing:inherit">Scan completed successfully.<br style="box-sizing:inherit">Scanning file system metadata, phase 3 ...<br style="box-sizing:inherit">Scan completed successfully.<br style="box-sizing:inherit">Scanning file system metadata, phase 4 ...<br style="box-sizing:inherit"> 100 % complete on Thu Feb 18 15:30:10 2021<br style="box-sizing:inherit">Scan completed successfully.<br style="box-sizing:inherit">Scanning file system metadata, phase 5 ...<br style="box-sizing:inherit"> 100 % complete on Thu Feb 18 15:30:10 2021<br style="box-sizing:inherit">Scan completed successfully.<br style="box-sizing:inherit">Scanning user file metadata ...<br style="box-sizing:inherit"> 100.00 % complete on Thu Feb 18 15:30:14 2021  (    835584 inodes with total       4271 MB data processed)<br style="box-sizing:inherit">Scan completed successfully.<br style="box-sizing:inherit">Check file '/mnt/gpfs01/result' on scale-dev-01 for inodes with broken disk addresses or failures.<br style="box-sizing:inherit"># cat /mnt/gpfs01/result<br style="box-sizing:inherit">This inode list was generated in the Parallel Inode Traverse on Thu Feb 18 15:30:10 2021<br style="box-sizing:inherit">INODE_NUMBER DUMMY_INFO SNAPSHOT_ID ISGLOBAL_SNAPSHOT INDEPENDENT_FSETID MEMO(INODE_FLAGS FILE_TYPE [ERROR])<br style="box-sizing:inherit"> 55559        0:0        0           1                 0                  illreplicated unbalanced REGULAR_FILE</pre><pre style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-wrap:break-word;word-break:normal;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace">Unclear to me if "-p" is too much work for this task though, or maybe it can be limited with --metadata-only or other options..</pre><pre style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-wrap:break-word;word-break:normal;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace"><br></pre><pre style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-wrap:break-word;word-break:normal;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace">HTH</pre><pre style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-wrap:break-word;word-break:normal;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace"><br></pre><pre style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-wrap:break-word;word-break:normal;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace"><br></pre></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 20, 2018 at 12:10 AM Edward Wahl <<a href="mailto:ewahl@osc.edu" target="_blank">ewahl@osc.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>
This one has been on my list a long time so I figured I'd ask here first before<br>
I open an apar or request an enhancement (most likely).<br>
<br>
 Is there a way using the policy engine to determine the following?<br>
<br>
-metadata replication total/current <br>
-unbalanced file <br>
<br>
Looking to catch things like this that stand out on my filesystem without<br>
having to run several hundred million 'mmlsattr's. <br>
<br>
metadata replication: 1 max 2 <br>
flags:                unbalanced<br>
<br>
Ed<br>
<br>
<br>
<br>
-- <br>
<br>
Ed Wahl<br>
Ohio Supercomputer Center<br>
614-292-9302<br>
_______________________________________________<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>
</blockquote></div>