<div dir="ltr">&gt; policy engine doesn\u2019t appear to be able to access the extended file attributes indicating which cloudpool a migrated file is in<div><br></div><div>I&#39;m struggling to accept this -- but I no longer have any TCT systems to check on. You seem to say there is an xattr that tells which cloudpool a file is migrated to. Which xattr is this ? Could you give an example? Looking into an old policy partition dump I have in my notes (tslspolict gpfs0 --ptn gpfs0TctPartition -L), I see no relevant xattrs pointing at any pools -- so maybe it&#39;s just being kept in some TCT database elsewhere?</div><div><br></div><div>But, for converting from TCT to AFM you could maybe just look for files that are premigrated or migrated looking at MISC_ATTRIBUTES V for fully migrated files:</div><div><br></div><div>define( is_migrated,    (MISC_ATTRIBUTES LIKE &#39;%V%&#39;) )<br></div><div><br></div><div>and:</div><div><br></div><div>/* TCT needs timestamp comparison to decide if cloud version is same as local version: */<br>define( is_premigrated_different, ((XATTR(&#39;dmapi.MCEA&#39;, 5, 1) == &#39;C&#39;) AND (MTIME_FILE != MTIME_XATTR)))<br>define( is_premigrated_same, ((XATTR(&#39;dmapi.MCEA&#39;, 5, 1) == &#39;C&#39;) AND (MTIME_FILE == MTIME_XATTR)))<br></div><div><br></div><div>I don&#39;t think these are set for AFM evicted files, as that&#39;s a very different mechanism.</div><div><br></div><div>  -jf</div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Dec 24, 2025 at 12:32\u202fPM Paul Ward &lt;<a href="mailto:p.ward@nhm.ac.uk">p.ward@nhm.ac.uk</a>&gt; 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 class="msg-4984219130894093566">





<div lang="EN-GB" style="overflow-wrap: break-word;">
<div class="m_-4984219130894093566WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">Yes I tried that first, but it seems from the testing I\u2019ve done, the attributes I want are not accessible from the policy engine in 5.1.9. Co-pilot suggests they maybe in 5.2.x<br>
Which we cant go to until we\u2019ve converted from TCT to AFM, which is what I need this for.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Kindest regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Paul<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Paul Ward<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">TS Infrastructure Architect<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Natural History Museum<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">T: 02079426450<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">E: <a href="mailto:p.ward@nhm.ac.uk" target="_blank">
<span style="color:rgb(5,99,193)">p.ward@nhm.ac.uk</span></a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Arial,sans-serif;color:black"><img border="0" width="137" height="74" style="width: 1.427in; height: 0.7708in;" id="m_-4984219130894093566Picture_x0020_2" src="cid:ii_19b56e1c58e4cff311"></span><span style="font-size:11pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(225,225,225) currentcolor currentcolor;padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span style="font-family:Calibri,sans-serif">From:</span></b><span style="font-family:Calibri,sans-serif"> gpfsug-discuss &lt;<a href="mailto:gpfsug-discuss-bounces@gpfsug.org" target="_blank">gpfsug-discuss-bounces@gpfsug.org</a>&gt;
<b>On Behalf Of </b>Jan-Frode Myklebust<br>
<b>Sent:</b> 23 December 2025 21:50<br>
<b>To:</b> gpfsug main discussion list &lt;<a href="mailto:gpfsug-discuss@gpfsug.org" target="_blank">gpfsug-discuss@gpfsug.org</a>&gt;<br>
<b>Subject:</b> Re: [gpfsug-discuss] help/ advice with external helper apps for ILM policy engine<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Policy engine can use xattrs using something like &quot;<span style="font-size:10.5pt;color:black">WHERE xattr(&#39;user.xattrname&#39;) LIKE &#39;value&#39;&quot;.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I don&#39;t currently have any TCT systems available to check, but are there no xattrs you could use a xattr like above to figure out which pool it&#39;s in? Use f.ex. &quot;mmlsattr -L -d filename&quot; to check which xattrs are set for a given file.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">  -jf<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, Dec 23, 2025 at 11:19<span style="font-family:Arial,sans-serif">\u202f</span>AM Paul Ward &lt;<a href="mailto:p.ward@nhm.ac.uk" target="_blank">p.ward@nhm.ac.uk</a>&gt; wrote:<u></u><u></u></p>
</div>
<blockquote style="border-width:medium medium medium 1pt;border-style:none none none solid;border-color:currentcolor currentcolor currentcolor rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<div>
<p class="MsoNormal">Hi,<br>
<br>
has anyone written external helper apps for the ILM policy engine.<br>
<br>
we are running TCT, planning to move files from on-premise COS to AWS, but I need to detect which cloudpool the files are currently in.<br>
The policy engine doesn\u2019t appear to be able to access the extended file attributes indicating which cloudpool a migrated file is in.<br>
So I am trying to use an external helper script, but execution of the policy seems to stall at the point it should use the helper script.<br>
<br>
I will also need to use a help app to move the files from COS to AWS as the mmcloudgateway CLI will recall then migrate, but the policy engine detects the files are already migrated so refuses to \u2018migrate\u2019 them again.<br>
I plan to call the CLI version <br>
<br>
Any advice?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">Kindest regards,<u></u><u></u></p>
<p class="MsoNormal">Paul<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Paul Ward<u></u><u></u></p>
<p class="MsoNormal">TS Infrastructure Architect<u></u><u></u></p>
<p class="MsoNormal">Natural History Museum<u></u><u></u></p>
<p class="MsoNormal">T: 02079426450<u></u><u></u></p>
<p class="MsoNormal">E:
<a href="mailto:p.ward@nhm.ac.uk" target="_blank"><span style="color:rgb(5,99,193)">p.ward@nhm.ac.uk</span></a><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Arial,sans-serif;color:black"><img border="0" width="137" height="74" style="width: 1.427in; height: 0.7708in;" id="m_-4984219130894093566m_-3587706507449722632Picture_x0020_2" src="cid:ii_19b56e1c58e4cff311"></span><u></u><u></u></p>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
gpfsug-discuss mailing list<br>
gpfsug-discuss at <a href="http://gpfsug.org/" target="_blank">gpfsug.org</a><br>
<a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org</a><u></u><u></u></p>
</div>
</blockquote>
</div>
</div>
</div>
</div>

_______________________________________________<br>
gpfsug-discuss mailing list<br>
gpfsug-discuss at <a href="http://gpfsug.org" rel="noreferrer" target="_blank">gpfsug.org</a><br>
<a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org" rel="noreferrer" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org</a><br>
</div></blockquote></div>