Hi, all, When I upgraded some of our machines from 6.x to 7.2 I noticed that the root filesystems seemed to fill up. I thought this might come from makeoptions DEBUG=-g in the kernel config, but somehow that doesn't make sense, since our older systems have the same option present. 6.3-System: ----------- makeoptions DEBUG=-g $ du -sk /boot/kernel 27920 /boot/kernel No *.symbols files in /boot/kernel. 7.2-System: ----------- makeoptions DEBUG=-g $ du -sk /boot/kernel 214778 /boot/kernel Lots of those files filling /boot/kernel. On a current server with 512 MB /, the filesystem is at 97% after installing a new kernel twice. Can I get rid of these files somehow or are they necessary, in which case I will need way bigger root filesystems? I mean, get rid automatically and never install them again. I know the chflags and rm commands ;-) But then the question of they are needed is still open. Thanks, Patrick -- punkt.de GmbH * Kaiserallee 13a * 76133 Karlsruhe Tel. 0721 9109 0 * Fax 0721 9109 100 info@punkt.de http://www.punkt.de Gf: J?rgen Egeling AG Mannheim 108285
On 2009-07-03 16:25, Patrick M. Hausen wrote:> On a current server with 512 MB /, the filesystem is at > 97% after installing a new kernel twice. Can I get rid of > these files somehow or are they necessary, in which case > I will need way bigger root filesystems? > > I mean, get rid automatically and never install them again. > I know the chflags and rm commands ;-) But then the question > of they are needed is still open.You can find this in /usr/src/UPDATING: 20060118: This actually occured some time ago, but installing the kernel now also installs a bunch of symbol files for the kernel modules. This increases the size of /boot/kernel to about 67Mbytes. You will need twice this if you will eventually back this up to kernel.old on your next install. If you have a shortage of room in your root partition, you should add -DINSTALL_NODEBUG to your make arguments or add INSTALL_NODEBUG="yes" to your /etc/make.conf. However, you should consider increasing the size of your root partition, if possible. It can be extremely handy to have symbol files available whenever there's a crash. :)
Hi there Patrick, On Fri, 3 Jul 2009, Patrick M. Hausen wrote: PMH> 7.2-System: PMH> ----------- PMH> makeoptions DEBUG=-g PMH> PMH> $ du -sk /boot/kernel PMH> 214778 /boot/kernel PMH> PMH> Lots of those files filling /boot/kernel. PMH> PMH> PMH> On a current server with 512 MB /, the filesystem is at PMH> 97% after installing a new kernel twice. Can I get rid of PMH> these files somehow or are they necessary, in which case PMH> I will need way bigger root filesystems? Define INSTALL_NODEBUG somewhere (on installkernel commandline or maybe even in /etc/make.conf) -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------