Speaking about XenServer again. Recently i had to fix its certificates because of the recent Windows update. This also reminded me about a long standing issue with Control Domain disk running out of space. XenCenter was showing alert messages for some time stating that this storage was already at 96, 97 and last time at 98%. It’s annoying that it doesn’t show this storage details anywhere in the XenCenter GUI (or i haven’t found). Because this is an internal XenServer’s disk, used for configuration, logs, etc. I’ve read that space may be occupied by logs. So i went out on a hunt. Here’s how to deal with this:
Control Domain disk can run out of space after running XenServer for a long time. Our server is in duty for 5-6 years and we never cleaned it up.
First you need to connect to its local shell. Either directly (if monitor is connected) or via SSH. Login with root.
Go to /var/log/
Run command: du -sh (it will show how much space does your log folder take; it was 1.7 GB in our case)
Additionally ls -lh will list all files in that folder with a readable size values (MB or GB)
Then delete logs with a force switch (you may want to leave some logs, but i just wiped them all as this is just a testing box):
rm SMlog* -f
rm xensource.log* -f
rm messages* -f
rm xenstored-access* -f
Run du -sh to see how much space have you freed. In my case it was around 1.5 GB.