<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:45:53 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-4791] lod_ah_init() ASSERTION( lc-&gt;ldo_stripenr == 0 ) failed:</title>
                <link>https://jira.whamcloud.com/browse/LU-4791</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Lustre: 2.4.2&lt;br/&gt;
kernel: 2.6.32-431.1.2&lt;br/&gt;
configuration to reproduce: 2 nodes&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;first node: MGT + MDT + 170 OSTs (loop devices)&lt;/li&gt;
	&lt;li&gt;second node: client&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;On a file system with 170 OSTs but without &quot;wide striping&quot; enabled (ea_inode not set on MDT), issuing an &quot;lctl setstripe -1 &amp;lt;file&amp;gt;&quot; command and then writing in this file causes a MDS crash.&lt;br/&gt;
lctl fails with ENOSPC, but the file is created&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;# lfs setstripe -c -1 /fs_pv/170_stripe_file
error on ioctl 0x4008669a for &apos;/fs_pv/170_stripe_file&apos; (3): No space left on device
error: setstripe: create stripe file &apos;/fs_pv/170_stripe_file&apos; failed
# ls -l /fs_pv/
total 0
-rw-r--r-- 1 root root 0 Mar 20 14:17 170_stripe_file
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;after &quot;lfs setstripe&quot; command, the dmesg content on MDS is the following:&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;# dmesg
Lustre: 11776:0:(osd_handler.c:833:osd_trans_start()) fs_pv-MDT0000: too many transaction credits (2424 &amp;gt; 2048)
Lustre: 11776:0:(osd_handler.c:840:osd_trans_start())   create: 0/0, delete: 0/0, destroy: 0/0
Lustre: 11776:0:(osd_handler.c:845:osd_trans_start())   attr_set: 0/0, xattr_set: 2/28
Lustre: 11776:0:(osd_handler.c:852:osd_trans_start())   write: 171/2394, punch: 0/0, quota 2/2
Lustre: 11776:0:(osd_handler.c:857:osd_trans_start())   insert: 0/0, delete: 0/0
Lustre: 11776:0:(osd_handler.c:862:osd_trans_start())   ref_add: 0/0, ref_del: 0/0
Pid: 11776, comm: mdt01_005

Call Trace:
 [&amp;lt;ffffffffa03a5895&amp;gt;] libcfs_debug_dumpstack+0x55/0x80 [libcfs]
 [&amp;lt;ffffffffa0bb131e&amp;gt;] osd_trans_start+0x65e/0x680 [osd_ldiskfs]
 [&amp;lt;ffffffffa0cd8309&amp;gt;] lod_trans_start+0x1b9/0x250 [lod]
 [&amp;lt;ffffffffa084b357&amp;gt;] mdd_trans_start+0x17/0x20 [mdd]
 [&amp;lt;ffffffffa083b0b9&amp;gt;] mdd_create_data+0x539/0x7d0 [mdd]
 [&amp;lt;ffffffffa0c4beac&amp;gt;] mdt_finish_open+0x125c/0x1950 [mdt]
 [&amp;lt;ffffffffa0c47778&amp;gt;] ? mdt_object_open_lock+0x1c8/0x510 [mdt]
 [&amp;lt;ffffffffa0c4ca56&amp;gt;] mdt_open_by_fid_lock+0x4b6/0x7d0 [mdt]
 [&amp;lt;ffffffffa0c4d5cb&amp;gt;] mdt_reint_open+0x56b/0x21d0 [mdt]
 [&amp;lt;ffffffffa03c283e&amp;gt;] ? upcall_cache_get_entry+0x28e/0x860 [libcfs]
 [&amp;lt;ffffffffa06fcdbc&amp;gt;] ? lustre_msg_add_version+0x6c/0xc0 [ptlrpc]
 [&amp;lt;ffffffffa0592240&amp;gt;] ? lu_ucred+0x20/0x30 [obdclass]
 [&amp;lt;ffffffffa0c18015&amp;gt;] ? mdt_ucred+0x15/0x20 [mdt]
 [&amp;lt;ffffffffa0c342ec&amp;gt;] ? mdt_root_squash+0x2c/0x410 [mdt]
 [&amp;lt;ffffffffa0724636&amp;gt;] ? __req_capsule_get+0x166/0x700 [ptlrpc]
 [&amp;lt;ffffffffa0592240&amp;gt;] ? lu_ucred+0x20/0x30 [obdclass]
 [&amp;lt;ffffffffa0c38aa1&amp;gt;] mdt_reint_rec+0x41/0xe0 [mdt]
 [&amp;lt;ffffffffa0c1dc73&amp;gt;] mdt_reint_internal+0x4c3/0x780 [mdt]
 [&amp;lt;ffffffffa0c1e1fd&amp;gt;] mdt_intent_reint+0x1ed/0x520 [mdt]
 [&amp;lt;ffffffffa0c1c0ae&amp;gt;] mdt_intent_policy+0x39e/0x720 [mdt]
 [&amp;lt;ffffffffa06b4831&amp;gt;] ldlm_lock_enqueue+0x361/0x8d0 [ptlrpc]
 [&amp;lt;ffffffffa06db1df&amp;gt;] ldlm_handle_enqueue0+0x4ef/0x10b0 [ptlrpc]
 [&amp;lt;ffffffffa0c1c536&amp;gt;] mdt_enqueue+0x46/0xe0 [mdt]
 [&amp;lt;ffffffffa0c22c27&amp;gt;] mdt_handle_common+0x647/0x16d0 [mdt]
 [&amp;lt;ffffffffa06fdb9c&amp;gt;] ? lustre_msg_get_transno+0x8c/0x100 [ptlrpc]
 [&amp;lt;ffffffffa0c5c835&amp;gt;] mds_regular_handle+0x15/0x20 [mdt]
 [&amp;lt;ffffffffa070d3b8&amp;gt;] ptlrpc_server_handle_request+0x398/0xc60 [ptlrpc]
 [&amp;lt;ffffffffa03a65de&amp;gt;] ? cfs_timer_arm+0xe/0x10 [libcfs]
 [&amp;lt;ffffffffa03b7d9f&amp;gt;] ? lc_watchdog_touch+0x6f/0x170 [libcfs]
 [&amp;lt;ffffffffa0704719&amp;gt;] ? ptlrpc_wait_event+0xa9/0x290 [ptlrpc]
 [&amp;lt;ffffffff81058bd3&amp;gt;] ? __wake_up+0x53/0x70
 [&amp;lt;ffffffffa070e74e&amp;gt;] ptlrpc_main+0xace/0x1700 [ptlrpc]
 [&amp;lt;ffffffffa070dc80&amp;gt;] ? ptlrpc_main+0x0/0x1700 [ptlrpc]
 [&amp;lt;ffffffff8100c20a&amp;gt;] child_rip+0xa/0x20
 [&amp;lt;ffffffffa070dc80&amp;gt;] ? ptlrpc_main+0x0/0x1700 [ptlrpc]
 [&amp;lt;ffffffffa070dc80&amp;gt;] ? ptlrpc_main+0x0/0x1700 [ptlrpc]
 [&amp;lt;ffffffff8100c200&amp;gt;] ? child_rip+0x0/0x20
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When trying to write to the file, the write command hangs and the MDS crashes:&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;# echo Hello &amp;gt; /fs_pv/170_stripe_file 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;After MDS is restarted, the crash trace is the following:&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;crash&amp;gt; bt
PID: 5428   TASK: ffff88031ae66ac0  CPU: 5   COMMAND: &quot;mdt01_001&quot;
 #0 [ffff880315645738] machine_kexec at ffffffff8103915b
 #1 [ffff880315645798] crash_kexec at ffffffff810c5e62
 #2 [ffff880315645868] panic at ffffffff815280aa
 #3 [ffff8803156458e8] lbug_with_loc at ffffffffa03a5eeb [libcfs]
 #4 [ffff880315645908] lod_ah_init at ffffffffa0cee9ef [lod]
 #5 [ffff880315645968] mdd_object_make_hint at ffffffffa082ea83 [mdd]
 #6 [ffff880315645998] mdd_create_data at ffffffffa083aeb2 [mdd]
 #7 [ffff8803156459f8] mdt_finish_open at ffffffffa0c4beac [mdt]
 #8 [ffff880315645a88] mdt_reint_open at ffffffffa0c4e046 [mdt]
 #9 [ffff880315645b78] mdt_reint_rec at ffffffffa0c38aa1 [mdt]
#10 [ffff880315645b98] mdt_reint_internal at ffffffffa0c1dc73 [mdt]
#11 [ffff880315645bd8] mdt_intent_reint at ffffffffa0c1e1fd [mdt]
#12 [ffff880315645c28] mdt_intent_policy at ffffffffa0c1c0ae [mdt]
#13 [ffff880315645c68] ldlm_lock_enqueue at ffffffffa06b4831 [ptlrpc]
#14 [ffff880315645cc8] ldlm_handle_enqueue0 at ffffffffa06db1df [ptlrpc]
#15 [ffff880315645d38] mdt_enqueue at ffffffffa0c1c536 [mdt]
#16 [ffff880315645d58] mdt_handle_common at ffffffffa0c22c27 [mdt]
#17 [ffff880315645da8] mds_regular_handle at ffffffffa0c5c835 [mdt]
#18 [ffff880315645db8] ptlrpc_server_handle_request at ffffffffa070d3b8 [ptlrpc]
#19 [ffff880315645eb8] ptlrpc_main at ffffffffa070e74e [ptlrpc]
#20 [ffff880315645f48] kernel_thread at ffffffff8100c20a

crash&amp;gt; log | tail -80

LustreError: 5428:0:(lod_object.c:704:lod_ah_init()) ASSERTION( lc-&amp;gt;ldo_stripenr == 0 ) failed: 
LustreError: 5428:0:(lod_object.c:704:lod_ah_init()) LBUG
Pid: 5428, comm: mdt01_001

Call Trace:
 [&amp;lt;ffffffffa03a5895&amp;gt;] libcfs_debug_dumpstack+0x55/0x80 [libcfs]
 [&amp;lt;ffffffffa03a5e97&amp;gt;] lbug_with_loc+0x47/0xb0 [libcfs]
 [&amp;lt;ffffffffa0cee9ef&amp;gt;] lod_ah_init+0x57f/0x5c0 [lod]
 [&amp;lt;ffffffffa082ea83&amp;gt;] mdd_object_make_hint+0x83/0xa0 [mdd]
 [&amp;lt;ffffffffa083aeb2&amp;gt;] mdd_create_data+0x332/0x7d0 [mdd]
 [&amp;lt;ffffffffa0c4beac&amp;gt;] mdt_finish_open+0x125c/0x1950 [mdt]
 [&amp;lt;ffffffffa0c47778&amp;gt;] ? mdt_object_open_lock+0x1c8/0x510 [mdt]
 [&amp;lt;ffffffffa0c4e046&amp;gt;] mdt_reint_open+0xfe6/0x21d0 [mdt]
 [&amp;lt;ffffffffa03c283e&amp;gt;] ? upcall_cache_get_entry+0x28e/0x860 [libcfs]
 [&amp;lt;ffffffffa06fcdbc&amp;gt;] ? lustre_msg_add_version+0x6c/0xc0 [ptlrpc]
 [&amp;lt;ffffffffa0c38aa1&amp;gt;] mdt_reint_rec+0x41/0xe0 [mdt]
 [&amp;lt;ffffffffa0c1dc73&amp;gt;] mdt_reint_internal+0x4c3/0x780 [mdt]
 [&amp;lt;ffffffffa0c1e1fd&amp;gt;] mdt_intent_reint+0x1ed/0x520 [mdt]
 [&amp;lt;ffffffffa0c1c0ae&amp;gt;] mdt_intent_policy+0x39e/0x720 [mdt]
 [&amp;lt;ffffffffa06b4831&amp;gt;] ldlm_lock_enqueue+0x361/0x8d0 [ptlrpc]
 [&amp;lt;ffffffffa06db1df&amp;gt;] ldlm_handle_enqueue0+0x4ef/0x10b0 [ptlrpc]
 [&amp;lt;ffffffffa0c1c536&amp;gt;] mdt_enqueue+0x46/0xe0 [mdt]
 [&amp;lt;ffffffffa0c22c27&amp;gt;] mdt_handle_common+0x647/0x16d0 [mdt]
 [&amp;lt;ffffffffa06fdb9c&amp;gt;] ? lustre_msg_get_transno+0x8c/0x100 [ptlrpc]
 [&amp;lt;ffffffffa0c5c835&amp;gt;] mds_regular_handle+0x15/0x20 [mdt]
 [&amp;lt;ffffffffa070d3b8&amp;gt;] ptlrpc_server_handle_request+0x398/0xc60 [ptlrpc]
 [&amp;lt;ffffffffa03a65de&amp;gt;] ? cfs_timer_arm+0xe/0x10 [libcfs]
 [&amp;lt;ffffffffa03b7d9f&amp;gt;] ? lc_watchdog_touch+0x6f/0x170 [libcfs]
 [&amp;lt;ffffffffa0704719&amp;gt;] ? ptlrpc_wait_event+0xa9/0x290 [ptlrpc]
 [&amp;lt;ffffffff81058bd3&amp;gt;] ? __wake_up+0x53/0x70
 [&amp;lt;ffffffffa070e74e&amp;gt;] ptlrpc_main+0xace/0x1700 [ptlrpc]
 [&amp;lt;ffffffffa070dc80&amp;gt;] ? ptlrpc_main+0x0/0x1700 [ptlrpc]
 [&amp;lt;ffffffff8100c20a&amp;gt;] child_rip+0xa/0x20
 [&amp;lt;ffffffffa070dc80&amp;gt;] ? ptlrpc_main+0x0/0x1700 [ptlrpc]
 [&amp;lt;ffffffffa070dc80&amp;gt;] ? ptlrpc_main+0x0/0x1700 [ptlrpc]
 [&amp;lt;ffffffff8100c200&amp;gt;] ? child_rip+0x0/0x20

Kernel panic - not syncing: LBUG
Pid: 5428, comm: mdt01_001 Not tainted 2.6.32-431.1.2.el6.Bull.44.x86_64 #1
Call Trace:
 [&amp;lt;ffffffff815280a3&amp;gt;] ? panic+0xa7/0x16f
 [&amp;lt;ffffffffa03a5eeb&amp;gt;] ? lbug_with_loc+0x9b/0xb0 [libcfs]
 [&amp;lt;ffffffffa0cee9ef&amp;gt;] ? lod_ah_init+0x57f/0x5c0 [lod]
 [&amp;lt;ffffffffa082ea83&amp;gt;] ? mdd_object_make_hint+0x83/0xa0 [mdd]
 [&amp;lt;ffffffffa083aeb2&amp;gt;] ? mdd_create_data+0x332/0x7d0 [mdd]
 [&amp;lt;ffffffffa0c4beac&amp;gt;] ? mdt_finish_open+0x125c/0x1950 [mdt]
 [&amp;lt;ffffffffa0c47778&amp;gt;] ? mdt_object_open_lock+0x1c8/0x510 [mdt]
 [&amp;lt;ffffffffa0c4e046&amp;gt;] ? mdt_reint_open+0xfe6/0x21d0 [mdt]
 [&amp;lt;ffffffffa03c283e&amp;gt;] ? upcall_cache_get_entry+0x28e/0x860 [libcfs]
 [&amp;lt;ffffffffa06fcdbc&amp;gt;] ? lustre_msg_add_version+0x6c/0xc0 [ptlrpc]
 [&amp;lt;ffffffffa0c38aa1&amp;gt;] ? mdt_reint_rec+0x41/0xe0 [mdt]
 [&amp;lt;ffffffffa0c1dc73&amp;gt;] ? mdt_reint_internal+0x4c3/0x780 [mdt]
 [&amp;lt;ffffffffa0c1e1fd&amp;gt;] ? mdt_intent_reint+0x1ed/0x520 [mdt]
 [&amp;lt;ffffffffa0c1c0ae&amp;gt;] ? mdt_intent_policy+0x39e/0x720 [mdt]
 [&amp;lt;ffffffffa06b4831&amp;gt;] ? ldlm_lock_enqueue+0x361/0x8d0 [ptlrpc]
 [&amp;lt;ffffffffa06db1df&amp;gt;] ? ldlm_handle_enqueue0+0x4ef/0x10b0 [ptlrpc]
 [&amp;lt;ffffffffa0c1c536&amp;gt;] ? mdt_enqueue+0x46/0xe0 [mdt]
 [&amp;lt;ffffffffa0c22c27&amp;gt;] ? mdt_handle_common+0x647/0x16d0 [mdt]
 [&amp;lt;ffffffffa06fdb9c&amp;gt;] ? lustre_msg_get_transno+0x8c/0x100 [ptlrpc]
 [&amp;lt;ffffffffa0c5c835&amp;gt;] ? mds_regular_handle+0x15/0x20 [mdt]
 [&amp;lt;ffffffffa070d3b8&amp;gt;] ? ptlrpc_server_handle_request+0x398/0xc60 [ptlrpc]
 [&amp;lt;ffffffffa03a65de&amp;gt;] ? cfs_timer_arm+0xe/0x10 [libcfs]
 [&amp;lt;ffffffffa03b7d9f&amp;gt;] ? lc_watchdog_touch+0x6f/0x170 [libcfs]
 [&amp;lt;ffffffffa0704719&amp;gt;] ? ptlrpc_wait_event+0xa9/0x290 [ptlrpc]
 [&amp;lt;ffffffff81058bd3&amp;gt;] ? __wake_up+0x53/0x70
 [&amp;lt;ffffffffa070e74e&amp;gt;] ? ptlrpc_main+0xace/0x1700 [ptlrpc]
 [&amp;lt;ffffffffa070dc80&amp;gt;] ? ptlrpc_main+0x0/0x1700 [ptlrpc]
 [&amp;lt;ffffffff8100c20a&amp;gt;] ? child_rip+0xa/0x20
 [&amp;lt;ffffffffa070dc80&amp;gt;] ? ptlrpc_main+0x0/0x1700 [ptlrpc]
 [&amp;lt;ffffffffa070dc80&amp;gt;] ? ptlrpc_main+0x0/0x1700 [ptlrpc]
 [&amp;lt;ffffffff8100c200&amp;gt;] ? child_rip+0x0/0x20
crash&amp;gt; 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;After MGT, MDT and OSTs are mounted, the hanged &quot;echo&quot; command on client ends, and the file content is correct:&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;# cat /fs_pv/170_stripe_file
Hello
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The content of dmesg on client is then the following:&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: 4376:0:(client.c:1868:ptlrpc_expire_one_request()) @@@ Request sent has timed out for slow reply: [sent 1395328613/real 1395328613]  req@ffff8801b95afc00 x1463099919122744/t0(0) o101-&amp;gt;fs_pv-MDT0000-mdc-ffff8801bd642400@10.1.0.15@o2ib:12/10 lens 584/1136 e 0 to 1 dl 1395328620 ref 2 fl Rpc:XP/0/ffffffff rc 0/-1
Lustre: 4376:0:(client.c:1868:ptlrpc_expire_one_request()) Skipped 1480 previous similar messages
Lustre: fs_pv-MDT0000-mdc-ffff8801bd642400: Connection to fs_pv-MDT0000 (at 10.1.0.15@o2ib) was lost; in progress operations using this service will wait for recovery to complete
Lustre: Skipped 41 previous similar messages
Lustre: fs_pv-OST00a9-osc-ffff8801bd642400: Connection to fs_pv-OST00a9 (at 10.1.0.15@o2ib) was lost; in progress operations using this service will wait for recovery to complete
LustreError: 166-1: MGC10.1.0.15@o2ib: Connection to MGS (at 10.1.0.15@o2ib) was lost; in progress operations using this service will fail
Lustre: Skipped 169 previous similar messages
LNetError: 6581:0:(o2iblnd_cb.c:3012:kiblnd_check_txs_locked()) Timed out tx: tx_queue, 8 seconds
LNetError: 6581:0:(o2iblnd_cb.c:3075:kiblnd_check_conns()) Timed out RDMA with 10.1.0.15@o2ib (58): c: 0, oc: 0, rc: 8
Lustre: Evicted from MGS (at 10.1.0.15@o2ib) after server handle changed from 0x4ece3e4b34440eb4 to 0x221c3affca3337c9
Lustre: MGC10.1.0.15@o2ib: Connection restored to MGS (at 10.1.0.15@o2ib)
Lustre: Skipped 11 previous similar messages
Lustre: fs_pv-OST0002-osc-ffff8801bd642400: Connection restored to fs_pv-OST0002 (at 10.1.0.15@o2ib)
Lustre: fs_pv-OST000c-osc-ffff8801bd642400: Connection restored to fs_pv-OST000c (at 10.1.0.15@o2ib)
Lustre: Skipped 90 previous similar messages
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As this ASSERT is the same as described in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4260&quot; title=&quot;ASSERTION( lc-&amp;gt;ldo_stripenr == 0 ) failed:&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4260&quot;&gt;&lt;del&gt;LU-4260&lt;/del&gt;&lt;/a&gt;, we backported the corresponding patch on lustre 2.4.2, but it does not fix the problem.&lt;br/&gt;
This patch adds a call to lod_object_free_striping() if lod_fld_lookup() fails in lod_generate_and_set_lovea().&lt;/p&gt;

&lt;p&gt;After adding another call to lod_object_free_striping() a few lines below in the same routine, if dt_xattr_set() fails, this fixes the problem.&lt;br/&gt;
There is still the &quot;No space left on device&quot; error message when runnig &quot;lfs setstripe -c -1&quot;, but the MDS no longer crashes.&lt;/p&gt;

&lt;p&gt;Perhaps the next step would be to modify &quot;lfs setstripe&quot; so that it set the stripe count to 160 when the requested value is larger and &quot;ea_inode&quot; is no set.&lt;br/&gt;
But the additional call to lod_object_free_striping() should be kept, as dt_xattr_set() could fail for any other reason.&lt;/p&gt;

&lt;p&gt;The change we added to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4260&quot; title=&quot;ASSERTION( lc-&amp;gt;ldo_stripenr == 0 ) failed:&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4260&quot;&gt;&lt;del&gt;LU-4260&lt;/del&gt;&lt;/a&gt; is the following:&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;--- a/lustre/lod/lod_lov.c
+++ b/lustre/lod/lod_lov.c
@@ -562,6 +562,8 @@ int lod_generate_and_set_lovea(const str
        info-&amp;gt;lti_buf.lb_len = lmm_size;
        rc = dt_xattr_set(env, next, &amp;amp;info-&amp;gt;lti_buf, XATTR_NAME_LOV, 0,
                          th, BYPASS_CAPA);
+       if (rc &amp;lt; 0)
+               lod_object_free_striping(env, lo);

        RETURN(rc);
 }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="23810">LU-4791</key>
            <summary>lod_ah_init() ASSERTION( lc-&gt;ldo_stripenr == 0 ) failed:</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="di.wang">Di Wang</assignee>
                                    <reporter username="patrick.valentin">Patrick Valentin</reporter>
                        <labels>
                            <label>mn4</label>
                    </labels>
                <created>Thu, 20 Mar 2014 17:32:41 +0000</created>
                <updated>Wed, 21 May 2014 17:07:26 +0000</updated>
                            <resolved>Thu, 17 Apr 2014 19:43:25 +0000</resolved>
                                    <version>Lustre 2.6.0</version>
                    <version>Lustre 2.4.2</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.5.2</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>13</watches>
                                                                            <comments>
                            <comment id="79930" author="pjones" created="Thu, 20 Mar 2014 20:50:24 +0000"  >&lt;p&gt;Di is looking into this one&lt;/p&gt;</comment>
                            <comment id="79956" author="di.wang" created="Fri, 21 Mar 2014 00:21:28 +0000"  >&lt;p&gt;Patrick, Thanks for the analyse, which does make sense to me. Will you post a patch on review? Thanks.&lt;/p&gt;</comment>
                            <comment id="80013" author="jlevi" created="Fri, 21 Mar 2014 17:09:47 +0000"  >&lt;p&gt;Is Master affected by this as well?&lt;/p&gt;</comment>
                            <comment id="80065" author="apercher" created="Mon, 24 Mar 2014 07:46:39 +0000"  >&lt;p&gt;The thing that I don&apos;t understand is why the MDT try to create a file&lt;br/&gt;
with more than 160 ost while the max in this case is 160.&lt;br/&gt;
The proposal fix is just a WA to clear lo struct, a good fix&lt;br/&gt;
will be that MDT can creat a file with 160 ost without ENOSPC error&lt;/p&gt;</comment>
                            <comment id="80415" author="di.wang" created="Thu, 27 Mar 2014 21:27:10 +0000"  >&lt;p&gt;Jodi: I did not try this on master, but according to the code, the problem should exist on master as well.&lt;/p&gt;

&lt;p&gt;Antonie: I am not sure what you mean? But according to the description &quot;without &quot;wide striping&quot; enabled&quot;, you should expect some kind of errors if creating more than 160 stripes. Though ENOSPC might be a bit confused in this case. So I thought this ticket is for resolving the Crash? Please correct me, if I misunderstood. Thanks.  &lt;/p&gt;</comment>
                            <comment id="80434" author="di.wang" created="Fri, 28 Mar 2014 05:55:06 +0000"  >&lt;p&gt;master &lt;a href=&quot;http://review.whamcloud.com/#/c/9835/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/9835/&lt;/a&gt;&lt;br/&gt;
b2_4 &lt;a href=&quot;http://review.whamcloud.com/#/c/9837&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/9837&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="80441" author="apercher" created="Fri, 28 Mar 2014 08:04:50 +0000"  >&lt;p&gt;Di, I just want to said without &quot;wide striping&quot; enabled&quot; when you try to creat a file with the max stripe with &quot;&quot;setstripe -c -1 /fs_pv/170_stripe_file&quot;&quot; the mdt does not assume that the max is 160 and for me that &lt;br/&gt;
is the main issue. &lt;/p&gt;</comment>
                            <comment id="80443" author="apercher" created="Fri, 28 Mar 2014 09:37:38 +0000"  >&lt;p&gt;I can reformulate like this :&lt;br/&gt;
  When we run lfs setstripe -c -1 /fs_pv/stripe_file with your patch and without &quot;wide striping&quot; enabled &lt;br/&gt;
  is lfs return E2BIG or creat a file with around 160 stripes ?&lt;br/&gt;
  If &quot;lfs return E2BIG&quot; then I said that is the main issue &lt;br/&gt;
In lustre 2.1.x the max-stripe was MAX(NbOST,160)&lt;br/&gt;
and now in 2.4.x the max-stripe should be&lt;br/&gt;
    if (wide striping enabled) then Max(Nbost,max stripe on 1m)&lt;br/&gt;
                               else MAX(NbOST,160)&lt;/p&gt;</comment>
                            <comment id="80486" author="di.wang" created="Fri, 28 Mar 2014 17:08:11 +0000"  >&lt;p&gt;Antoine: Ah, I see what you mean. sure I will update the patch. Thanks!&lt;/p&gt;</comment>
                            <comment id="80522" author="di.wang" created="Fri, 28 Mar 2014 21:00:45 +0000"  >&lt;p&gt;It turns out we did not consider the overhead of xattr, I just update the patch. BTW: if you do not enable &quot;wide striping&quot;, the max stripe is 165 for now.&lt;/p&gt;</comment>
                            <comment id="80613" author="simmonsja" created="Mon, 31 Mar 2014 15:09:43 +0000"  >&lt;p&gt;This might fix &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2963&quot; title=&quot;fail to create large stripe count file with -ENOSPC error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2963&quot;&gt;&lt;del&gt;LU-2963&lt;/del&gt;&lt;/a&gt; that we have experienced at ORNL.&lt;/p&gt;</comment>
                            <comment id="81836" author="jamesanunez" created="Thu, 17 Apr 2014 15:42:07 +0000"  >&lt;p&gt;Patch landed to master&lt;/p&gt;</comment>
                            <comment id="81872" author="pjones" created="Thu, 17 Apr 2014 19:43:25 +0000"  >&lt;p&gt;Landed for 2.6. Will track landing for b2_4 and b2_5 separately&lt;/p&gt;</comment>
                            <comment id="81927" author="adegremont" created="Fri, 18 Apr 2014 07:53:03 +0000"  >&lt;p&gt;Peter, could you point where this tracking will be done? Another tickets? Which ones?&lt;/p&gt;</comment>
                            <comment id="81931" author="pjones" created="Fri, 18 Apr 2014 12:37:48 +0000"  >&lt;p&gt;I do this outside of JIRA&lt;/p&gt;</comment>
                            <comment id="81971" author="jamesanunez" created="Fri, 18 Apr 2014 18:07:47 +0000"  >&lt;p&gt;Patch for b2_5 at &lt;a href=&quot;http://review.whamcloud.com/#/c/10020/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/10020/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="81976" author="jaylan" created="Fri, 18 Apr 2014 18:31:45 +0000"  >&lt;p&gt;Does this patch supersede the patch in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4260&quot; title=&quot;ASSERTION( lc-&amp;gt;ldo_stripenr == 0 ) failed:&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4260&quot;&gt;&lt;del&gt;LU-4260&lt;/del&gt;&lt;/a&gt; &lt;br/&gt;
&quot;ASSERTION( lc-&amp;gt;ldo_stripenr == 0 ) failed: &quot;?&lt;br/&gt;
I found the one line patch is included in the patch of this LU.&lt;/p&gt;</comment>
                            <comment id="81980" author="di.wang" created="Fri, 18 Apr 2014 19:16:20 +0000"  >&lt;p&gt;no, I believe you need both.&lt;/p&gt;</comment>
                            <comment id="83287" author="simmonsja" created="Tue, 6 May 2014 13:01:57 +0000"  >&lt;p&gt;This patch resolved &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2963&quot; title=&quot;fail to create large stripe count file with -ENOSPC error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2963&quot;&gt;&lt;del&gt;LU-2963&lt;/del&gt;&lt;/a&gt;. I asked for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2963&quot; title=&quot;fail to create large stripe count file with -ENOSPC error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2963&quot;&gt;&lt;del&gt;LU-2963&lt;/del&gt;&lt;/a&gt; to be closed. Could you link that ticket to this one. Thank you.&lt;/p&gt;</comment>
                            <comment id="83507" author="bogl" created="Thu, 8 May 2014 14:29:27 +0000"  >&lt;p&gt;backport to b2_4:&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/10267&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10267&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="84593" author="haasken" created="Wed, 21 May 2014 15:31:14 +0000"  >&lt;p&gt;There are two patches against b2_4 linked in this ticket.  I believe that this b2_4 patch should be abandoned:  &lt;a href=&quot;http://review.whamcloud.com/#/c/9837&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/9837&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;because it includes this fix for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4260&quot; title=&quot;ASSERTION( lc-&amp;gt;ldo_stripenr == 0 ) failed:&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4260&quot;&gt;&lt;del&gt;LU-4260&lt;/del&gt;&lt;/a&gt;: &lt;a href=&quot;http://review.whamcloud.com/#/c/8325/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/8325/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then this would be the correct b2_4 fix for this ticket: &lt;a href=&quot;http://review.whamcloud.com/10267&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10267&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Is that right?&lt;/p&gt;</comment>
                            <comment id="84614" author="patrick.valentin" created="Wed, 21 May 2014 17:07:26 +0000"  >&lt;p&gt;Yes &lt;a href=&quot;http://review.whamcloud.com/#/c/9837&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/9837&lt;/a&gt; must be abandoned.&lt;br/&gt;
And both &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4260&quot; title=&quot;ASSERTION( lc-&amp;gt;ldo_stripenr == 0 ) failed:&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4260&quot;&gt;&lt;del&gt;LU-4260&lt;/del&gt;&lt;/a&gt;: &lt;a href=&quot;http://review.whamcloud.com/#/c/8325&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/8325&lt;/a&gt; and &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4791&quot; title=&quot;lod_ah_init() ASSERTION( lc-&amp;gt;ldo_stripenr == 0 ) failed:&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4791&quot;&gt;&lt;del&gt;LU-4791&lt;/del&gt;&lt;/a&gt;: &lt;a href=&quot;http://review.whamcloud.com/10267&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10267&lt;/a&gt; must be landed in b2_4.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="17896">LU-2963</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="24616">LU-5027</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|hzwi1j:</customfieldvalue>

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