cuizengshun
作者cuizengshun·2017-02-19 16:44
系统运维工程师·民生银行

【案例分享】/dev/null 2>&1 文件过大导致根目录爆满

字数 1098阅读 5685评论 0赞 2

在日常检查维护过程中,发现小机分区/目录89%,90%,

du -axg / |sort -rn|head

查找出/根目录下最大的10 个文件,发现 '/dev/null 2>&1'文件非常大,占比达60%,而且rootvg所剩余的空间不足,无法进行扩容。在IBM官网查询手册以及证实后,发现此文件不停增大为AIX6.1的系统BUG。在观察了近1个月后,在和童确认。在dfkdr分区上进行尝试删除。之后,,进行删除操作。根目录恢复正常。

http://www-01.ibm.com/support/docview.wss?uid=nas74d33539b559cc0308625792900533a8f

Description

The /var/opt/tivoli/ep/rusntime/nonstop/bin/cas_src.sh script writes a file "/dev/null 2>&1" which might fill up the / filesystem.

This happens with agents that have the following cas.agent fileset version:

cas.agent 1.4.2.32

Common Agent Services Agent

Work-around and fix notes are detailed below.

判别是否存在BUG

lslpp -L cas.agent

可看到Level为1.4.2.32,C F

BUG脚本为

cat /var/opt/tivoli/ep/runtime/nonstop/bin/cas_src.sh

...

else

CAS_SRC_LOG=”/dev/null 2>&1”

fi

...

Bug 2 : After installing TL7 and at system reboot, the Director agent is automatically enabled.

处理方式:

1.disable cas_agent 操作命令: stopsrc –s cas_agent

  1. disable the cas_agent entry in /etc/inittab 操作命令:chitab “cas_agent:2off:/usr/bin/startsrc –s cas_agent >/dev/null 2>&1”
  2. 在/dev下执行rm nul*1

来自社区交流活动“AIX系统日常运维中故障分析及处理在线技术交流
由社区会员ACDante发布

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

2

添加新评论0 条评论

Ctrl+Enter 发表

本文隶属于专栏

PowerVC专栏
本专栏主要分享PwerVM和PowerVC相关方面的架构、实施、运维等经验,以及企业私有云建设的相关经验及总结。

作者其他文章

相关文章

相关问题

相关资料

X社区推广