If an Avaya Linux server runs out of disk space, connect to the server using SSH or the console shell and identify which directories are consuming the most storage.Run the following command:

sudo du -xhd1 / | sort –hr

This command displays a list of directories under the root (/) directory and shows the amount of disk space each directory is using. The results are sorted from largest to smallest.

You can also run the command df –h to view the disk space in terms of percentage of total dis space occupied. The df -h command displays disk usage in a human-readable format, including the percentage of total disk space currently occupied.

After identifying the directory using the most storage, continue drilling down by running the same command against that directory. Simply replace the forward slash / each time with the newer higher level directory. For example, if /var is oiccuping the most space, enter:

sudo du -xhd1 /var | sort –hr

Then inside var, if you see that /logs takes up the most space, enter:

sudo du -xhd1 /var/log | sort –hr

And finally, you will likely see that the offending folder is /var/log/audit where there are a multitude of log files named “audit.log.nnn”

Note: Before proceeding, make sure to follow best practices and back up your VM before making any changes.

Make sure you an inside the /var/log/audit directory and use the following command to remove files older than a specific date:

find /path -type f -name “audit.log.*” ! -newermt “2025-01-01” -ls

In the example shown, files older than january 1, 2025 will be deleted. You can also delete files older than a secific date using the following command:

find /path -type f -name “audit.log.*” -mtime +180 –delete

In this example, files older than 180 days will be deleted.

Leave a comment

Your email address will not be published. Required fields are marked *

error: Sorry, copy/paste is disabled