<div dir="ltr">Thanks very much for the replies.. We are utilizing Lustre as a fast cache on-top of S3.<div>   <div>AWS support has simply said they are not sure, but it is hard to break through their defensive first line of support.   <div>You have given me several avenues to explore. I did try the --exist flag, but did not have a correct set of parameters. </div><div>I will also see if I can access the s3-copytool directly.</div><div>I will investigate and report back any findings.</div><div><br></div><div>Thank You,</div><div>Kris</div><div>   </div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 8, 2020 at 7:03 AM Degremont, Aurelien &lt;<a href="mailto:degremoa@amazon.com">degremoa@amazon.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">Hi Kris,<br>
<br>
As people said each HSM has its own copytool with its own constraints. To work properly with S3, additional metadata is stored in Lustre when files are imported from a S3 bucket.<br>
Questions specific to Amazon FSx For Lustre would be better asked to AWS support. <br>
<br>
Aurélien<br>
<br>
\ufeffLe 08/01/2020 14:14, « Matt Rásó-Barnett » &lt;<a href="mailto:matt@rasobarnett.com" target="_blank">matt@rasobarnett.com</a>&gt; a écrit :<br>
<br>
    Hi Kris,<br>
    I assume you are using Amazon&#39;s FSx for Lustre product <br>
    (<a href="https://aws.amazon.com/fsx/lustre/" rel="noreferrer" target="_blank">https://aws.amazon.com/fsx/lustre/</a>) for this, rather than rolling <br>
    Lustre HSM to S3 on AWS yourself?<br>
<br>
    I&#39;m afraid I don&#39;t know any more than you do on this product but it&#39;s <br>
    something I&#39;ve been keen to play with as it sounds really interesting.<br>
<br>
    However the process or policy-engine by which Amazon are mapping S3 <br>
    objects to files in Lustre is not part of Lustre itself so you&#39;d need <br>
    input from Amazon on this - maybe Aurelien (in BCC) can comment here?<br>
<br>
     From their overview documenation my understanding is that the Lustre FS <br>
    is meant to be short lived in this model, so you create it populated <br>
    with the contents of the bucket *at that time*, run your workload, then <br>
    archive results back and delete the FS.<br>
<br>
    So if your bucket has been updated post Lustre FS creation, you may have <br>
    to destroy the Lustre FS and recreate it to notice the changes. HSM <br>
    isn&#39;t designed to be a mechanism for synchronising two endpoints that <br>
    change independent of the other, so any change to the backend not via <br>
    the filesystem will not be tracked.<br>
<br>
    This is just me guessing without having used it however, I&#39;ll be <br>
    interested to hear if you learn more about this from Amazon.<br>
<br>
    Kind regards,<br>
<br>
    Matt<br>
<br>
    On Tue, Jan 07, 2020 at 03:18:39PM -0800, Kristian Kvilekval wrote:<br>
    &gt;We have Lustre &lt;- HSM -&gt; S3<br>
    &gt;<br>
    &gt;We have direct modifications to S3 that occur after the Lustre filesystem<br>
    &gt;is created<br>
    &gt;I was  wondering if there is any way to register a new/deleted file at the<br>
    &gt;Lustre level using HSM or other commands<br>
    &gt;<br>
    &gt;Say a user uploads a file to S3, and I know  the mapped path in Lustre,<br>
    &gt;I would like to do<br>
    &gt;lfs hsm_register /path/to/file/in/S3/     # Create a metadata entry in<br>
    &gt;Lustre<br>
    &gt;lfs hsm_restore /path/to/file/in/S3       # Fetch file from S3 into Lustre<br>
    &gt;<br>
    &gt;Thx<br>
    &gt;<br>
    &gt;<br>
    &gt;<br>
    &gt;<br>
    &gt;<br>
    &gt;<br>
    &gt;On Tue, Jan 7, 2020 at 8:04 AM Colin Faber &lt;<a href="mailto:cfaber@gmail.com" target="_blank">cfaber@gmail.com</a>&gt; wrote:<br>
    &gt;<br>
    &gt;&gt; Can you provide an example of what you&#39;re attempting to accomplish?  Am I<br>
    &gt;&gt; understanding correctly, that you&#39;ve got a lustre file system, you&#39;re then<br>
    &gt;&gt; writing data into this file system?<br>
    &gt;&gt;<br>
    &gt;&gt; On Mon, Jan 6, 2020 at 10:02 PM Kristian Kvilekval &lt;<a href="mailto:kris@viqi.org" target="_blank">kris@viqi.org</a>&gt; wrote:<br>
    &gt;&gt;<br>
    &gt;&gt;&gt; We are using Lustre on AWS backed by S3 buckets.<br>
    &gt;&gt;&gt; When creating a new Lustre filesystem, S3 metadata can be automatically<br>
    &gt;&gt;&gt; imported  into Lustre.  When changes occur to the underlying S3 store,<br>
    &gt;&gt;&gt; these changes are not automatically reflected.<br>
    &gt;&gt;&gt;<br>
    &gt;&gt;&gt; Is it possible to indicate the creation / deletion of the underlying S3<br>
    &gt;&gt;&gt; files after filesystem creation using HSM?<br>
    &gt;&gt;&gt; Is it possible to reimport the underlying metadata after creation?<br>
    &gt;&gt;&gt;<br>
    &gt;&gt;&gt; Any pointers appreciated.<br>
    &gt;&gt;&gt;<br>
    &gt;&gt;&gt; Thanks,<br>
    &gt;&gt;&gt; Kris<br>
    &gt;&gt;&gt;<br>
    &gt;&gt;&gt; --<br>
    &gt;&gt;&gt; Kris Kvilekval, Ph.D.<br>
    &gt;&gt;&gt; ViQi Inc<br>
    &gt;&gt;&gt; (805)-699-6081<br>
    &gt;&gt;&gt; _______________________________________________<br>
    &gt;&gt;&gt; lustre-discuss mailing list<br>
    &gt;&gt;&gt; <a href="mailto:lustre-discuss@lists.lustre.org" target="_blank">lustre-discuss@lists.lustre.org</a><br>
    &gt;&gt;&gt; <a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" rel="noreferrer" target="_blank">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br>
    &gt;&gt;&gt;<br>
    &gt;&gt;<br>
    &gt;<br>
    &gt;-- <br>
    &gt;Kris Kvilekval, Ph.D.<br>
    &gt;ViQi Inc<br>
    &gt;(805)-699-6081<br>
<br>
    &gt;_______________________________________________<br>
    &gt;lustre-discuss mailing list<br>
    &gt;<a href="mailto:lustre-discuss@lists.lustre.org" target="_blank">lustre-discuss@lists.lustre.org</a><br>
    &gt;<a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" rel="noreferrer" target="_blank">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br>
<br>
<br>
_______________________________________________<br>
lustre-discuss mailing list<br>
<a href="mailto:lustre-discuss@lists.lustre.org" target="_blank">lustre-discuss@lists.lustre.org</a><br>
<a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" rel="noreferrer" target="_blank">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Kris Kvilekval, Ph.D.<br>ViQi Inc<br>(805)-699-6081</div>