<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:53:36 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-5683] HSM: re-archiving dirty file fails, request for cookie not found</title>
                <link>https://jira.whamcloud.com/browse/LU-5683</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;During some tests, an issue has been found that when a file is archived, released, changed and re-archived, the re-archival fails under some circumstances. The problem could be reproduced in a very simple way using the lhsmd_posix:&lt;/p&gt;

&lt;p&gt;Boot machines, start Lustre services (MDS, OSS1, OSS2, mount on both clients)&lt;/p&gt;

&lt;p&gt;Start copytool on client 2:&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;lhsmtool_posix -A 3 -A 4 -p /tmp /lustre
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Start test script on client 1:&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;arch=3
rm -f /lustre/mytest 
echo thisfile &amp;gt;/lustre/mytest
lfs hsm_archive -a $arch /lustre/mytest
sleep 3
lfs hsm_state /lustre/mytest
sleep 3
lfs hsm_release /lustre/mytest
sleep 3
lfs hsm_state /lustre/mytest
sleep 3
cat /etc/passwd &amp;gt;&amp;gt;/lustre/mytest
sleep 3
lfs hsm_state /lustre/mytest
sleep 3
lfs hsm_archive -a $arch /lustre/mytest
sleep 3
lfs hsm_state /lustre/mytest
sleep 5
lfs hsm_state /lustre/mytest
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Test script output&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;/lustre/mytest: (0x00000009) exists archived, archive_id:3
/lustre/mytest: (0x0000000d) released exists archived, archive_id:3
/lustre/mytest: (0x0000000b) exists dirty archived, archive_id:3
/lustre/mytest: (0x0000000b) exists dirty archived, archive_id:3
/lustre/mytest: (0x0000000b) exists dirty archived, archive_id:3
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Observations while watching the MDS syslog:&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;Sep 17 10:39:06 lustre-mds1 kernel: LustreError: 1396:0:(mdt_coordinator.c:1463:mdt_hsm_update_request_state()) lsttest-MDT0000: Cannot find running request for cookie 0x54194821 on fid=[0x200003ab0:0x1:0x0]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Observations on the copytool side:&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;lhsmtool_posix[1230]: action=0 src=(null) dst=(null) mount_point=/lustre
lhsmtool_posix[1230]: waiting for message from kernel
lhsmtool_posix[1230]: copytool fs=lsttest archive#=3 item_count=1
lhsmtool_posix[1230]: waiting for message from kernel
lhsmtool_posix[1231]: &apos;[0x200003ab0:0x1:0x0]&apos; action ARCHIVE reclen 72, cookie=0x5419481f
lhsmtool_posix[1231]: processing file &apos;mytest&apos;
lhsmtool_posix[1231]: archiving &apos;/lustre/.lustre/fid/0x200003ab0:0x1:0x0&apos; to &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0_tmp&apos;
lhsmtool_posix[1231]: saving stripe info of &apos;/lustre/.lustre/fid/0x200003ab0:0x1:0x0&apos; in /tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0_tmp.lov
lhsmtool_posix[1231]: going to copy data from &apos;/lustre/.lustre/fid/0x200003ab0:0x1:0x0&apos; to &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0_tmp&apos;
lhsmtool_posix[1231]: data archiving for &apos;/lustre/.lustre/fid/0x200003ab0:0x1:0x0&apos; to &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0_tmp&apos; done
lhsmtool_posix[1231]: attr file for &apos;/lustre/.lustre/fid/0x200003ab0:0x1:0x0&apos; saved to archive &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0_tmp&apos;
lhsmtool_posix[1231]: fsetxattr of &apos;trusted.hsm&apos; on &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0_tmp&apos; rc=0 (Success)
lhsmtool_posix[1231]: fsetxattr of &apos;trusted.link&apos; on &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0_tmp&apos; rc=0 (Success)
lhsmtool_posix[1231]: fsetxattr of &apos;trusted.lov&apos; on &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0_tmp&apos; rc=0 (Success)
lhsmtool_posix[1231]: fsetxattr of &apos;trusted.lma&apos; on &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0_tmp&apos; rc=0 (Success)
lhsmtool_posix[1231]: fsetxattr of &apos;lustre.lov&apos; on &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0_tmp&apos; rc=-1 (Operation not supported)
lhsmtool_posix[1231]: xattr file for &apos;/lustre/.lustre/fid/0x200003ab0:0x1:0x0&apos; saved to archive &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0_tmp&apos;
lhsmtool_posix[1231]: symlink &apos;/tmp/shadow/mytest&apos; to &apos;../0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0&apos; done
lhsmtool_posix[1231]: Action completed, notifying coordinator cookie=0x5419481f, FID=[0x200003ab0:0x1:0x0], hp_flags=0 err=0
lhsmtool_posix[1231]: llapi_hsm_action_end() on &apos;/lustre/.lustre/fid/0x200003ab0:0x1:0x0&apos; ok (rc=0)
lhsmtool_posix[1230]: copytool fs=lsttest archive#=3 item_count=1
lhsmtool_posix[1230]: waiting for message from kernel
lhsmtool_posix[1232]: &apos;[0x200003ab0:0x1:0x0]&apos; action RESTORE reclen 72, cookie=0x54194820
lhsmtool_posix[1232]: processing file &apos;mytest&apos;
lhsmtool_posix[1232]: reading stripe rules from &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0.lov&apos; for &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0&apos;
lhsmtool_posix[1232]: restoring data from &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0&apos; to &apos;{VOLATILE}=[0x200003ab1:0x1:0x0]&apos;
lhsmtool_posix[1232]: going to copy data from &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0&apos; to &apos;{VOLATILE}=[0x200003ab1:0x1:0x0]&apos;
lhsmtool_posix[1232]: data restore from &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0&apos; to &apos;{VOLATILE}=[0x200003ab1:0x1:0x0]&apos; done
lhsmtool_posix[1232]: Action completed, notifying coordinator cookie=0x54194820, FID=[0x200003ab0:0x1:0x0], hp_flags=0 err=0
lhsmtool_posix[1232]: llapi_hsm_action_end() on &apos;/lustre/.lustre/fid/0x200003ab0:0x1:0x0&apos; ok (rc=0)
lhsmtool_posix[1230]: copytool fs=lsttest archive#=3 item_count=1
lhsmtool_posix[1230]: waiting for message from kernel
lhsmtool_posix[1233]: &apos;[0x200003ab0:0x1:0x0]&apos; action ARCHIVE reclen 72, cookie=0x54194821
lhsmtool_posix[1233]: processing file &apos;mytest&apos;
lhsmtool_posix[1233]: archiving &apos;/lustre/.lustre/fid/0x200003ab0:0x1:0x0&apos; to &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0_tmp&apos;
lhsmtool_posix[1233]: saving stripe info of &apos;/lustre/.lustre/fid/0x200003ab0:0x1:0x0&apos; in /tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0_tmp.lov
lhsmtool_posix[1233]: going to copy data from &apos;/lustre/.lustre/fid/0x200003ab0:0x1:0x0&apos; to &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0_tmp&apos;
lhsmtool_posix[1233]: progress ioctl for copy &apos;/lustre/.lustre/fid/0x200003ab0:0x1:0x0&apos;-&amp;gt;&apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0_tmp&apos; failed: No such file or directory (2)
lhsmtool_posix[1233]: data copy failed from &apos;/lustre/.lustre/fid/0x200003ab0:0x1:0x0&apos; to &apos;/tmp/0001/0000/3ab0/0000/0002/0000/0x200003ab0:0x1:0x0_tmp&apos;: No such file or directory (2)
lhsmtool_posix[1233]: Action completed, notifying coordinator cookie=0x54194821, FID=[0x200003ab0:0x1:0x0], hp_flags=0 err=2
lhsmtool_posix[1233]: llapi_hsm_action_end() on &apos;/lustre/.lustre/fid/0x200003ab0:0x1:0x0&apos; failed: No such file or directory (2)
Immediately after the test, mdt/*/hsm/actions shows the following:
lrh=[type=10680000 len=136 idx=11/3] fid=[0x200003ab0:0x1:0x0] dfid=[0x200003ab0:0x1:0x0] compound/cookie=0x5419481f/0x5419481f action=ARCHIVE archive#=3 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=SUCCEED data=[]
lrh=[type=10680000 len=136 idx=11/6] fid=[0x200003ab0:0x1:0x0] dfid=[0x200003ab0:0x1:0x0] compound/cookie=0x54194820/0x54194820 action=RESTORE archive#=3 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=SUCCEED data=[]
lrh=[type=10680000 len=136 idx=11/9] fid=[0x200003ab0:0x1:0x0] dfid=[0x200003ab0:0x1:0x0] compound/cookie=0x54194821/0x54194821 action=ARCHIVE archive#=3 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=FAILED data=[]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;A second, later retry of the archive request sometimes works fine and it also makes a difference if the copytool and the command line actions run on the same client node or on different nodes.&lt;/p&gt;

&lt;p&gt;I already added this as a comment to the possibly related &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4004&quot; title=&quot;CLONE - flow control of HSM requests&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4004&quot;&gt;&lt;del&gt;LU-4004&lt;/del&gt;&lt;/a&gt;, but as this is closed, it doesn&apos;t seem to get attention any longer.&lt;/p&gt;</description>
                <environment>Scientific Linux 6.5, Lutre 2.6.0, 1 MDS, 2 OSSs, 2 clients, all VMs hosted on KVM.&lt;br/&gt;
Also reproducible with CentOS 6.5 in other environment.</environment>
        <key id="26777">LU-5683</key>
            <summary>HSM: re-archiving dirty file fails, request for cookie not found</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="jhammond">John Hammond</assignee>
                                    <reporter username="mkukat">Michael Kukat</reporter>
                        <labels>
                            <label>HSM</label>
                            <label>patch</label>
                    </labels>
                <created>Tue, 30 Sep 2014 06:21:22 +0000</created>
                <updated>Mon, 22 Aug 2016 15:47:45 +0000</updated>
                            <resolved>Fri, 22 May 2015 20:15:58 +0000</resolved>
                                    <version>Lustre 2.6.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>16</watches>
                                                                            <comments>
                            <comment id="95324" author="jlevi" created="Tue, 30 Sep 2014 17:10:23 +0000"  >&lt;p&gt;Jinshan,&lt;br/&gt;
Could you please have a look and comment on this one?&lt;br/&gt;
Thank you!&lt;/p&gt;</comment>
                            <comment id="111351" author="gerrit" created="Thu, 2 Apr 2015 12:15:03 +0000"  >&lt;p&gt;Henri Doreau (henri.doreau@cea.fr) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/14335&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14335&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5683&quot; title=&quot;HSM: re-archiving dirty file fails, request for cookie not found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5683&quot;&gt;&lt;del&gt;LU-5683&lt;/del&gt;&lt;/a&gt; llite: Report first encountered error&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: f2daad7c63ac19230a62dd22087a201b068ea41b&lt;/p&gt;</comment>
                            <comment id="111353" author="hdoreau" created="Thu, 2 Apr 2015 12:38:41 +0000"  >&lt;p&gt;There are two problems. The first one is incorrect error reporting from ll_ioc_copy_start.&lt;br/&gt;
The patch at &lt;a href=&quot;http://review.whamcloud.com/14335&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14335&lt;/a&gt; addresses this.&lt;/p&gt;

&lt;p&gt;The second issue is why re-archiving a file fails. I have not fully diagnosed it yet but what I see is a failure from ll_data_version() at ll_ioc_copy_start(). -ENOENT returned at some point in the OFD layer, propagated back and turned into -EIO by tgt_extent_lock().&lt;/p&gt;</comment>
                            <comment id="111643" author="gerrit" created="Tue, 7 Apr 2015 13:12:06 +0000"  >&lt;p&gt;Henri Doreau (henri.doreau@cea.fr) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/14377&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14377&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5683&quot; title=&quot;HSM: re-archiving dirty file fails, request for cookie not found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5683&quot;&gt;&lt;del&gt;LU-5683&lt;/del&gt;&lt;/a&gt; llite: Inform copytool of dataversion changes&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 2df254332de7046b2939e7925d522c5729879b8a&lt;/p&gt;</comment>
                            <comment id="113593" author="gerrit" created="Tue, 28 Apr 2015 05:20:51 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/14335/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14335/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5683&quot; title=&quot;HSM: re-archiving dirty file fails, request for cookie not found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5683&quot;&gt;&lt;del&gt;LU-5683&lt;/del&gt;&lt;/a&gt; llite: Report first encountered error&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 93ca2db26b4eecc15ee96289370a588b2d7bb35a&lt;/p&gt;</comment>
                            <comment id="113787" author="jhammond" created="Wed, 29 Apr 2015 17:18:56 +0000"  >&lt;p&gt;&amp;gt; The second issue is why re-archiving a file fails. I have not fully diagnosed it yet but what I see is a failure from ll_data_version() at ll_ioc_copy_start(). -ENOENT returned at some point in the OFD layer, propagated back and turned into -EIO by tgt_extent_lock().&lt;/p&gt;

&lt;p&gt;When the archive starts ll_data_version() uses the old layout (the layout that was valid before the file was released).&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;t:lustre# dd if=/dev/urandom of=f0 bs=1M count=1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.23944 s, 4.4 MB/s
t:lustre# lfs getstripe f0
f0
lmm_stripe_count:   1
lmm_stripe_size:    1048576
lmm_pattern:        1
lmm_layout_gen:     0
lmm_stripe_offset:  0
	obdidx		 objid		 objid		 group
	     0	             2	          0x2	             0

t:lustre# lfs hsm_archive f0
t:lustre# lfs hsm_state f0
f0: (0x00000001) exists, archive_id:1
t:lustre# lfs hsm_state f0
f0: (0x00000009) exists archived, archive_id:1
t:lustre# lfs hsm_release f0
t:lustre# lfs hsm_state f0
f0: (0x0000000d) released exists archived, archive_id:1
t:lustre# dd if=/dev/urandom of=f0 bs=1M count=1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.239978 s, 4.4 MB/s
t:lustre# lfs hsm_state f0
f0: (0x0000000b) exists dirty archived, archive_id:1
t:lustre# 
t:lustre# 
t:lustre# date +%s; lctl clear; lfs hsm_archive f0; lctl dk &amp;gt; /tmp/1.dk; sleep 1; lctl dk &amp;gt;&amp;gt; /tmp/1.dk
1430327516
t:lustre# lfs getstripe f0
f0
lmm_stripe_count:   1
lmm_stripe_size:    1048576
lmm_pattern:        1
lmm_layout_gen:     2
lmm_stripe_offset:  0
	obdidx		 objid		 objid		 group
	     0	             3	          0x3	             0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The error message from the OST_GETATTR handler show that the CT client send the old object id:&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;[  194.727468] LustreError: 3526:0:(ldlm_request.c:452:ldlm_cli_enqueue_local()) ### delayed lvb init failed (rc -2) ns: filter-lustre-OST0000_UUID lock: ffff8800d8bd2e90/0xba0c6f5e9969fb9 lrc: 2/0,0 mode: --/PR res: [0x2:0x0:0x0].0 rrc: 1 type: EXT [0-&amp;gt;0] (req 0-&amp;gt;0) flags: 0x40000000000000 nid: local remote: 0x0 expref: -99 pid: 3526 timeout: 0 lvb_type: 0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="113932" author="gerrit" created="Thu, 30 Apr 2015 21:07:55 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/14649&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14649&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5683&quot; title=&quot;HSM: re-archiving dirty file fails, request for cookie not found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5683&quot;&gt;&lt;del&gt;LU-5683&lt;/del&gt;&lt;/a&gt; clio: add CIT_DATA_VERSION&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 17ac7b8d2f87567ff898468ad77d1f2a577960b7&lt;/p&gt;</comment>
                            <comment id="113939" author="jay" created="Thu, 30 Apr 2015 22:19:30 +0000"  >&lt;blockquote&gt;
&lt;p&gt;When the restore starts ll_data_version() uses the old layout (the layout that was valid before the file was released).&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Do you actually mean &apos;archive&apos; when you said &apos;restore&apos;?&lt;/p&gt;

&lt;p&gt;I can see the problem. An easier way to fix the problem is:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; {
     gen = get_layout_version();
     ll_data_version();
} &lt;span class=&quot;code-keyword&quot;&gt;while&lt;/span&gt; (gen != get_layout_version())

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="113944" author="jhammond" created="Thu, 30 Apr 2015 22:42:36 +0000"  >&lt;p&gt;&amp;gt; Do you actually mean &apos;archive&apos; when you said &apos;restore&apos;?&lt;/p&gt;

&lt;p&gt;Yes.&lt;/p&gt;

&lt;p&gt;&amp;gt; I can see the problem. An easier way to fix the problem is:&lt;br/&gt;
&amp;gt; ...&lt;/p&gt;

&lt;p&gt;It&apos;s not clear what will terminate this loop.&lt;/p&gt;

&lt;p&gt;I think that unifying data version with the rest of CLIO is a better fix. With &lt;a href=&quot;http://review.whamcloud.com/#/c/14640/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/14640/&lt;/a&gt; we could get rid of some terrible crap like struct obd_info.&lt;/p&gt;</comment>
                            <comment id="113949" author="jay" created="Thu, 30 Apr 2015 23:31:57 +0000"  >&lt;p&gt;indeed.&lt;/p&gt;</comment>
                            <comment id="115996" author="gerrit" created="Wed, 20 May 2015 13:14:45 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/14649/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14649/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5683&quot; title=&quot;HSM: re-archiving dirty file fails, request for cookie not found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5683&quot;&gt;&lt;del&gt;LU-5683&lt;/del&gt;&lt;/a&gt; clio: add CIT_DATA_VERSION&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: fcd45488711ac7341eef2a1bed9c7a8021c57436&lt;/p&gt;</comment>
                            <comment id="116250" author="pjones" created="Fri, 22 May 2015 20:15:58 +0000"  >&lt;p&gt;Landed for 2.8&lt;/p&gt;</comment>
                            <comment id="125604" author="gerrit" created="Sat, 29 Aug 2015 01:03:27 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/14377/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14377/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5683&quot; title=&quot;HSM: re-archiving dirty file fails, request for cookie not found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5683&quot;&gt;&lt;del&gt;LU-5683&lt;/del&gt;&lt;/a&gt; llite: Inform copytool of dataversion changes&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: f99c0178e6d90bc6674f9d6a4e724b2c113b4a43&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </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|hzwxdz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>15920</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>