{"id":2413,"date":"2015-07-18T19:46:57","date_gmt":"2015-07-18T19:46:57","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=2413"},"modified":"2015-07-18T19:46:57","modified_gmt":"2015-07-18T19:46:57","slug":"hard-drive-shows-100-after-removing-files","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/07\/18\/hard-drive-shows-100-after-removing-files\/","title":{"rendered":"Hard Drive shows 100% after removing files"},"content":{"rendered":"<p>Still at 100% disk usage after deleting files? Deleting file won&#8217;t free the space until you delete the processes that have open handles against that file. Nevertheless, you can reclaim the space. All you need to do is to remove the file descriptors. First execute lsof | grep deleted to identify the process holding the file.<\/p>\n<p><!--more--><\/p>\n<p># \/usr\/sbin\/lsof | grep deleted java 8859 user 1w REG 253,0 3662503356 7578206 \/crucible\/data\/current\/var\/log\/fisheye.out (deleted)<\/p>\n<p>Then execute:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# cd \/proc\/PID\/fd\n\n<\/pre>\n<p>Then&#8230;<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># ls -l |grep deleted\ntotal 0\nl-wx------ 1 user devel 64 Feb  7 11:48 1 -&amp;gt; \/crucible\/data\/current\/var\/log\/fisheye.out (deleted)\n<\/pre>\n<p>The &#8220;1&#8221; will be the file descriptor. Now type &#8220;&gt; FD&#8221; to reclaim that space<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># &amp;gt; 1\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Still at 100% disk usage after deleting files? Deleting file won&#8217;t free the space until you delete the processes that have open handles against that file. Nevertheless, you can reclaim the space. All you need to do is to remove the file descriptors. First execute lsof | grep deleted to identify the process holding the &#8230; <a title=\"Hard Drive shows 100% after removing files\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/07\/18\/hard-drive-shows-100-after-removing-files\/\" aria-label=\"Read more about Hard Drive shows 100% after removing files\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-2413","post","type-post","status-publish","format-standard","hentry","category-administration"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=2413"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2413\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=2413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=2413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=2413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}