linux查看磁盘空间-jenkins 报错磁盘空间不足
jenkins任务报错磁盘空间不足,查一下云机器的磁盘空间
# df -hT Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 3.9G 0 3.9G 0% /dev tmpfs tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs tmpfs 3.9G 360M 3.5G 10% /run tmpfs tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/vda1 ext4 40G 40G 0 100% / tmpfs tmpfs 783M 0 783M 0% /run/user/1000 overlay overlay 40G 40G 0 100% /var/lib/docker/overlay2/87f595023f30d87aa67fc4d5ac6317d2d1918094ce40ab3c9c1766d0f56300a7/merged tmpfs tmpfs 783M 0 783M 0% /run/user/0 overlay overlay 40G 40G 0 100% /var/lib/docker/overlay2/61c1aee4f8e634c063fc0b0fdd5b4049278bd9e10989b6c3cd45641f64571ece/merged
我的jenkins放在var下,该磁盘没有空间了,进去看一下细节:
[root@ecs-x-large-4-linux-20200308173624 var]# du * -sh |sort -hr 20G lib 921M log 520M jenkins_home 328M cache 116K spool 20K db 12K kerberos 8.0K empty 4.0K yp 4.0K tmp 4.0K preserve 4.0K opt 4.0K nis 4.0K local 4.0K gopher 4.0K games 4.0K crash 4.0K adm
lib有20g log有1g,清除一下。