<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:51:27 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-5433] Man page for llapi_hsm_state_get(3) needs some clarification</title>
                <link>https://jira.whamcloud.com/browse/LU-5433</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I noticed this manage appeared to be a bit incorrect and could use some editing in general.&lt;/p&gt;

&lt;p&gt;One thing that caught my eye as not quite right:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;       HS_EXISTS           A file copy exists in HSM backend.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;That flag only indicates the file has been assigned an HSM archive id, and does not mean it&apos;s been copied yet.&lt;/p&gt;

&lt;p&gt;Patch in progress. &lt;/p&gt;</description>
                <environment></environment>
        <key id="25823">LU-5433</key>
            <summary>Man page for llapi_hsm_state_get(3) needs some clarification</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="rread">Robert Read</assignee>
                                    <reporter username="rread">Robert Read</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 Jul 2014 23:52:46 +0000</created>
                <updated>Tue, 22 Dec 2015 03:31:33 +0000</updated>
                            <resolved>Mon, 22 Jun 2015 23:13:42 +0000</resolved>
                                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="90501" author="rread" created="Thu, 31 Jul 2014 00:11:35 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#/c/11283/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/11283/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="94587" author="adegremont" created="Sun, 21 Sep 2014 13:56:32 +0000"  >&lt;p&gt;&amp;gt; That flag only indicates the file has been assigned an HSM archive id, and does not mean it&apos;s been copied yet.&lt;/p&gt;

&lt;p&gt;That&apos;s true but you&apos;re losing an important point which is: it does mean that a copy could have been started. But failed for some reasons. &lt;br/&gt;
When this flag&apos;s set, administrators should consider a copy possibly exists in the backend pointed by archive_id. Especially if you are removing file from Lustre, you must take care of this flag. I&apos;m afraid you lose this aspect if you change the documentation this way.&lt;/p&gt;</comment>
                            <comment id="94627" author="rread" created="Mon, 22 Sep 2014 15:19:31 +0000"  >&lt;p&gt;I agree that flag indicates a file copy may or may not have been started, but there is no way to tell. If a copy exists in the backend and the ARCHIVE flag is not set, then it should be the backend&apos;s responsibility to clean this up, not the admin&apos;s.   &lt;/p&gt;</comment>
                            <comment id="94698" author="adegremont" created="Tue, 23 Sep 2014 09:48:38 +0000"  >&lt;p&gt;But the backend has no access to Lustre flags. Actually the backend is mostly Lustre agnostic. Those stale copies should be cleaned when the corresponding Lustre file is removed. This is the purpose of HS_EXISTS.&lt;/p&gt;</comment>
                            <comment id="94720" author="rread" created="Tue, 23 Sep 2014 15:29:03 +0000"  >&lt;p&gt;It seems to me the copytool is the arbiter between the backend and Lustre state, and should be responsible for handling errors correctly. My interpretation of the flags is HS_ARCHIVED is set once a complete copy has been made in the backend, so it should only be possible for stale objects to exist of HS_ARCHIVED is also set. If only HS_EXISTS is set, then it seems one of several things could be true:&lt;/p&gt;

&lt;p&gt;1) Nothing has been done to this file because copytool hasn&apos;t received the action request yet.&lt;br/&gt;
2) A copy is currently in progress&lt;br/&gt;
3) A copytool received action request but failed, and copytool/backed should arrange for proper cleanup&lt;/p&gt;

</comment>
                            <comment id="95033" author="leibovici-cea" created="Fri, 26 Sep 2014 11:44:42 +0000"  >&lt;p&gt;In case a problem occurs during the copy (backend outage, Lustre crash, copytool crash...) the copytool may not be able to clean the backend properly by itself.&lt;br/&gt;
Making the backend responsible for cleaning may not be appropriate or not possible, as it can be a very expensive to scan the whole backend namespace to search for aborted copy files (also, it must have a way to distinguish a regular copy from an aborted copy...).&lt;/p&gt;

&lt;p&gt;Cleaning is not a problem if an entry is archived again: the copytool can do the cleaning of the previously aborted copy at this time. But, there is a leakage if the entry is removed from lustre in the meanwhile. In this case, HS_EXISTS flag is relayed in UNLINK changelog record so the Policy Engine is aware it must trigger a HSM_REMOVE action. This way, even a failed copy is correctly cleaned in the backend after file removal.&lt;/p&gt;</comment>
                            <comment id="118962" author="fsaunier" created="Thu, 18 Jun 2015 14:54:56 +0000"  >&lt;p&gt;Does this mean that whenever HS_EXISTS is not set, the archive_id can be safely ignored? And if so, should it be still displayed by &quot;lfs hsm_state&quot; after a &quot;lfs hsm_remove&quot;?&lt;/p&gt;</comment>
                            <comment id="118969" author="adegremont" created="Thu, 18 Jun 2015 15:13:01 +0000"  >&lt;p&gt;&amp;gt; Does this mean that whenever HS_EXISTS is not set, the archive_id can be safely ignored?&lt;/p&gt;

&lt;p&gt;Yes, but in theory this should not happened. archive_id is set at the same time than HS_EXISTS.&lt;/p&gt;

&lt;p&gt;&amp;gt; And if so, should it be still displayed by &quot;lfs hsm_state&quot; after a &quot;lfs hsm_remove&quot;?&lt;/p&gt;

&lt;p&gt;A successful hsm_remove should clear both of them.&lt;br/&gt;
This is strange if you ran this command and archive_id was kept.&lt;/p&gt;</comment>
                            <comment id="119115" author="gerrit" created="Fri, 19 Jun 2015 15:45:01 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/11283/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/11283/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5433&quot; title=&quot;Man page for llapi_hsm_state_get(3) needs some clarification&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5433&quot;&gt;&lt;del&gt;LU-5433&lt;/del&gt;&lt;/a&gt; doc: update llapi_hsm_state_get manpage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 0572733bf6e41b35331358c33289ab46e0182878&lt;/p&gt;</comment>
                            <comment id="119288" author="rread" created="Mon, 22 Jun 2015 23:13:42 +0000"  >&lt;p&gt;Landed on master.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="15441" name="llapi_hsm_state_get.txt" size="5706" author="rread" created="Thu, 31 Jul 2014 00:11:35 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzwsp3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>15134</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>