Beautiful counting disk space?

Good day!

The notorious clodo keep the server in the cloud. Periodically it happens to be a butthurt and it somehow eats up all the space on GEDCOM disk. And df shows full population, and du says that the root does not occupy all the required 8GB. Tell me a remedy please!
October 8th 19 at 01:16
6 answers
October 8th 19 at 01:18
Recently faced with a similar phenomenon on one of the servers under CentOS. I have ran a process running under nohup, which in turn all its output into a text Lil nohup.out. The programmer forgot to remove a debug print in the code, therefore, the conclusion was very massive and in a couple of hours I had in the presence of a text file of 350 MB. To remedy the situation without having to restart the application, I just erased the file nohup.out, checked that he was not looming in the FS and calmed down. After a few hours my server successfully formed for lack of space on one of the sections. In short, I went to investigate and discovered a curious phenomenon. The file that I supposedly erased, well a existed in kako-it is invisible to the ls command and continued to grow until it ate all the space on the volume. The phenomenon is explained by the fact that if a process writes (or reads) in the file, then it catches and until either completes the burn process, or be killed myself writing process or restart the OS. Moreover, the commands df and du shows very different results (read more here), exactly as you described. Therefore, it makes sense to check what's happening on a server, for example using the lsof command, it will show everything open by any processes, files, even invisible to the ls.
And the thesis that it's a marketing ploy your cloud provider, rather from the category of jokes humor :)
The file was busy with the process, and opened FD on this, and you have not deleted it. - albin.Harb commented on October 8th 19 at 01:21
By the way, in this case, when the handle is closed space will be freed? - Ericka.Kling commented on October 8th 19 at 01:24
Yes ) - albin.Harb commented on October 8th 19 at 01:27
a curious phenomenon
ololo. Ubuntu discover UNIX - colleen0 commented on October 8th 19 at 01:30
October 8th 19 at 01:20
October 8th 19 at 01:22
ncdu
October 8th 19 at 01:24
Try df-k and also don't forget that 5% is usually reserved.
October 8th 19 at 01:26
df,du show different — maybe 5% of the allowance for root remain?

Do not quite understand what means you are looking for. du is quite a sane tool to measure /tmp, /var/log, /home, maybe /opt. well, there where a lot of if — then dive in and explore, eventually find a place ate.
October 8th 19 at 01:28
Ha! The question is settled
Problems were associated with the behavior clodo, they may well stimulate me to increase the disk space?

Find more questions by tags Linux