tags: linux
reference:
https://blog.csdn.net/e_wsq/article/details/79531493
use
df -h
Check the space occupied by the root directory and find that 100% has been used in the /dev/mapper/centos-root directory. The returned result is as follows:
File system capacity Used Available Used% Mount point devtmpfs 3.8G 0 3.8G 0% /dev tmpfs 3.8G 0 3.8G 0% /dev/shm tmpfs 3.8G 25M 3.8G 1% /run tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup /dev/mapper/centos-root 50G 4.7G 46G 10% / /dev/sdd 2.7T 48G 2.6T 2% /data3 /dev/sdb 2.7T 806M 2.6T 1% /data1 /dev/sdc 2.7T 89M 2.6T 1% /data2 /dev/sda1 1014M 206M 809M 21% /boot /dev/mapper/centos-home 221G 92G 129G 42% /home tmpfs 775M 0 775M 0% /run/user/0 . 20G
Among them, `.` occupies 20 G, refer tohttps://www.36nu.com/post/327Blog post, clear the process id of the file deleted and the process has not been cleared, the original text is as follows:
It was found that /dev/mapper/centos-root was full. After clearing the files under other folders, the space cleared out was gradually full again.
After checking a lot of information, I finally found that it was because the system had files deleted and the process was still alive, which caused the phenomenon of taking up space.
The solution is as follows:
Use lsof |grep delete to view the corresponding process number;
Use kill -9 process number to kill the corresponding process.
The following are the commands for batch operations:
# lsof | grep delete | awk '{print $2}' | xargs kill -9
Clean up and found that most of the space under /dev/mapper/centos-root has been released.
First, background: Because the root directory / space is not big, I want to mount another hard drive into the root directory (after discovering this idea is naive); Second, the process: 1. After the s...
When the root directory space is insufficient, just pay attention to the file size of those unshache, use the du command to view the size of each directory. Is there a file that has been deleted, but ...
Linux root directory expansion The server of the company needs to be expanded, and you will find information on the Internet, the way to record! The following is the step of the Linux root directory e...
How to deal with the Linux root partition is full, find large files One: If the usage of the Linux root partition reaches 100%, the following phenomena will occur: root cannot log in The system...
Problem description: After the MySQL database is successfully installed, it can be successfully connected locally on the server, but the remote connection cannot be made using the tool Navicat, as sho...
LINUX is built on FTP Important Solution How to build FTP Solve user specified access to its root directory Solve access to FTP timeout connection Solve FTP active connection, passive connectio...
1: What is the size of our root partition first? 2: Add a physical disk to the virtual machine and restart the virtual machine. 3: View disk number /dev/sda /dev/sda1 /dev/sda2&n...
Today, when I set up the k8s system for the test environment, I found that the disk space of the master root directory was insufficient and needed to be expanded, as recorded below. ...
I am dying to death, I will get rid of Root, and then lead to other operations such as users, and then I want to remedy. 1. Modify the mysql configuration file, add attributes 2, restart mysql 3, ente...
Since I started using java -jar jenkins.war, you can use find .jenkins (the specific location is determined by yourself) -name "web.xml" -exec vim {} \; Find HUDSON_HOME Modify the following...