其他分享
首页 > 其他分享> > 文件夹满了,查不到大文件是DELETE?

文件夹满了,查不到大文件是DELETE?

作者:互联网

故障问题

[root@host1 ~]# df -h

文件系统        容量  已用  可用 已用% 挂载点

/dev/vda1        40G   38G     0  100% /

devtmpfs        3.7G     0  3.7G    0% /dev

tmpfs           3.7G     0  3.7G    0% /dev/shm

tmpfs           3.7G  356M  3.4G   10% /run

tmpfs           3.7G     0  3.7G    0% /sys/fs/cgroup

/dev/vdb        197G  185M  187G    1% /data

tmpfs           756M     0  756M    0% /run/user/1000

tmpfs           756M     0  756M    0% /run/user/0


[root@host1 jj]# du -sh * 4.0K 1123 11M apache-maven-3.6.3 4.0K backup.sh 57M datafactorybackend 650M data-factory-front 8.0K db_bak 585M http-runner-manager 191M Jmeter 28M jump-course 67M kafka_2.11-2.3.0 109M leptonica-1.80.0 1.2G miniconda3 195M python3 529M qct 4.0K rabbitmq-release-signing-key.asc 785M report 154M Stress 441M tesseract-3.04 346M test 144K wget-log

是不是有文件被清理了但是句柄没有释放,就像“大佬们”一样骚操作一把

[root@host1 jj]# lsof  |grep -i delete
CmsGoAgen   762           root    2u      REG              253,1         0    1053006 /usr/local/cloudmonitor/logs/panic.daemon.log (deleted)
CmsGoAgen   762           root    3u      REG              253,1         0    1053006 /usr/local/cloudmonitor/logs/panic.daemon.log (deleted)
CmsGoAgen   762   812     root    2u      REG              253,1         0    1053006 /usr/local/cloudmonitor/logs/panic.daemon.log (deleted)
CmsGoAgen   762   812     root    3u      REG              253,1         0    1053006 /usr/local/cloudmonitor/logs/panic.daemon.log (deleted)
CmsGoAgen   762   813     root    2u      REG              253,1         0    1053006 /usr/local/cloudmonitor/logs/panic.daemon.log (deleted)
CmsGoAgen   762   813     root    3u      REG              253,1         0    1053006 /usr/local/cloudmonitor/logs/panic.daemon.log (deleted)
CmsGoAgen   762   814     root    2u      REG              253,1         0    1053006 /usr/local/cloudmonitor/logs/panic.daemon.log (deleted)
CmsGoAgen   762   814     root    3u      REG              253,1         0    1053006 /usr/local/cloudmonitor/logs/panic.daemon.log (deleted)
CmsGoAgen   762   815     root    2u      REG              253,1         0    1053006 /usr/local/cloudmonitor/logs/panic.daemon.log (deleted)
CmsGoAgen   762   815     root    3u      REG              253,1         0    1053006 /usr/local/cloudmonitor/logs/panic.daemon.log (deleted)
CmsGoAgen   762   828     root    2u      REG              253,1         0    1053006 /usr/local/cloudmonitor/logs/panic.daemon.log (deleted)
CmsGoAgen   762   828     root    3u      REG              253,1         0    1053006 /usr/local/cloudmonitor/logs/panic.daemon.log (deleted)
CmsGoAgen   762   866     root    2u      REG              253,1         0    1053006 /usr/local/cloudmonitor/logs/panic.daemon.log (deleted)
CmsGoAgen   762   866     root    3u      REG              253,1         0    1053006 /usr/local/cloudmonitor/logs/panic.daemon.log (deleted)
aliyun-se 23759           root    7uW     REG              253,1         0    1181054 /tmp/AliyunAssistClientSingleLock.lock (deleted)
aliyun-se 23759 23760     root    7uW     REG              253,1         0    1181054 /tmp/AliyunAssistClientSingleLock.lock (deleted)
aliyun-se 23759 23761     root    7uW     REG              253,1         0    1181054 /tmp/AliyunAssistClientSingleLock.lock (deleted)
aliyun-se 23759 23762     root    7uW     REG              253,1         0    1181054 /tmp/AliyunAssistClientSingleLock.lock (deleted)
aliyun-se 23759 23763     root    7uW     REG              253,1         0    1181054 /tmp/AliyunAssistClientSingleLock.lock (deleted)
aliyun-se 23759 23774     root    7uW     REG              253,1         0    1181054 /tmp/AliyunAssistClientSingleLock.lock (deleted)
aliyun-se 23759 23776     root    7uW     REG              253,1         0    1181054 /tmp/AliyunAssistClientSingleLock.lock (deleted)
aliyun-se 23759 23777     root    7uW     REG              253,1         0    1181054 /tmp/AliyunAssistClientSingleLock.lock (deleted)
aliyun-se 23759 23778     root    7uW     REG              253,1         0    1181054 /tmp/AliyunAssistClientSingleLock.lock (deleted)
aliyun-se 23759 25420     root    7uW     REG              253,1         0    1181054 /tmp/AliyunAssistClientSingleLock.lock (deleted)
bash      30185          jj 255r      REG              253,1        41    1064353 /home/jj/datafactorybackend/start.sh (deleted)

我去没有问题啊

 

你不知道的du 骚操作。 du 命令 -s 不会统计隐藏目录 即以点开头的目录

 


[root@host1 jj]# du -h --max-depth=1
441M    ./tesseract-3.04
4.0K    ./1123
785M    ./report
8.0K    ./.pki
195M    ./python3
56K    ./.java
40M    ./.npm-global
12K    ./.config
650M    ./data-factory-front
746M    ./.cache
25G    ./.pm2
585M    ./http-runner-manager
20K    ./.ssh
109M    ./leptonica-1.80.0
11M    ./apache-maven-3.6.3
383M    ./.npm
28M    ./jump-course
67M    ./kafka_2.11-2.3.0
8.0K    ./.ansible
154M    ./Stress
1.2G    ./miniconda3
290M    ./.m2
191M    ./Jmeter
346M    ./test
8.0K    ./.conda
57M    ./datafactorybackend
8.0K    ./db_bak
529M    ./qct
32G    .

 

标签:log,deleted,762,文件夹,查不到,253,root,REG,DELETE
来源: https://www.cnblogs.com/leleyao/p/15220532.html