linux文件删除后还占用磁盘,Linux下删除文件后,磁盘空间还是报警磁盘空间不足,系统没有释放空间...

今天发现一台varnish服务器的/空间满了,于是要清空无用的文件,当我删除文件后,df –h之后发现可用空间没有变化。

经过排查,发现/etc/init.d/varnishncsa stop之后,后台还是有varnishncsa进程占用,导致删除的文件没有得到释放,导致/分区依然报磁盘空间不足

[root@centos6192168245052 nginx]# ps -ef|grep varnish

root     1645     1  0 Aug21 ?        00:07:35 /usr/bin/varnishncsa -a -w/var/log/varnish/varnishncsa.log -D -P /var/run/varnishncsa.pid

root     2976     1  0 Jul15 ?        00:00:17 /usr/sbin/varnishd -P/var/run/varnish.pid -a :80 -f /etc/varnish/two.vcl -T 127.0.0.1:6082 -t 120 -w1,4000,120 -u varnish -g varnish -S /etc/varnish/secret -s malloc,8G

varnish  2977  2976 16 Jul15 ?        6-05:28:02 /usr/sbin/varnishd -P/var/run/varnish.pid -a :80 -f /etc/varnish/two.vcl -T 127.0.0.1:6082 -t 120 -w1,4000,120 -u varnish -g varnish -S /etc/varnish/secret -s malloc,8G

root    12472     1  0 Aug21 ?        00:13:26 /usr/bin/varnishncsa -a -w/var/log/varnish/varnishncsa.log -D -P /var/run/varnishncsa.pid

root    18853     1  0 Aug21 ?        00:12:25 /usr/bin/varnishncsa -a -w/var/log/varnish/varnishncsa.log -D -P /var/run/varnishncsa.pid

root    19929     1  0 Aug20 ?        00:20:43 /usr/bin/varnishncsa -a -w /var/log/varnish/varnishncsa.log-D -P /var/run/varnishncsa.pid

root    25448 23228  0 18:41 pts/2    00:00:00 grep varnish

root    26660     1  0 Aug21 ?        00:16:03 /usr/bin/varnishncsa -a -w/var/log/varnish/varnishncsa.log -D -P /var/run/varnishncsa.pid

root    31277     1  0 12:00 ?        00:03:20 /usr/bin/varnishncsa -a -w/var/log/varnish/varnishncsa.log -D -P /var/run/varnishncsa.pid

root    31988     1  0 05:00 ?        00:05:27 /usr/bin/varnishncsa -a -w/var/log/varnish/varnishncsa.log -D -P /var/run/varnishncsa.pid

解决办法:kiallall -9 /usr/bin/varnishncsa解决

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值