Problem Description:
Today boarded a server, df -h baking root of the disk is full
Resolution process:
cd /
du -sh * found no large files, taking up space not much
According to experience, first by lsof | grep deleted to find there is no process to free up space, and then kill -9 pid did not find
This time weird,
Then carefully analyze the root directory of each directory, find / data directory, is used to mount the disk and mount the disk space utilization is very small , then the problem came.
Mount disk space, and a place to put ES KAFKA, the use of space should be relatively large.
Then mount the disk first umout out, we found the root of the problem,
Find / data directory, after umout out, take up a lot of space, this folder before the write data is not written to mount the disk, but directly written to / data directory under the original root directory of the
The next operation is simple and smooth, and
1, mkdir create a new directory, re-mount the disk to the new directory, the data within the mv / data to the new directory.
2, the write data service configuration directory, configuration into a new directory
A handful of simple tests, by dd if = / dev / zero of = mytest1 bs = 1M count = 10000 write data in a new directory of 10G, the root of the space will not be affected
So far the problem is solved.