Symptom
After a longer switch uptime, the /var/volatile/log filesystem space will be completely consumed by the yum.log file. This file grows with every invocation of the "show version" command. This issue is especially visible on NDB-controlled switches; since NDB invokes "show version" every minute on average, the free space in /var/volatile/log will be exhausted in approximately 55 days of continuous uptime.
Conditions
High uptime and a frequent invocation of "show version" command.
Workaround
Empty the file manually from Bash:
configure
feature bash
end
run bash
sudo su -
> /var/volatile/log/yum.log
exit
exit
OR
use the following periodic script to empty the file:
configure
feature bash
feature scheduler
scheduler job name CleanYUM
run bash echo "" > /var/volatile/log/yum.log
end-job
scheduler schedule name RunCleanYUM
job name CleanYUM
time daily 07:00
end
Further Problem Description
The "show version" command internally invokes the yum binary (the RPM package manager) to populate the output in the "Active Package(s):" section. Starting with 7.0(3)I7(2), the /var/volatile/log/yum.log is writeable by all users, causing each execution of the "show version" command to log the yum transaction into the yum.log file. Since this log file is not automatically cleared or rotated, it will eventually grow in size and consume all available filesystem space in /var/volatile/log.