<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
On Apr 9, 2025, at 14:28, John Bauer via lustre-discuss &lt;lustre-discuss@lists.lustre.org&gt; wrote:
<div>
<blockquote type="cite">
<div>
<div>
<p>I have created a small reproducer program (81 lines of code) that results in a process that appears to hang in the kernel, accumulating cpu time.&nbsp; The process is unresponsive to kill commands.&nbsp; From gdb backtrace, it appears the call is stuck somewhere in
 fsetxattr() which is called by llapi_layout_file_open().&nbsp; The problem happens only when a non-existent ost is added to the layout with a call to llapi_layout_ost_index_set().&nbsp; The call to llapi_layout_sanity(), just before calling llapi_layout_file_open(),
 returns 0.&nbsp; Is this a known issue?&nbsp;</p>
</div>
</div>
</blockquote>
</div>
<div>Hard to say for sure.</div>
<div><br>
</div>
<div>I suspect this is related to&nbsp;LU-17334, which relates to newly-added MDTs and OSTs in the filesystem. There were a few patches which recently landed in 2.16.0 (and backported) that will sleep and retry for a short time to handle the case where a client
 accesses a file or directory layout that references an OST or MDT that it doesn't know about. &nbsp;The assumption is that the OST/MDT is newly added and the configuration update hasn't quite made it to the client yet. &nbsp;The client should retry to contact the new
 server for some time before giving up and returning an error (in case the layout is actually bad).</div>
<div><br>
</div>
<div>Whether this is fixed in your version depends on what the version is (not mentioned in your email). &nbsp;It may also be important what the server version is, which can be seen from &quot;lctl get_param mdc.*.import | grep target_version&quot;, if you can access this
 parameter. &nbsp;if your client &amp; server versions have the LU-17734 fixes, then this would be unexpected, and if older versions then I'd say it is something I'd rather not revisit until the known fixes are in place.</div>
<br>
<div>
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div>Cheers, Andreas</div>
<div>\u2014</div>
<div>Andreas Dilger</div>
<div>Lustre Principal Architect</div>
<div>Whamcloud/DDN</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
</body>
</html>