<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
$ man lfs-fid2path.1&nbsp;<br class="">
lfs-fid2path(1)&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;user utilities&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;lfs-fid2path(1)<br class="">
<br class="">
NAME<br class="">
&nbsp; &nbsp; &nbsp; &nbsp;lfs fid2path - print the pathname(s) for a file identifier<br class="">
<br class="">
SYNOPSIS<br class="">
&nbsp; &nbsp; &nbsp; &nbsp;lfs&nbsp;fid2path&nbsp;[OPTION]... &lt;FSNAME|MOUNT_POINT&gt; &lt;FID&gt;...<br class="">
<br class="">
DESCRIPTION<br class="">
&nbsp; &nbsp; &nbsp; &nbsp;lfs&nbsp;&nbsp;fid2path&nbsp;&nbsp;maps&nbsp;&nbsp;a&nbsp;&nbsp;numeric&nbsp;&nbsp;Lustre File IDentifier (FID) to one or&nbsp;more pathnames
<div class="">&nbsp; &nbsp; &nbsp; &nbsp;that have hard links to that file.&nbsp;&nbsp;This&nbsp;allows resolving filenames for FIDs used in console</div>
<div class="">&nbsp; &nbsp; &nbsp; &nbsp;error messages, and&nbsp;resolving all of the pathnames for a file that has multiple&nbsp;hard&nbsp;links.</div>
<div class="">&nbsp; &nbsp; &nbsp; &nbsp;Pathnames are resolved relative to the&nbsp;MOUNT_POINT&nbsp;specified, or relative to the</div>
<div class="">&nbsp; &nbsp; &nbsp; &nbsp;filesystem mount point if&nbsp;FSNAME&nbsp;is provided.<br class="">
<br class="">
OPTIONS<br class="">
&nbsp; &nbsp; &nbsp; &nbsp;-f,&nbsp;--print-fid<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;Print the FID with the path.<br class="">
<br class="">
&nbsp; &nbsp; &nbsp; &nbsp;-c,&nbsp;--print-link<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;Print the current link number with each pathname or parent&nbsp;directory.<br class="">
<br class="">
&nbsp; &nbsp; &nbsp; &nbsp;-l,&nbsp;--link=LINK<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;If a file has multiple hard links, then print only the specified&nbsp;LINK, starting at link 0.</div>
<div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;If multiple FIDs are&nbsp;given,&nbsp;but only one pathname is needed for each file, use&nbsp;--link=0.<br class="">
<br class="">
EXAMPLES<br class="">
&nbsp; &nbsp; &nbsp; &nbsp;$&nbsp;lfs&nbsp;fid2path&nbsp;/mnt/testfs&nbsp;[0x200000403:0x11f:0x0]<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;/mnt/testfs/etc/hosts<br class="">
<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Sep 3, 2021, at 14:51, Alastair Basden &lt;<a href="mailto:a.g.basden@durham.ac.uk" class="">a.g.basden@durham.ac.uk</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi,<br class="">
<br class="">
lctl get_param mdt.*.exports.*.open_files &nbsp;returns:<br class="">
mdt.snap8-MDT0000.exports.172.18.180.21@o2ib.open_files=<br class="">
[0x20000b90e:0x10aa:0x0]<br class="">
mdt.snap8-MDT0000.exports.172.18.180.22@o2ib.open_files=<br class="">
[0x20000b90e:0x21b3:0x0]<br class="">
mdt.snap8-MDT0000.exports.172.18.181.19@o2ib.open_files=<br class="">
[0x20000b90e:0x21b3:0x0]<br class="">
[0x20000b90e:0x21b4:0x0]<br class="">
[0x20000b90c:0x1574:0x0]<br class="">
[0x20000b90c:0x1575:0x0]<br class="">
[0x20000b90c:0x1576:0x0]<br class="">
<br class="">
Doesn't seem to be many open, so I don't think it's a problem of open files.<br class="">
<br class="">
Not sure which bit of this I need to use with lfs fid2path either...<br class="">
<br class="">
Cheers,<br class="">
Alastair.<br class="">
<br class="">
<br class="">
On Fri, 3 Sep 2021, Andreas Dilger wrote:<br class="">
<br class="">
<blockquote type="cite" class="">[EXTERNAL EMAIL]<br class="">
You can also check &quot;mdt.*.exports.*.open_files&quot; on the MDTs for a list of FIDs open on each client, and use &quot;lfs fid2path&quot; to resolve them to a pathname.<br class="">
<br class="">
On Sep 3, 2021, at 02:09, Degremont, Aurelien via lustre-discuss &lt;<a href="mailto:lustre-discuss@lists.lustre.org" class="">lustre-discuss@lists.lustre.org</a>&lt;<a href="mailto:lustre-discuss@lists.lustre.org" class="">mailto:lustre-discuss@lists.lustre.org</a>&gt;&gt;
 wrote:<br class="">
<br class="">
Hi<br class="">
<br class="">
It could be a bug, but most of the time, this is due to an open-unlinked file, typically a log file which is still in use and some processes keep writing to it until it fills the OSTs it is using.<br class="">
<br class="">
Look for such files on your clients (use lsof).<br class="">
<br class="">
Aurélien<br class="">
<br class="">
<br class="">
\ufeffLe 03/09/2021 09:50, « lustre-discuss au nom de Alastair Basden » &lt;<a href="mailto:lustre-discuss-bounces@lists.lustre.org" class="">lustre-discuss-bounces@lists.lustre.org</a>&lt;<a href="mailto:lustre-discuss-bounces@lists.lustre.org" class="">mailto:lustre-discuss-bounces@lists.lustre.org</a>&gt;
 au nom de <a href="mailto:a.g.basden@durham.ac.uk" class="">a.g.basden@durham.ac.uk</a>&lt;<a href="mailto:a.g.basden@durham.ac.uk" class="">mailto:a.g.basden@durham.ac.uk</a>&gt;&gt; a écrit :<br class="">
<br class="">
&nbsp;CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.<br class="">
<br class="">
<br class="">
<br class="">
&nbsp;Hi,<br class="">
<br class="">
&nbsp;We have a file system where each OST is a single SSD.<br class="">
<br class="">
&nbsp;One of those is reporting as 100% full (lfs df -h /snap8):<br class="">
&nbsp;snap8-OST004d_UUID &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.8T &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.0T &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.5T &nbsp;37% /snap8[OST:77]<br class="">
&nbsp;snap8-OST004e_UUID &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.8T &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.5T &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7.5G 100% /snap8[OST:78]<br class="">
&nbsp;snap8-OST004f_UUID &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.8T &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.0T &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.4T &nbsp;38% /snap8[OST:79]<br class="">
<br class="">
&nbsp;However, I can't find any files on it:<br class="">
&nbsp;lfs find --ost snap8-OST004e /snap8/<br class="">
&nbsp;returns nothing.<br class="">
<br class="">
&nbsp;I guess that it has filled up, and that there is some bug or other that is<br class="">
&nbsp;now preventing proper behaviour - but I could be wrong.<br class="">
<br class="">
&nbsp;Does anyone have any suggestions?<br class="">
<br class="">
&nbsp;Essentially, I'd like to find some of the files and delete or migrate<br class="">
&nbsp;some, and thus return it to useful production.<br class="">
<br class="">
&nbsp;Cheers,<br class="">
&nbsp;Alastair.<br class="">
&nbsp;_______________________________________________<br class="">
&nbsp;lustre-discuss mailing list<br class="">
&nbsp;<a href="mailto:lustre-discuss@lists.lustre.org" class="">lustre-discuss@lists.lustre.org</a>&lt;<a href="mailto:lustre-discuss@lists.lustre.org" class="">mailto:lustre-discuss@lists.lustre.org</a>&gt;<br class="">
&nbsp;<a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" class="">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br class="">
<br class="">
_______________________________________________<br class="">
lustre-discuss mailing list<br class="">
<a href="mailto:lustre-discuss@lists.lustre.org" class="">lustre-discuss@lists.lustre.org</a>&lt;<a href="mailto:lustre-discuss@lists.lustre.org" class="">mailto:lustre-discuss@lists.lustre.org</a>&gt;<br class="">
<a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" class="">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br class="">
<br class="">
Cheers, Andreas<br class="">
--<br class="">
Andreas Dilger<br class="">
Lustre Principal Architect<br class="">
Whamcloud<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
</blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
<div class="">
<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; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<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; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<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; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<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; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<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; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<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; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div>Cheers, Andreas</div>
<div>--</div>
<div>Andreas Dilger</div>
<div>Lustre&nbsp;Principal Architect</div>
<div>Whamcloud</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
</div>
</body>
</html>