Why the Space of My New Disk Is Full After I Uploaded Only 500 MB of Files to the Disk?
Troubleshoot this issue by performing the following steps:
- Check whether the disk partition usage is 100% or almost 100%.
df -h
Figure 1 Checking the partition usage
In this example, the /dev/vda1 partition usage is 100%.
- Check the disk space usage.
df -i
Figure 2 Checking the disk space usage
In this example, the disk space usage is low.
- Check the deleted process files in the system.
lsof | grep deleted
Figure 3 Checking the deleted process files in the system
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.
- Go to the location of a deleted file to check whether the file is still there.
ll /tmp/
Note that variable /tmp/ in the command indicates the path of the deleted file.
- If the file is not there, run the following command to terminate the process, or restart the server to release the used space.
kill -9 PID
Note that variable PID in the command indicates the process ID.
- Check that the process is terminated.
lsof | grep deleted
- Check that the disk partition usage is no longer 100%.
df -h
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.