<div dir="ltr"><br><div>    Thanks!</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 15, 2021 at 1:08 AM Andreas Dilger &lt;<a href="mailto:adilger@whamcloud.com">adilger@whamcloud.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Apr 15, 2021, at 00:52, Åke Sandgren &lt;<a href="mailto:ake.sandgren@hpc2n.umu.se" target="_blank">ake.sandgren@hpc2n.umu.se</a>&gt; wrote:<br>
&gt; <br>
&gt; \ufeff<br>
&gt; <br>
&gt;&gt; On 4/15/21 5:12 AM, Andreas Dilger via lustre-discuss wrote:<br>
&gt;&gt; On Apr 14, 2021, at 18:42, Bill Anderson via lustre-discuss<br>
&gt;&gt; &lt;<a href="mailto:lustre-discuss@lists.lustre.org" target="_blank">lustre-discuss@lists.lustre.org</a><br>
&gt;&gt; &lt;mailto:<a href="mailto:lustre-discuss@lists.lustre.org" target="_blank">lustre-discuss@lists.lustre.org</a>&gt;&gt; wrote:<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt;    Hi All,<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt;    I&#39;m trying to figure out how to migrate files stored on an OST to<br>
&gt;&gt;&gt; an MDT (that&#39;s using DoM) and to migrate files stored on an MDT to an<br>
&gt;&gt;&gt; OST (e.g., if the MDT is getting full).  I can see how to migrate<br>
&gt;&gt;&gt; between OSTs, but not between OSTs and MDTs.  I&#39;m running Lustre 2.12.3.<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt;  Do you happen to know the syntax for migration between OSTs and MDTs?<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt;    Thanks for any help!<br>
&gt;&gt; <br>
&gt;&gt; You just use &quot;lfs migrate &lt;file layout&gt; &lt;file&gt;&quot; to migrate from DoM<br>
&gt;&gt; files to OST objects.  However, OST-to-DoM migration isn&#39;t available<br>
&gt;&gt; until 2.13.<br>
&gt; <br>
&gt; Couldn&#39;t you just use lfs mirror extend with a PFL that points into the<br>
&gt; DoM, and then a resync/split<br>
<br>
Yes, and that&#39;s what happens in 2.13 when this functionality is<br>
implemented. To migrate from DoM-&gt;OST you can just make a copy of<br>
the file and swap layouts. The issue in 2.12 is that you can&#39;t write into the<br>
MDT inode to do OST-&gt;DoM migration/mirroring. <br>
<br>
Cheers, Andreas</blockquote></div>