I have a machine with four guests on it, and it seems to create and leave lots of files with names like vmlinuz.LqKA3h and initrd.kolvQu in directory /var/lib/xen. The remain there even when all guests are gracefully shut down .. and additional ones get created when they are next started. The end result, of course, is that the root file system fills up. So .. how can I prevent this from happening? I've got SELinux disabled and I have Guest files in /XenGuests. I've also set XENDOMAINS_SAVE="" in /etc/sysconfig/xendomains Any ideas? -- Graham Jenkins +61 3 9925 4909 Victorian Partnership for Advanced Computing http://www.vpac.org/ PO Box 201, Carlton South, Vic. 3053, Australia
Graham Jenkins wrote:> I have a machine with four guests on it, and it seems to create and > leave lots of files with names like vmlinuz.LqKA3h and initrd.kolvQu in > directory /var/lib/xen. The remain there even when all guests are > gracefully shut down .. and additional ones get created when they are > next started. > > The end result, of course, is that the root file system fills up. So .. > how can I prevent this from happening? > > I've got SELinux disabled and I have Guest files in /XenGuests. I've > also set XENDOMAINS_SAVE="" in /etc/sysconfig/xendomains > > Any ideas? >Hi Graham, I don't know what those files are, however, this sort of behaviour by software is quiet common and it is probably for that reason that I always choose to have a separate /var. I think that most people try and setup at least a /boot, /var and even /tmp. It's like a 'defacto' minimum best practice if you like. As far as a solution goes, you could symlink /var/lib/xen to somewhere with free disk space or even or even make a new filesystem if you have some spare disk and plonk /var/lib/xen there. Cheers. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
On Wed, 2007-05-09 at 10:13 +1000, Graham Jenkins wrote:> I have a machine with four guests on it, and it seems to create and > leave lots of files with names like vmlinuz.LqKA3h and initrd.kolvQu in > directory /var/lib/xen. The remain there even when all guests are > gracefully shut down .. and additional ones get created when they are > next started. > > The end result, of course, is that the root file system fills up. So .. > how can I prevent this from happening?These files are normally automatically unlinked by xend after the domain initialization. The most obvious way this unlinking does not happen is when the domain initialization fails in some way, for instance when you are trying to (re)create a domain that is already running. -- Daniel
On Wed, 09 May 2007 10:13:45 +1000 Graham wrote: GJ> I have a machine with four guests on it, and it seems to create and GJ> leave lots of files with names like vmlinuz.LqKA3h and initrd.kolvQu in GJ> directory /var/lib/xen. The remain there even when all guests are GJ> gracefully shut down .. and additional ones get created when they are GJ> next started. GJ> GJ> The end result, of course, is that the root file system fills up. So .. GJ> how can I prevent this from happening? I ran into this a few weeks ago too, but had forgotten about it. I just filed a bug report (http://bugs.centos.org/view.php?id=2027). GJ> Any ideas? You could add a cron job: find /var/lib/xen -maxdepth 1 -type f -mtime +1 | \ egrep "(vmlinuz|initrd)\." | \ xargs -r /bin/rm -f This will delete any files older than 24 hours. -- "No sense being pessimistic. It wouldn't work anyway." - Phillip Mueller