在日常检查维护过程中,发现小机分区/目录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
2. disable the cas_agent entry in /etc/inittab 操作命令:chitab “cas_agent:2off:/usr/bin/startsrc –s cas_agent >/dev/null 2>&1”
3. 在/dev下执行rm nul*1