Re: /var growing too fast
On Fri, Dec 21, 2007 at 07:09:01AM +0100, zbigniew szalbot wrote: > Hello, > > I thought I would ask your advice. I only have a 2 GB /var slice and > space is shrinking fast. I see that most space is taken by /var/db. > > $ du -hs /var/db > 1.4G/var/db > > $ du -hs /var > 1.7G/var > > $ df > /dev/ad0s1e 2178510 1738396 26583487%/var > > Is it possible to release some space from /var/db? I seem to recall that > /var/db is pretty important and I better not lose it... Yes, if you are running some database, it can grow fast. Do you have a large, catch-all, partition, such as /home? If go, move /var/db to and make a symlink. You should be able to copy it all with tar. Pick a make-sense name for the directory in the new directory such as 'var.db' Then, in the original /var directory, rename db temporarily - mv db olddb for example and make the link.ln -s /home/var.db db (presuming that you put it in /home) If it all seems good, then rm the olddb and all should be well. jerry > > It may be that something else is eating up available space but I am not > sure how to measure it. Every day about 1% more of available space is taken. > > Many thanks for ideas what to do (apart from bying a bigger drive :) > > And season greetings to you all! > > Zbigniew Szalbot > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: /var growing too fast
Hello, Robert Huff pisze: zbigniew szalbot writes: > I thought I would ask your advice. I only have a 2 GB /var slice > and space is shrinking fast. > > It may be that something else is eating up available space but I > am not sure how to measure it. Every day about 1% more of > available space is taken. Start by running: du /var | sort -nr | head -n 50 | more Great! Thank you. /var/mysql is the biggest. It kind of strange because I only have maybe 7MB worth of data on mysql database. I guess these all are necesseray files though. I did check on a different machine I have access to, mysql dir is even bigger. Thank you Robert! Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
/var growing too fast
zbigniew szalbot writes: > I thought I would ask your advice. I only have a 2 GB /var slice > and space is shrinking fast. > > It may be that something else is eating up available space but I > am not sure how to measure it. Every day about 1% more of > available space is taken. Start by running: du /var | sort -nr | head -n 50 | more This will show you the 50 biggest directories. If you don't understand why they're the size they are ... that's your first step. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
/var growing too fast
Hello, I thought I would ask your advice. I only have a 2 GB /var slice and space is shrinking fast. I see that most space is taken by /var/db. $ du -hs /var/db 1.4G/var/db $ du -hs /var 1.7G/var $ df /dev/ad0s1e 2178510 1738396 26583487%/var Is it possible to release some space from /var/db? I seem to recall that /var/db is pretty important and I better not lose it... It may be that something else is eating up available space but I am not sure how to measure it. Every day about 1% more of available space is taken. Many thanks for ideas what to do (apart from bying a bigger drive :) And season greetings to you all! Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"