In XenServer environments I have seen issues with logs filling up the entire Dom0 storage allocation.  The reason behind this is that XenServer logrotate feature can break as it cannot parse the size parameter properly and this results in the dom0 Storage allocation becoming full, caused by overgrown Log Files.  Since Citrix frowns upon the modification of the default size of this drive, there are a few things that can be done in order to avoid this issue.

Personally, I recommend lowering the log rotations to one hour, enabling compression and setting the historical to 10 (and never put historical at 20 or above).

The commands to accomplish this are:

  • Hourly rotation mv /etc/cron.daily/logrotate.conf /etc/cron.hourly/logrotate.conf
  • Uncomment the compress line on the logrotate.conf

For troubleshooting whenever an environment appears to have issues with log file I do the following:

  1. Check Log Disk Space to validate issue: du –h /var/log
  2. Check what’s causing the problem: find {/path/to/directory/} -type f -size +{size-in-kb}k -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’
  1. Delete old/overgrown log files
  2. Apply the recommendations as listed above in order to prevent this in the future.

1 Comment

  1. James Nguyen

    Pretty nice post. I simply stumbled upon your weblog and wanted to say that I have really loved browsing your blog
    posts. I have subscribed to your feed and I am looking forward to future posts from you on Citrix.

Comments are closed