I am using EC2 of AWS.
Device Type EBS
The disk usage just reached 100 percent, and I deleted unnecessary files, but it remained 100 percent.
I tried checking lsof and rebooting, but the free space didn't increase.
Is there something wrong with the usage?
add
The confirmation is df-h. Total disk space is 75G and less than or equal to the directory you deleted is 1.8G. No logs appear to be logged. You cannot even interpolate the TAB input. /-bash:cannot create temp file for here-document:No space left on device
I am concerned that the file below has been completed.
-rw ----------- 1 root root root 16G Aug 3105:21/sys/devices/pci0000:00/0000:00:1e.0/resource1_wc
-rw ----------- 1 root root 16G Aug 3105:21/sys/devices/pci0000:00/0000:00:1e.0/resource1
Generally speaking,
You can list more than 100MB of files in sudo find/-type f-size+100M-execls-lha{}\;2>/dev/null
You can list more than 100MB of files in sudo find/-type f-size+100M-execls-lha{}\;2>/dev/null
If you delete a large file and it does not run out of disk space, one of the processes may still be using it.
If you delete a file that is in use, it does not immediately disappear from the disk, but disappears when it is finished.Until then, there will be no more free space.
If you have any idea of a process, try ending it.
Now that I know one more thing, I will add it to my answer.
Depending on the file system,
If you have root privileges, you can actually still write when the usage reaches 100%.
So you subtract a few percent from the disk space and that's 100 percent.
You cannot write any more to a regular user.If you have root privileges, you can write.
If you write more with root privileges, df
is still 100% and
It cannot be more than 110% or so.
"I think the status of your question is ""I wrote more than that with root permission""."
In that case, if you delete more files, it will be less than 100% of them and
You will be able to write to regular users.
© 2024 OneMinuteCode. All rights reserved.