<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:04:16 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-13794] changing comp-flags using lfs setstripe could get stuck when ost is down</title>
                <link>https://jira.whamcloud.com/browse/LU-13794</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;we are testing FLR setup and found out lfs setstripe could get stuck.&lt;/p&gt;

&lt;p&gt;After creating the FLR layout and lfs mirror resync:&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;
[root@bss022 test_file_replica]# lfs getstripe -v test-file1 
test-file1
composite_header:
  lcm_magic:         0x0BD60BD0
  lcm_size:          272
  lcm_flags:         ro
  lcm_layout_gen:    11
  lcm_mirror_count:  2
  lcm_entry_count:   2
components:
  - lcme_id:             65537
    lcme_mirror_id:      1
    lcme_flags:          init
    lcme_extent.e_start: 0
    lcme_extent.e_end:   EOF
    lcme_offset:         128
    lcme_size:           72
    sub_layout:
      lmm_magic:         0x0BD30BD0
      lmm_seq:           0xa80000d30
      lmm_object_id:     0x6
      lmm_fid:           [0xa80000d30:0x6:0x0]
      lmm_stripe_count:  1
      lmm_stripe_size:   1048576
      lmm_pattern:       raid0
      lmm_layout_gen:    0
      lmm_stripe_offset: 9
      lmm_pool:          primary
      lmm_objects:
      - 0: { l_ost_idx: 9, l_fid: [0x440000419:0x17e2:0x0] }  - lcme_id:             131074
    lcme_mirror_id:      2
    lcme_flags:          init
    lcme_extent.e_start: 0
    lcme_extent.e_end:   EOF
    lcme_offset:         200
    lcme_size:           72
    sub_layout:
      lmm_magic:         0x0BD30BD0
      lmm_seq:           0xa80000d30
      lmm_object_id:     0x6
      lmm_fid:           [0xa80000d30:0x6:0x0]
      lmm_stripe_count:  1
      lmm_stripe_size:   1048576
      lmm_pattern:       raid0
      lmm_layout_gen:    0
      lmm_stripe_offset: 13
      lmm_pool:          secondary
      lmm_objects:
      - 0: { l_ost_idx: 13, l_fid: [0x2800000408:0x1802:0x0] }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;after putting ost9 offline we are still able to read the file.&lt;/p&gt;

&lt;p&gt;but in order to be able to write the file we need to set the preferred flag on the other component:&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;
lfs setstripe --comp-set -I 131074 --comp-flags=prefer test-file1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;however it will get stuck because lfs is trying to flush the client cache to ost9 which is offline.&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;
[&amp;lt;ffffffffc1433f94&amp;gt;] osc_io_data_version_end+0x34/0x190 [osc]
[&amp;lt;ffffffffc0fc4ee0&amp;gt;] cl_io_end+0x60/0x150 [obdclass]
[&amp;lt;ffffffffc0e0a0bb&amp;gt;] lov_io_end_wrapper+0xdb/0xe0 [lov]
[&amp;lt;ffffffffc0e0ad38&amp;gt;] lov_io_data_version_end+0x78/0x1d0 [lov]
[&amp;lt;ffffffffc0fc4ee0&amp;gt;] cl_io_end+0x60/0x150 [obdclass]
[&amp;lt;ffffffffc0fc779a&amp;gt;] cl_io_loop+0xda/0x1c0 [obdclass]
[&amp;lt;ffffffffc1513bcb&amp;gt;] ll_ioc_data_version+0x20b/0x340 [lustre]
[&amp;lt;ffffffffc15283e0&amp;gt;] ll_file_ioctl+0x19d0/0x49f0 [lustre]
[&amp;lt;ffffffffb665d9e0&amp;gt;] do_vfs_ioctl+0x3a0/0x5a0
[&amp;lt;ffffffffb665dc81&amp;gt;] SyS_ioctl+0xa1/0xc0
[&amp;lt;ffffffffb6b8cede&amp;gt;] system_call_fastpath+0x25/0x2a
[&amp;lt;ffffffffffffffff&amp;gt;] 0xffffffffffffffff
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="60002">LU-13794</key>
            <summary>changing comp-flags using lfs setstripe could get stuck when ost is down</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="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="bobijam">Zhenyu Xu</assignee>
                                    <reporter username="dongyang">Dongyang Li</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Jul 2020 05:50:51 +0000</created>
                <updated>Fri, 17 Jul 2020 09:14:38 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="275614" author="gerrit" created="Fri, 17 Jul 2020 08:04:49 +0000"  >&lt;p&gt;Bobi Jam (bobijam@hotmail.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/39411&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39411&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13794&quot; title=&quot;changing comp-flags using lfs setstripe could get stuck when ost is down&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13794&quot;&gt;LU-13794&lt;/a&gt; util: changing comp-flags get stuck when OST is down&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: c426989c5b8deae0d0ecfad0bd380bbbf98dea17&lt;/p&gt;</comment>
                            <comment id="275618" author="adilger" created="Fri, 17 Jul 2020 09:14:38 +0000"  >&lt;p&gt;I don&apos;t think the user should have to set the preferred mirror when writing to an FLR file with a failed OST.  Definitely the MDS should automatically pick a mirror that is not missing objects to avoid this problem.&lt;/p&gt;

&lt;p&gt;In some cases, there may be a race condition where an OST goes offline right after the MDS selected it for a mirror, but I don&apos;t think applies here.  If a user noticed the problem and has time to run &quot;&lt;tt&gt;lfs setstripe&lt;/tt&gt;&quot; then the MDS has had lots of time to detect the problem itself and skip the mirror with that OST.&lt;/p&gt;</comment>
                    </comments>
                    <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|i015e7:</customfieldvalue>

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