How to Cleanup Brocade VDX Switch Disk?

What is the problem?

VDX switches have problems such as not showing “show” output when the disk is full, and not being able to save the configuration. In this case, deleting some logs on the disk solves the problem. However, this solution is not permanent and it is necessary to do this process from time to time.

What causes this problem?

Actually, depending on NOS 6.0.2h and later DEFECT661579 error; The crontab is deleted when write erase or firmware install (not firmware download) is done.

In the NOS operating system, crontab ensures that the logs reach a certain size or rotate at certain intervals and the old logs are deleted and the disk is emptied.

The following method describes how to delete the logs and create a crontab again:

VDX# unhide foscmd
default password is “fibranne” (no double quotes)
VDX# term len 0
VDX# fos bash
### this takes you to the Linux shell prompt (bash-2.04#)
### from this point , in Linux shell, the following commands: 

bash-2.04# cp /fabos/sbin/mail_handler /var/spool/cron/root
bash-2.04# chmod 600 /var/spool/cron/root
bash-2.04# rm /var/confd/log/*.log
bash-2.04# rm /var/confd/log/localhost.access
bash-2.04# /usr/confd/bin/confd_cmd -c reopen_logs
bash-2.04# truncate -s 0 /etc/fabos/Dcmd/Dcmd.Linux.powerpc.pg_ctl.log
bash-2.04# truncate -s 0 /etc/fabos/Ccmd/Ccmd.Linux.powerpc.pg_ctl.log

By:

Posted in:


Leave a comment