<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>Greetings All,</div>
<div><br>
</div>
<div>I have come across a strange scenario using zfs 0.6.4.2-1 and Lustre 2.8.0.&nbsp;</div>
<div><br>
</div>
<div>In a nutshell, when we delete items from lustre using rm, the files/dirs are seemingly removed, but the space is not freed on the underlying zfs dataset/zpool. We have unmounted the OST/dataset, exported the zpool, and even rebooted the server altogether.
 The space is never freed.&nbsp;</div>
<div><br>
</div>
<div>I have read through many of the issues logged about this on&nbsp;<a href="https://github.com/zfsonlinux">https://github.com/zfsonlinux</a>; many folks have reclaimed the space once they unmount/remount, and/or export/import. As noted above, this has no impact
 on our dataset/zpool.</div>
<div><br>
</div>
<div>We currently have a zpool scrub running, and expect this to complete in the next few hours.&nbsp;</div>
<div><br>
</div>
<div>We DO have zfs compression enabled, and we are using ZFS quota and reservations for the associated OST/dataset.</div>
<div><br>
</div>
<div>We have copied the dataset to an entirely different zpool (zfs send/receive), and then mounted as native ZFS to poke around. In doing so, we located some of the &#8220;broken path&#8221; files that were of decent size (4GB) and went a head and removed them with rm.
 These files were/are ones that we see with the ??? in the path output from zdb. After removing the files, the space was almost immediately freed from the dataset/zpool.&nbsp;</div>
<div><br>
</div>
<div>Here is an example of a directory and a file from the zdb output.</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; Object &nbsp;lvl &nbsp; iblk &nbsp; dblk &nbsp;dsize &nbsp;lsize &nbsp; %full &nbsp;type</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;136 &nbsp; &nbsp;2 &nbsp; &nbsp;16K &nbsp; &nbsp;16K &nbsp;9.00K &nbsp; &nbsp;32K &nbsp;100.00 &nbsp;ZFS directory</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 144 &nbsp; bonus &nbsp;System attributes</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; dnode flags: USED_BYTES USERUSED_ACCOUNTED</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; dnode maxblkid: 1</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; path &nbsp; &nbsp;???&lt;object#136&gt;</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; uid &nbsp; &nbsp; 0</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; gid &nbsp; &nbsp; 0</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; atime &nbsp; Wed Dec 31 19:00:00 1969</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; mtime &nbsp; Wed Dec 31 19:00:00 1969</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; ctime &nbsp; Wed Dec 31 19:00:00 1969</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; crtime &nbsp;Thu Mar 10 12:04:52 2016</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; gen &nbsp; &nbsp; 1020298</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; mode &nbsp; &nbsp;40755</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; size &nbsp; &nbsp;2</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; parent &nbsp;1</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; links &nbsp; 1</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; pflags &nbsp;0</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; rdev &nbsp; &nbsp;0x0000000000000000</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Fat ZAP stats:</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Pointer table:</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1024 elements</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zt_blk: 0</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zt_numblks: 0</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zt_shift: 10</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zt_blks_copied: 0</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zt_nextblk: 0</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ZAP entries: 2</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Leaf blocks: 1</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Total blocks: 2</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zap_block_type: 0x8000000000000001</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zap_magic: 0x2f52ab2ab</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zap_salt: 0x3fdbcd9ab9</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Leafs with 2^n pointers:</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 9: &nbsp; &nbsp; &nbsp;1 *</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Blocks with n*5 entries:</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0: &nbsp; &nbsp; &nbsp;1 *</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Blocks n/10 full:</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1: &nbsp; &nbsp; &nbsp;1 *</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Entries with n chunks:</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3: &nbsp; &nbsp; &nbsp;2 **</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Buckets with n entries:</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0: &nbsp; &nbsp;510 ****************************************</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1: &nbsp; &nbsp; &nbsp;2 *</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif"><br>
</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 = 38711 (type: not specified)</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feb93 = 281474976687710 (type: 15 (invalid))</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif"><br>
</font></div>
<div style="font-family: -webkit-standard;"><font face="Calibri,sans-serif">
<div>&nbsp; &nbsp; Object &nbsp;lvl &nbsp; iblk &nbsp; dblk &nbsp;dsize &nbsp;lsize &nbsp; %full &nbsp;type</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;138 &nbsp; &nbsp;1 &nbsp; &nbsp;16K &nbsp; 128K &nbsp; 128K &nbsp; 128K &nbsp;100.00 &nbsp;ZFS plain file</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 220 &nbsp; bonus &nbsp;System attributes</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; dnode flags: USED_BYTES USERUSED_ACCOUNTED</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; dnode maxblkid: 0</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; path &nbsp; &nbsp;???&lt;object#138&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; uid &nbsp; &nbsp; 0</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; gid &nbsp; &nbsp; 0</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; atime &nbsp; Wed Dec 31 19:00:00 1969</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; mtime &nbsp; Wed Dec 31 19:00:00 1969</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; ctime &nbsp; Wed Dec 31 19:00:00 1969</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; crtime &nbsp;Thu Mar 10 12:04:52 2016</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; gen &nbsp; &nbsp; 1020298</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; mode &nbsp; &nbsp;100644</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; size &nbsp; &nbsp;8</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; parent &nbsp;0</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; links &nbsp; 1</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; pflags &nbsp;0</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; rdev &nbsp; &nbsp;0x0000000000000000</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; SA xattrs: 76 bytes, 1 entries</div>
<div><br>
</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trusted.lma = \000\000\000\000\000\000\000\000\003\000\000\000\002\000\000\000\000\000\000\000\000\000\000\000</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Can anyone advise on some next steps troubleshooting, or previous experiences that are similar to ours?&nbsp;</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Tom</div>
<div><br>
</div>
</font></div>
</div>
</div>
</body>
</html>