<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:12pt" ><div dir="ltr" >Hello Ed.&nbsp; Jordan contacted me about the question you are posing so I am responding to your message.&nbsp; Could you please provide clarification as to why the existence of the unbalanced flag is of a concern, or why you would want to know all the files that have this flag set?&nbsp; The flag would be cleared once the file was rebalanced either through normal access or through the execution of the mmrestripefs/mmrestripefile commands.</div>
<div dir="ltr" ><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 | IBM Pittsburgh Lab | 720-430-8821<br>stockf@us.ibm.com</span></font></div></div></div>
<div dir="ltr" >&nbsp;</div>
<div dir="ltr" >&nbsp;</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: "Wahl, Edward" &lt;ewahl@osc.edu&gt;<br>Sent by: gpfsug-discuss-bounces@spectrumscale.org<br>To: gpfsug main discussion list &lt;gpfsug-discuss@spectrumscale.org&gt;<br>Cc:<br>Subject: [EXTERNAL] Re: [gpfsug-discuss] policy ilm features?<br>Date: Tue, Feb 2, 2021 11:52 AM<br>&nbsp;<br><!--Notes ACF
<meta http-equiv="Content-Type" content="text/html; charset=utf8" >-->
<div style="font-family: &quot;Times New Roman&quot;, Times, serif; font-size: 12pt; color: rgb(0, 0, 0);" >Replying to a 3 year old message I sent, hoping that in the last couple of years that Scale has added some ILM extensions into the policy engine that I have missed, or somehow didn't notice?</div>
<div style="font-family: &quot;Times New Roman&quot;, Times, serif; font-size: 12pt; color: rgb(0, 0, 0);" >Just ran into a file with an 'unbalanced' flag and I REALLY don't want to have to mmlsattr everything. AGAIN. /facepalm&nbsp;&nbsp;</div>
<div style="font-family: &quot;Times New Roman&quot;, Times, serif; font-size: 12pt; color: rgb(0, 0, 0);" >&nbsp;</div>
<div style="font-family: &quot;Times New Roman&quot;, Times, serif; font-size: 12pt; color: rgb(0, 0, 0);" ><span style="color: rgb(0, 0, 0); font-family: &quot;Times New Roman&quot;, Times, serif; font-size: 12pt;" >IBM?&nbsp; Bueller? Bueller?&nbsp;&nbsp;</span></div>
<div style="font-family: &quot;Times New Roman&quot;, Times, serif; font-size: 12pt; color: rgb(0, 0, 0);" >&nbsp;</div>
<div style="font-family: &quot;Times New Roman&quot;, Times, serif; font-size: 12pt; color: rgb(0, 0, 0);" >When everyone answers: "No", I'm guessing this needs to be a request for improvement/enhancement?&nbsp;&nbsp;</div>
<div style="font-family: &quot;Times New Roman&quot;, Times, serif; font-size: 12pt; color: rgb(0, 0, 0);" >&nbsp;</div>
<div style="font-family: &quot;Times New Roman&quot;, Times, serif; font-size: 12pt; color: rgb(0, 0, 0);" >Ed Wahl</div>
<div style="font-family: &quot;Times New Roman&quot;, Times, serif; font-size: 12pt; color: rgb(0, 0, 0);" >Ohio Supercomputer Center</div>
<div style="font-family: &quot;Times New Roman&quot;, Times, serif; font-size: 12pt; color: rgb(0, 0, 0);" >&nbsp;</div>
<div id="appendonsend" >&nbsp;</div>
<hr style="display:inline-block;width:98%" tabindex="-1" ><div dir="ltr" id="divRplyFwdMsg" ><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000" ><b>From:</b> gpfsug-discuss-bounces@spectrumscale.org &lt;gpfsug-discuss-bounces@spectrumscale.org&gt; on behalf of Edward Wahl &lt;ewahl@osc.edu&gt;<br><b>Sent:</b> Friday, February 2, 2018 3:23 PM<br><b>To:</b> John Hearns &lt;john.hearns@asml.com&gt;<br><b>Cc:</b> gpfsug main discussion list &lt;gpfsug-discuss@spectrumscale.org&gt;<br><b>Subject:</b> Re: [gpfsug-discuss] policy ilm features?</font>
<div>&nbsp;</div></div>
<div><div><br><font size="2" ><span style="font-size:11pt;" >Thanks John, this was the path I was HOPING to go down as I do similar things<br>already, but there appears to be no extended attribute in ILM for what I want.<br>Data block replication flag exists in the ILM, but not MetaData, or balance.<br><br>Yet these states ARE reported by mmlsattr, so there must be a flag somewhere.<br><br><br>bad MD replication &amp; balance example:<br><br>&nbsp;mmlsattr -L /fs/scratch/sysp/ed/180days.pol<br>file name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /fs/scratch/sysp/ed/180days.pol<br>metadata replication: 1 max 2<br>data replication:&nbsp;&nbsp;&nbsp;&nbsp; 1 max 2<br>flags:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; illreplicated,unbalanced<br>Encrypted:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yes<br><br>File next to it for comparison. note proper MD replication and balance.<br><br>&nbsp;mmlsattr -L&nbsp; /fs/scratch/sysp/ed/120days.pol<br>file name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /fs/scratch/sysp/ed/120days.pol<br>metadata replication: 2 max 2<br>data replication:&nbsp;&nbsp;&nbsp;&nbsp; 1 max 2<br>flags:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>Encrypted:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yes<br><br>misc_attributes flags from a policy run showing no difference in status:<br>FJAEu -- /fs/scratch/sysp/ed/180days.pol<br>FJAEu -- /fs/scratch/sysp/ed/120days.pol<br><br><br>File system has MD replication enabled, but not Data, so ALL files show "J" ilm<br>flag<br><br>mmlsfs scratch -m<br>flag&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; description<br>------------------- ------------------------ -----------------------------------<br>&nbsp;-m&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Default number of metadata replicas<br>mmlsfs scratch -r<br>flag&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; description<br>------------------- ------------------------ -----------------------------------<br>&nbsp;-r&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Default number of data replicas<br><br><br>I poked around a little trying to find out if perhaps using GetXattr would<br>work and show me what I wanted, it does not. All I sem to be able to get is the<br>File Encryption Key.<br><br><br>I was hoping perhaps someone had found a cheaper way for this to work rather<br>than hundreds of millions of 'mmlsattr' execs.&nbsp; :-(<br><br>On the plus side, I've only run across a few of these and all appear to be<br>from before we did the MD replication and re-striping.&nbsp; On the minus, I have NO<br>idea where they are, and they appears to be on both of our filesystems.&nbsp; So<br>several hundred million files to check.<br><br>Ed<br><br><br>On Mon, 22 Jan 2018 08:29:42 +0000<br>John Hearns &lt;john.hearns@asml.com&gt; wrote:<br><br>&gt; Ed,<br>&gt; This is not a perfect answer. You need to look at policies for this. I have<br>&gt; been doing something similar recently.<br>&gt;<br>&gt; Something like:<br>&gt;<br>&gt; RULE 'list_file' EXTERNAL LIST 'all-files' EXEC<br>&gt; '/var/mmfs/etc/mmpolicyExec-list' RULE 'listall' list 'all-files'<br>&gt; SHOW( varchar(kb_allocated) || '&nbsp; ' || varchar(file_size) || ' ' ||<br>&gt; varchar(misc_attributes) || ' ' || name || ' ' || fileset_name&nbsp; ) WHERE<br>&gt; REGEX(misc_attributes,'[J]')<br>&gt;<br>&gt;<br>&gt; So this policy shows the kbytes allocates, file size, the miscellaneous<br>&gt; attributes, name and fileset name For all files with&nbsp; miscellaneous<br>&gt; attributes of 'J'&nbsp;&nbsp; which means 'Some data blocks might be ill replicated'<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; -----Original Message-----<br>&gt; From: gpfsug-discuss-bounces@spectrumscale.org<br>&gt; [<a href="mailto:gpfsug-discuss-bounces@spectrumscale.org" target="_blank">mailto:gpfsug-discuss-bounces@spectrumscale.org</a>] On Behalf Of Edward Wahl<br>&gt; Sent: Friday, January 19, 2018 10:38 PM To: gpfsug-discuss@spectrumscale.org<br>&gt; Subject: [gpfsug-discuss] policy ilm features?<br>&gt;<br>&gt;<br>&gt; This one has been on my list a long time so I figured I'd ask here first<br>&gt; before I open an apar or request an enhancement (most likely).<br>&gt;<br>&gt;&nbsp; Is there a way using the policy engine to determine the following?<br>&gt;<br>&gt; -metadata replication total/current<br>&gt; -unbalanced file<br>&gt;<br>&gt; Looking to catch things like this that stand out on my filesystem without<br>&gt; having to run several hundred million 'mmlsattr's.<br>&gt;<br>&gt; metadata replication: 1 max 2<br>&gt; flags:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unbalanced<br>&gt;<br>&gt; Ed<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt;<br>&gt; Ed Wahl<br>&gt; Ohio Supercomputer Center<br>&gt; 614-292-9302<br>&gt; _______________________________________________<br>&gt; gpfsug-discuss mailing list<br>&gt; gpfsug-discuss at spectrumscale.org<br>&gt; <a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&data=01%7C01%7Cjohn.hearns%40asml.com%7C056e34c5a8df4d8f10fd08d55f91e73c%7Caf73baa8f5944eb2a39d93e96cad61fc%7C1&sdata=dnt7vV4TCd68l7fSJnY35eyNM%2B8pNrZElImSZeZbit8%3D&reserved=0" target="_blank"> https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&amp;data=01%7C01%7Cjohn.hearns%40asml.com%7C056e34c5a8df4d8f10fd08d55f91e73c%7Caf73baa8f5944eb2a39d93e96cad61fc%7C1&amp;sdata=dnt7vV4TCd68l7fSJnY35eyNM%2B8pNrZElImSZeZbit8%3D&amp;reserved=0</a><br>&gt; -- The information contained in this communication and any attachments is<br>&gt; confidential and may be privileged, and is for the sole use of the intended<br>&gt; recipient(s). Any unauthorized review, use, disclosure or distribution is<br>&gt; prohibited. Unless explicitly stated otherwise in the body of this<br>&gt; communication or the attachment thereto (if any), the information is provided<br>&gt; on an AS-IS basis without any express or implied warranties or liabilities.<br>&gt; To the extent you are relying on this information, you are doing so at your<br>&gt; own risk. If you are not the intended recipient, please notify the sender<br>&gt; immediately by replying to this message and destroy all copies of this<br>&gt; message and any attachments. Neither the sender nor the company/group of<br>&gt; companies he or she represents shall be liable for the proper and complete<br>&gt; transmission of the information contained in this communication, or for any<br>&gt; delay in its receipt. _______________________________________________<br>&gt; gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<br>&gt; <a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a><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 spectrumscale.org<br><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a></span></font></div></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>&nbsp;</font></div></blockquote>
<div dir="ltr" >&nbsp;</div></div><BR>