Zero out deleted files to recover disk space?
Hello All,
I have read about 100 posts, articles, blogs etc and none have really provided me with the magic answer.
In a virtual environment when you delete a lot of files, your host (vmware) says you are consuming more disk space than is truly being used.
I have seen a million people telling you to dd if=/dev/zero of=zero.file bs=1024
then once you have consumed ALL your disk space ( doesn't sound too safe ) you can delete the file you create and you can then run utilities from the host, but the reality is thats an awful solution. If you thin provision something like 1TB to prepare for growth and you are using 100GB, you then say copied 500GB more temporarily to that disk, once you erase it, you still reflect that you are using 600GB at the host level. Do that on a couple of servers and you can pretty much wipe out your host storage on fluff.
I'm hoping someone here has a better alternative to the running out of space method, that method takes hours just to fill 1 file to consume the whole servers capacity.
I appreciate your help!!
(running centos 5.x, 6.x and 7.x)
Last edited by JoeyB; 03-23-2016 at 03:11 AM.
|