<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Dominic,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If health_check returns an error, there is something bad.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If health_check returns healthy, run more checks.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
This is more like required, but not sufficient.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
It catches errors reported by Lustre targets, but that's all.&nbsp;</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Aurlien</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> lustre-discuss &lt;lustre-discuss-bounces@lists.lustre.org&gt; de la part de Dominic Sloan-Murphy via lustre-discuss &lt;lustre-discuss@lists.lustre.org&gt;<br>
<b>Envoy :</b> jeudi 11 juin 2026 15:21<br>
<b> :</b> lustre-discuss@lists.lustre.org &lt;lustre-discuss@lists.lustre.org&gt;<br>
<b>Objet :</b> [lustre-discuss] Correct use of &quot;lctl get_param health_check&quot;</font>
<div>&nbsp;</div>
</div>
<div>
<table bgcolor="#FFEB9C" border="1">
<tbody>
<tr>
<td><font face="verdana" color="black" size="1"><b>External email: Use caution opening links or attachments</b>
</font></td>
</tr>
</tbody>
</table>
<br>
<div>
<div dir="ltr">
<div>Hi all,</div>
<div><br>
</div>
<div>Would you be able to advise on the correct use of the&nbsp;&quot;lctl get_param health_check&quot; command&nbsp;from&nbsp;<a href="https://wiki.lustre.org/Lustre_Health_Checks">https://wiki.lustre.org/Lustre_Health_Checks</a> and under which circumstances it reports errors?</div>
<div><br>
</div>
<div>I've found it always returns &quot;healthy&quot;, even when I intentionally break my test setup. For example, removing Lustre mounts:</div>
<div><br>
</div>
<div>root@lustre-build:~# mount -t lustre mytestpool/mgsmdt /mnt/mgs_mdt<br>
root@lustre-build:~# mount -t lustre ostpool/ost1 /mnt/ost<br>
root@lustre-build:~# lctl get_param health_check<br>
health_check=healthy<br>
root@lustre-build:~# umount /mnt/ost<br>
root@lustre-build:~# lctl get_param health_check<br>
health_check=healthy</div>
<div>root@lustre-build:~# umount&nbsp;/mnt/mgs_mdt</div>
<div>root@lustre-build:~# lctl get_param health_check<br>
health_check=healthy</div>
<div></div>
<div><br>
</div>
<div>My setup is a single Ubuntu 24.04 VM with Lustre 2.17 built from source. The Lustre file system was created with:</div>
<div><br>
</div>
<div>root@lustre-build:~# truncate -s 5G /root/mgs_mdt.img<br>
root@lustre-build:~# truncate -s 10G /root/ost.img<br>
root@lustre-build:~# mkfs.lustre --mgs --mdt --backfstype=zfs --fsname=mytestfs --index=0 mytestpool/mgsmdt /root/mgs_mdt.img<br>
root@lustre-build:~# MGS_IP=$(hostname -I | awk '{print $1}')<br>
root@lustre-build:~# mkfs.lustre --ost --backfstype=zfs --fsname=mytestfs --mgsnode=${MGS_IP}@tcp0 --index=0 ostpool/ost1 /root/ost.img</div>
<div><br>
</div>
<div>Regards,</div>
<div>Dominic</div>
<span class="x_gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="x_gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<table style="border-spacing:0px; border-width:0px; font-family:Ubuntu,sans-serif; margin:0px; color:rgb(0,0,0); border-color:white">
<tbody>
<tr>
<th colspan="2" style="vertical-align:top; padding:4px 0px 0px 4px; font-size:0px; text-align:left">
<img height="40px" width="128px" alt="Canonical Logo" title="Canonical Logo" style="margin-bottom:17px" src="https://assets.ubuntu.com/v1/7620920d-Canonical-Logo-Light%201.png">
</th>
</tr>
<tr>
<td colspan="2" style="vertical-align:top; padding:0px 0px 0px 5px; font-size:0px">
<p style="display:inline-block; font-size:13px; line-height:16px; padding-top:0.8px; margin-bottom:0px; margin-top:0.8px; font-weight:600">
Dominic Sloan-Murphy</p>
</td>
</tr>
<tr>
<td colspan="2" style="vertical-align:top; padding:0px 0px 0px 5px; font-size:0px">
<p style="display:inline-block; font-size:13px; line-height:16px; padding-top:0.8px; margin-bottom:8px; margin-top:0.8px; color:rgb(117,117,117); font-weight:500">
Software Engineer, High-Performance Computing Team</p>
</td>
</tr>
<tr>
<td style="vertical-align:top; padding:0px 0px 0px 5px; font-size:0px">
<p style="display:inline-block; font-size:13px; line-height:17px; padding-top:0.8px; margin-bottom:0px; margin-top:0.8px; color:rgb(117,117,117); font-weight:500">
Email:</p>
</td>
<td style="vertical-align:top; padding:0px 4px 0px 5px; font-size:0px">
<p style="display:inline-block; font-size:13px; line-height:17px; padding-top:0.8px; margin-bottom:0px; margin-top:0.8px; margin-left:12px; font-weight:500">
<a href="mailto:dominic.sloanmurphy@canonical.com" target="_blank">dominic.sloanmurphy@canonical.com</a></p>
</td>
</tr>
<tr>
<td style="vertical-align:top; padding:0px 0px 0px 5px; font-size:0px"><br>
</td>
<td style="vertical-align:top; padding:0px 4px 0px 5px; font-size:0px"><br>
</td>
</tr>
<tr>
<td style="vertical-align:top; padding:0px 0px 0px 5px; font-size:0px">
<p style="display:inline-block; font-size:13px; line-height:17px; padding-top:0.8px; margin-bottom:0px; margin-top:0.8px; color:rgb(117,117,117); font-weight:500">
Location:</p>
</td>
<td style="vertical-align:top; padding:0px 0px 0px 5px; font-size:0px">
<p style="display:inline-block; font-size:13px; line-height:17px; padding-top:0.8px; margin-bottom:0px; margin-top:0.8px; margin-left:12px; font-weight:500">
United Kingdom</p>
</td>
</tr>
<tr>
<td style="vertical-align:top; padding:0px 0px 0px 5px; font-size:0px"><br>
</td>
<td style="vertical-align:top; padding:0px 0px 0px 5px; font-size:0px"><br>
</td>
</tr>
<tr>
<td colspan="2" style="vertical-align:top; padding:0px 0px 0px 5px; font-size:0px">
<a href="https://canonical.com/" target="_blank" style="color:rgb(0,102,204); text-decoration:none">
<p style="display:inline-block; font-size:13px; line-height:17px; padding-top:0.8px; margin-bottom:0px; margin-top:8.8px; font-weight:500">
canonical.com</p>
</a></td>
</tr>
<tr>
<td colspan="2" style="vertical-align:top; padding:0px 0px 0px 5px; font-size:0px">
<a href="https://ubuntu.com/" target="_blank" style="color:rgb(0,102,204); text-decoration:none">
<p style="display:inline-block; font-size:13px; line-height:17px; padding-top:0.8px; margin-bottom:0px; margin-top:0.8px; font-weight:500">
ubuntu.com</p>
</a></td>
</tr>
<tr>
<td colspan="2" style="vertical-align:top; padding:0px 0px 0px 5px; font-size:0px">
<a href="https://canonical.com/careers?utm_source=signature&amp;utm_medium=email" target="_blank" style="color:rgb(0,102,204); text-decoration:none">
<p style="display:inline-block; font-size:13px; line-height:17px; padding-top:0.8px; margin-bottom:0px; margin-top:8px; font-weight:500">
We are hiring</p>
</a><span style="display:inline-block; font-size:13px; line-height:17px; padding-top:0.8px; padding-left:3px; padding-right:3px; margin-bottom:0px; margin-top:8px; font-weight:500; color:rgb(117,117,117)">|</span>
<a href="https://www.linkedin.com/company/canonical/life/" target="_blank" style="color:rgb(0,102,204); text-decoration:none">
<p style="display:inline-block; font-size:13px; line-height:17px; padding-top:0.8px; margin-bottom:0px; margin-top:8px; font-weight:500">
Life at Canonical</p>
</a></td>
</tr>
</tbody>
</table>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>