<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Linux磁盘空间满，但实际占用却没有那么大]]></title><description><![CDATA[<h2>Linux磁盘空间满，但实际占用却没有那么大</h2>
<h3>1、用df 检查发现/根目录可用空间为0</h3>
<p dir="auto">df -h</p>
<h3>2、用du检查发现各目录占用的空间都很少,有约30G的空间莫名其妙地丢了.</h3>
<p dir="auto">du -m --max-depth=1</p>
<h3>3、用lsof检查后才发现原因是,有文件被删除,而进程还活着,因而造成还占用空间的现象</h3>
<p dir="auto">lsof |grep delete</p>
<p dir="auto">根据lsof列出的进程号,kill这些进程后,空间就释放出来了</p>
<h2>查找系统大文件</h2>
<p dir="auto">find /home -size +400M</p>
]]></description><link>http://an.forum.genostack.com/topic/230/linux磁盘空间满-但实际占用却没有那么大</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 13:51:42 GMT</lastBuildDate><atom:link href="http://an.forum.genostack.com/topic/230.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Feb 2021 06:56:04 GMT</pubDate><ttl>60</ttl></channel></rss>