Need some code fore HD loss on centos 6x 7 when deleting files

colorfull

Registered Member
Joined
Mar 11, 2015
Messages
51
Reaction score
1
Hello once you delete a file or folder its giga value is not available as a free space on centos 6x or 7 ,the hd that should be released as free space is lost,do you know why?
 
Are those files tied to any running service? IF they are, you may have to restart that service before the space becomes available.
 
You mean service restart cpanel

no they was simply brought by other disk and deleted as a desktop computer,any clues?,ur support is really appreciated
 
Why my disc hd shrinks while deleting files on centos?????????????????????
 
I think mantic0re was spot on with his answer if I'm understanding you correctly. Unfortunately I don't think we are, there seems to be a language barrier.
 
Run
Code:
sudo /usr/sbin/lsof | grep deleted
from the terminal.
You will see the files that are queued for deletion but are being hold open by one of the processes. Once the process shuts down, deletion will be completed.
 
The racist of lazy language comment never lacks.

Yes MCPatrick I was reading also about that and it seems its a matter of processes that are still opened and once closed the hd is released ,but is a little bit hazy if it wasnt from a program you used but a simple folder with files inside that you deleted and that afterwards the space was gone to the numb.

Isnt there a way to close all processes at once without harming any program so all files that are deleted release their space back?

Thank you for ur code Im testing
 
Would this acomplish what I just told you?
sudo /root/sbin/lsof | grep deleted
 
tbh man, you should go to StackOverflow. Without more details and info on packages you have installed it is a blind game.
Also better chance to spot a Centos guy, I am Ubuntu folk ;)
 
What made you decide to use UBUNTU mcpatrick?
 
Well documented, trusted and it seems like majority of big users on DO and Vultr use it - I was on Centos before but I have seen Ubuntu had more docs and it was basically the same - just some commands different and Ubuntu seems to be much more often compatible with scripts and more Python friendly.
But yeah, its personal choice as I like to work on popular platforms for documentation. Makes life easier.
 
Back
Top