Help Center/ Elastic Volume Service/ FAQs/ Capacity/ Why the Space of My New Disk Is Full After I Uploaded Only 500 MB of Files to the Disk?
Updated on 2023-08-04 GMT+08:00

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:

  1. 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%.

  2. Check the disk space usage.
    df -i 
    Figure 2 Checking the disk space usage

    In this example, the disk space usage is low.

  3. 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.

  4. 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.

  5. 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.

  6. Check that the process is terminated.
    lsof | grep deleted
  7. Check that the disk partition usage is no longer 100%.
    df -h