<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Times New Roman \(Corpo CS\)";
        panose-1:2 2 6 3 5 4 5 2 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.StileMessaggioDiPostaElettronica19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[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]-->
</head>
<body lang="IT-CH" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:18.0pt;mso-fareast-language:EN-US">Thank you Venkat, the \u201cdirty\u201d and \u201cappend\u201d flags seem quite useful.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;mso-fareast-language:EN-US">&nbsp;&nbsp; A<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:18.0pt;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">Da: </span></b><span style="font-size:12.0pt;color:black">&lt;gpfsug-discuss-bounces@spectrumscale.org&gt; per conto di Venkateswara R Puvvada &lt;vpuvvada@in.ibm.com&gt;<br>
<b>Risposta: </b>gpfsug main discussion list &lt;gpfsug-discuss@spectrumscale.org&gt;<br>
<b>Data: </b>luned́, 21 settembre 2020 12:57<br>
<b>A: </b>gpfsug main discussion list &lt;gpfsug-discuss@spectrumscale.org&gt;<br>
<b>Oggetto: </b>Re: [gpfsug-discuss] Checking if a AFM-managed file is still inflight<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">tspcacheutil &lt;file path&gt;, this command provides information about the file's replication state. You can also run policy to find these files.
</span><br>
<br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Example:</span><br>
<br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">tspcacheutil /gpfs/gpfs1/sw2/1.txt
</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">inode: ino=524290 gen=235142808 uid=1000 gid=0 size=3 mode=0200100777 nlink=1</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;ctime=1600366912.382081156 mtime=1600275424.692786000</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;cached 1 &nbsp;hasState 1 &nbsp;local 0</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;create 0 &nbsp;setattr &nbsp;0 &nbsp;dirty 0 &nbsp;link 0 &nbsp;append 0</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">pcache: parent ino=524291 foldval=0x6AE011D4 nlink=1</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">remote: ino=56076 size=3 nlink=1 fhsize=24 version=0</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; ctime=1600376836.408694099 mtime=1600275424.692786000</span><br>
<br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Cached - File is cached. For directory, readdir&#43;lookup is completed.</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">hashState - file/dir have remote attributes for the replication.</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">local - file/dir is local, &nbsp;won't be replicated to home or not revalidated with home.</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Create - file/dir is newly created, not yet replicated</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Setattr - Attributes (chown, chmod, mmchattr , setACL, setEA etc..) &nbsp;are changed on dir/file, but not replicated yet.</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Dirty - file have been changed in the cache, but not replicated yet. For directory this means that files inside it have been removed or renamed.</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Link - hard link for the file have been created, but not replicated yet.</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Append - file have been appended, but not replicated yet. For directory this is complete bit which indicates &nbsp;that readddir was performed.</span><br>
<br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">~Venkat (vpuvvada@in.ibm.com)</span><br>
<br>
<br>
<br>
<span style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#5F5F5F">From: &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif">&quot;Dorigo Alvise (PSI)&quot; &lt;alvise.dorigo@psi.ch&gt;</span><br>
<span style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#5F5F5F">To: &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif">gpfsug main discussion list &lt;gpfsug-discuss@spectrumscale.org&gt;</span><br>
<span style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#5F5F5F">Date: &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif">09/21/2020 04:02 PM</span><br>
<span style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#5F5F5F">Subject: &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif">[EXTERNAL] Re: [gpfsug-discuss] Checking if a AFM-managed file is still &nbsp; &nbsp; &nbsp; &nbsp;inflight</span><br>
<span style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#5F5F5F">Sent by: &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif">gpfsug-discuss-bounces@spectrumscale.org</span><o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="0" width="100%" noshade="" style="color:#A0A0A0" align="center">
</div>
<p class="MsoNormal"><br>
<br>
<br>
<span style="font-size:18.0pt">Information reported by that command (both at cache and home side) are size, blocks, block size, and times.<br>
I think it cannot be enough to decide that AFM completed the transfer of a file.</span><br>
<span style="font-size:18.0pt">Did I possibly miss something else ?</span><br>
<span style="font-size:18.0pt">It would be nice to have a flag (like that one reported by the policy, flags \u201cP\u201d \u2013 managed by AFM \u2013 and \u201cw\u201d \u2013 beeing transferred -) that can help us to know if AFM considers the file synced to home or not yet.</span><br>
<span style="font-size:18.0pt">&nbsp;</span><br>
<span style="font-size:18.0pt">&nbsp; &nbsp;Alvise</span><br>
<span style="font-size:18.0pt">&nbsp;</span><br>
<b><span style="font-size:12.0pt">Da: </span></b><span style="font-size:12.0pt">&lt;gpfsug-discuss-bounces@spectrumscale.org&gt; per conto di Olaf Weiser &lt;olaf.weiser@de.ibm.com&gt;<b><br>
Risposta: </b>gpfsug main discussion list &lt;gpfsug-discuss@spectrumscale.org&gt;<b><br>
Data: </b>luned́, 21 settembre 2020 11:55<b><br>
A: </b>&quot;gpfsug-discuss@spectrumscale.org&quot; &lt;gpfsug-discuss@spectrumscale.org&gt;<b><br>
Cc: </b>&quot;gpfsug-discuss@spectrumscale.org&quot; &lt;gpfsug-discuss@spectrumscale.org&gt;<b><br>
Oggetto: </b>Re: [gpfsug-discuss] Checking if a AFM-managed file is still inflight</span><br>
<span style="font-size:10.0pt">&nbsp;</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">do you looking fo smth like this:</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">mmafmlocal ls filename &nbsp; &nbsp;or stat filename
</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp; </span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">----- Original message -----<br>
From: &quot;Dorigo Alvise (PSI)&quot; &lt;alvise.dorigo@psi.ch&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] [gpfsug-discuss] Checking if a AFM-managed file is still inflight<br>
Date: Mon, Sep 21, 2020 10:45 AM<br>
<br>
</span><br>
<span style="font-size:18.0pt;font-family:&quot;Arial&quot;,sans-serif">Dear GPFS users,</span><br>
<span style="font-size:18.0pt;font-family:&quot;Arial&quot;,sans-serif">I know that through a policy one can know if a file is still being transferred from the cache to your home by AFM.</span><br>
<span style="font-size:18.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;</span><br>
<span style="font-size:18.0pt;font-family:&quot;Arial&quot;,sans-serif">I wonder if there is another method @cache or @home side, faster and less invasive (a policy, as far as I know, can put some pressure on the system when there are many files).</span><br>
<span style="font-size:18.0pt;font-family:&quot;Arial&quot;,sans-serif">I quickly checked mmlsattr that seems not to be AFM-aware (but there is a flags field that can show several things, like compression status, archive, etc).</span><br>
<span style="font-size:18.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;</span><br>
<span style="font-size:18.0pt;font-family:&quot;Arial&quot;,sans-serif">Any suggestion ?</span><br>
<span style="font-size:18.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;</span><br>
<span style="font-size:18.0pt;font-family:&quot;Arial&quot;,sans-serif">Thanks in advance,</span><br>
<span style="font-size:18.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;</span><br>
<span style="font-size:18.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp; &nbsp;Alvise</span><br>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">_______________________________________________<br>
gpfsug-discuss mailing list<br>
gpfsug-discuss at spectrumscale.org<u><span style="color:blue"><br>
</span></u></span><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</span></a><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;</span><br>
<span style="font-size:10.0pt"><br>
</span><tt><span style="font-size:10.0pt">_______________________________________________</span></tt><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><br>
<tt>gpfsug-discuss mailing list</tt><br>
<tt>gpfsug-discuss at spectrumscale.org</tt><br>
</span><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss"><tt><span style="font-size:10.0pt">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</span></tt></a><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><br>
</span><br>
<br>
<br>
<br>
<o:p></o:p></p>
</div>
</body>
</html>