<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Great, thanks!<br>
<br>
Meanwhile the attached patch makes lmt mostly work for me for now with LOCKS, LGR, LCR missing.
<br>
fs/lustre/ldlm/namespaces now in /sys too.<br>
<br>
Part of the issue is that _packed_lustre_version() error return = -1 is not processed in calling functions but is interpreted as packed lustre version ( the version earlier than 0.0.0.0 ).<br>
This causes paths in /proc to be defined like for lustre 1.8.x and this definitely does not work for recent lustre.<br>
Just setting default lustre verstion to 2.10.0 (you can set to 99.999.0.0) makes ltop to work.<br>
I guess lustre versions 1.8 and 2.0 can be dropped because if someone needs these he can take the older distro of ltop.<br>
<br>
The other issue:<br>
lmtmetric succesfully opens &quot;/proc/fs/lustre/version&quot; nine times per run (every time per other two open()) as I can see on my older 2.5.3 system;
<br>
# strace -e open lmtmetric -m mdt 2&gt;&amp;1 | fgrep ' = 3'<br>
18 calls total to open(&quot;/proc/fs/lustre/version&quot;, ...) out of 35 calls to open(&quot;/proc/fs/lustre/...)<br>
Lustre version can be cached.<br>
&quot;/proc/fs/lustre/osd-zfs&quot; is opened four times.<br>
<br>
Best regards, Alex.<br>
<br>
<br>
</div>
</span></font></div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText"><br>
<br>
&gt; On Feb 1, 2018, at 1:37 PM, Di Natale, Giuseppe &lt;dinatale2@llnl.gov&gt; wrote:<br>
&gt; <br>
&gt; Hi Alex,<br>
&gt; <br>
&gt; We are aware of the problem. I'm going to try and develop a patch to handle the move to /sys/ in the next week or so.<br>
&gt; <br>
&gt; Giuseppe<br>
&gt; From: lustre-discuss &lt;lustre-discuss-bounces@lists.lustre.org&gt; on behalf of Alexander I Kulyavtsev &lt;aik@fnal.gov&gt;<br>
&gt; Sent: Thursday, February 1, 2018 9:10:20 AM<br>
&gt; To: lustre-discuss@lists.lustre.org<br>
&gt; Subject: [lustre-discuss] ltop for lustre 2.10.2 ?<br>
&gt;&nbsp; <br>
&gt; Is there version of ltop working with lustre 2.10.2 ?<br>
&gt; <br>
&gt; lmtmetric does not work on mds; it is OK checking ost on oss.<br>
&gt; <br>
&gt; # lmtmetric -m mdt<br>
&gt; lmtmetric: error reading lustre MDS uuid from proc: Invalid argument<br>
&gt; lmtmetric: mdt metric: Invalid argument<br>
&gt; <br>
&gt; I suspect it is due to lmtmetric constantly reading&nbsp; /proc/fs/lustre/version and it is now in /sys/...<br>
&gt; <br>
&gt; &gt; [lustre-discuss] missing lustre version in /proc/fs/lustre/version<br>
&gt; &gt; <br>
&gt; &gt; Dilger, Andreas <br>
&gt; &gt; Tue Jun 20 15:34:57 PDT 2017<br>
&gt; &gt; ... skip ...<br>
&gt; &gt; We've had to move a lot of Lustre parameters out of /proc/fs/lustre and into /sys/fs/lustre<br>
&gt; &gt; for most parameter values, or /sys/kernel/debug/lustre (via debugfs) for large statistics<br>
&gt; &gt; due to rules imposed by the upstream kernel developers.<br>
&gt; &gt; ...<br>
&gt; <br>
&gt; I'm trying to get ltop working on SLF 7.4 with lustre 2.10.2. No need for lmt &amp; DB.<br>
&gt; <br>
&gt; Alex.<br>
&gt; _______________________________________________<br>
&gt; lustre-discuss mailing list<br>
&gt; lustre-discuss@lists.lustre.org<br>
&gt; <a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br>
<br>
</div>
</span></font></div>
</body>
</html>