首页 > 其他分享 >date: write error: No space left on device

date: write error: No space left on device

时间:2023-01-13 22:31:34浏览次数:43  
标签:logs tomcat space root No redis write tm local


磁盘空间已用尽,需要删除文件。

1.查看磁盘使用情况

[root@jr-yfb-ng_tm-10-94 usr]# df -h

2.查找使用目录下大于某个阈值的文件大小

[root@jr-yfb-ng_tm-10-94 usr]# find . -size +200M

具体如下:

[root@jr-yfb-ng_tm-10-94 usr]# 
date: write error: No space left on device
[root@jr-yfb-ng_tm-10-94 usr]#
date: write error: No space left on device
[root@jr-yfb-ng_tm-10-94 usr]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 190G 190G 20K 100% /
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 193M 3.7G 5% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sda1 497M 125M 373M 25% /boot
tmpfs 783M 0 783M 0% /run/user/0
date: write error: No space left on device
[root@jr-yfb-ng_tm-10-94 usr]# find . -size +200M
./local/tomcat/tomcat_20170605.tgz
./local/tomcat/tomcat-mobile/logs/catalina.out
./local/tomcat/tomcat-supchain/webapps/WebReport-bak.tar
./local/tomcat/tomcat-redis-task/logs/catalina.out
./local/tomcat/tomcat-redis-task/logs/redis-quartz.log
./local/tomcat/tomcat-redis-task/logs/redis-quartz.2019-06-28.log
./local/tomcat/tomcat-redis-task/logs/redis-quartz.2019-06-29.log
./local/tomcat/tomcat-redis-task/logs/redis-quartz.2019-06-30.log
./local/tomcat/tomcat-redis-task/logs/redis-quartz.2019-07-01.log
./local/tomcat/tomcat-redis-task/logs/redis-quartz.2019-07-02.log
date: write error: No space left on device
[root@jr-yfb-ng_tm-10-94 usr]#


标签:logs,tomcat,space,root,No,redis,write,tm,local
From: https://blog.51cto.com/u_15936016/6006769

相关文章