An alert was triggered because a server root directory was recently full.
Enter the root directory:cd/ Run the du -sh * command to view the size of each folder in the root directoryCopy the code
Then, run the mv and rm commands to back up and delete files after repeating the du -sh * operation
Later still have a problem: after the delete command df and du appear inconsistent results, namely the delete operation was not completed The solution: use lsof | grep does look at it
lsof | grep deleted
Copy the code
In this case, run the kill -9 command to kill the process. The file is deleted successfully. Df and du are the same.
Reference article:
Linux rm -rf delete file does not free space solution
Use LSOF to handle file recovery, handles, and space free issues
If the Linux root directory is full, how can I quickly check which file is taking up the most space