forked from docs/doc-exports
Reviewed-by: Miskanin, Jan <jan.miskanin@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
29 lines
3.4 KiB
HTML
29 lines
3.4 KiB
HTML
<a name="evs_faq_280807"></a><a name="evs_faq_280807"></a>
|
|
|
|
<h1 class="topictitle1">Why the Space of My New Disk Is Full After I Uploaded Only 500 MB of Files to the Disk?</h1>
|
|
<div id="body0000001665259853"><p id="evs_faq_280807__p18903520185117">Troubleshoot this issue by performing the following steps:</p>
|
|
<ol id="evs_faq_280807__ol145684595617"><li id="evs_faq_280807__li356345115612">Check whether the disk partition usage is 100% or almost 100%.<pre class="screen" id="evs_faq_280807__screen192053482714">df -h</pre>
|
|
<div class="fignone" id="evs_faq_280807__fig75934531663"><span class="figcap"><b>Figure 1 </b>Checking the partition usage</span><br><span><img id="evs_faq_280807__image55935532619" src="en-us_image_0000001616705554.png"></span></div>
|
|
<p id="evs_faq_280807__p17812101818711">In this example, the <strong id="evs_faq_280807__b19757182811141">/dev/vda1</strong> partition usage is 100%.</p>
|
|
</li><li id="evs_faq_280807__li7722712588">Check the disk space usage.<pre class="screen" id="evs_faq_280807__screen9749203918815">df -i </pre>
|
|
<div class="fignone" id="evs_faq_280807__fig293615501799"><span class="figcap"><b>Figure 2 </b>Checking the disk space usage</span><br><span><img id="evs_faq_280807__image11937205019920" src="en-us_image_0000001616506910.png"></span></div>
|
|
<p id="evs_faq_280807__p1958212161598">In this example, the disk space usage is low.</p>
|
|
</li><li id="evs_faq_280807__li191217219015">Check the deleted process files in the system.<pre class="screen" id="evs_faq_280807__screen31361220151111">lsof | grep deleted</pre>
|
|
<div class="fignone" id="evs_faq_280807__fig6908172041310"><span class="figcap"><b>Figure 3 </b>Checking the deleted process files in the system</span><br><span><img id="evs_faq_280807__image890992016135" src="en-us_image_0000001616707610.png"></span></div>
|
|
<p id="evs_faq_280807__p16863734171714">Roughly calculate the total size of the deleted files based on the returned command output. If it is almost the same as the used space of the disk, the disk space may be used up by the deleted processes that have not been released.</p>
|
|
</li><li id="evs_faq_280807__li109132293205">Go to the location of a deleted file to check whether the file is still there.<pre class="screen" id="evs_faq_280807__screen5439919122313">ll <em id="evs_faq_280807__i149516742717">/tmp/</em></pre>
|
|
<p id="evs_faq_280807__p73509178255">Note that variable <em id="evs_faq_280807__i101285462019">/tmp/</em> in the command indicates the path of the deleted file.</p>
|
|
</li><li id="evs_faq_280807__li114004101021">If the file is not there, run the following command to terminate the process, or restart the server to release the used space.<pre class="screen" id="evs_faq_280807__screen14335811282">kill -9 <em id="evs_faq_280807__i6415131332917">PID</em></pre>
|
|
<p id="evs_faq_280807__p18472944287">Note that variable <em id="evs_faq_280807__i7538133614222">PID</em> in the command indicates the process ID.</p>
|
|
</li><li id="evs_faq_280807__li134181458202711">Check that the process is terminated.<pre class="screen" id="evs_faq_280807__screen1186193873310">lsof | grep deleted</pre>
|
|
</li><li id="evs_faq_280807__li136372873213">Check that the disk partition usage is no longer 100%.<pre class="screen" id="evs_faq_280807__screen210675020342">df -h</pre>
|
|
</li></ol>
|
|
<p id="evs_faq_280807__p167431147162716"></p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="evs_01_0082.html">Capacity</a></div>
|
|
</div>
|
|
</div>
|
|
|