Posted on 08-16-2011 06:59 AM
Oh my (sorry, had to say it)
I have an 80GB HD that keeps filling up when mysql backups are run. I'm just
wondering what people see with their database size and what the best way to
reduce it.
Currently it is running on an 80GB drive which has 23GB available. However I
get an alert every night about a full HD. It took me a few days to realize
that the process of backing up the jamf database was temporarily using
nearly all of the disk space, causing an alert from the xserve that it had
less than 5% space. By the time I checked it most of the time, the disk was
back to +-22GB availalble.
So, what to do? I'm sure I could clear a GB or two here and there. Perhaps
reduce the time I keep the logs, and keep less backups (7 if I remember
correctly) on the server? Anyone have any other suggestions? I'd like to
have a little more space.
All suggestions (other than getting a bigger disk) are welcome.
xserve:~ 00$ sudo du -xhd1 /
30M /.fseventsd
311M /.Spotlight-V100
0B /.Trashes
0B /.vol
847M /Applications
3.9M /bin
0B /cores
4.5K /dev
0B /Groups
1.0K /home
19G /Library
1.0K /net
1.0K /Network
27G /private
2.8M /sbin
0B /Shared Items
2.5G /System
517M /Users
875M /usr
4.0K /Volumes
52G /
Sorry about the non human readable output.
xserve:~ 00$ sudo du -xd1 /private/var; date
0 /private/var/agentx
40 /private/var/amavis
8 /private/var/at
19384 /private/var/audit
11895248 /private/var/backups
47984 /private/var/clamav
1971944 /private/var/db
0 /private/var/empty
217400 /private/var/folders
1272 /private/var/jabberd
32 /private/var/lib
2214840 /private/var/log
0 /private/var/mail
16 /private/var/mailman
8 /private/var/msgs
39483160 /private/var/mysql
32 /private/var/named
0 /private/var/netboot
8 /private/var/pcast
25960 /private/var/root
256 /private/var/run
0 /private/var/rwho
8 /private/var/samba
1808 /private/var/servermgrd
1136 /private/var/spamassassin
24 /private/var/spool
0 /private/var/teamsserver
32 /private/var/tmp
0 /private/var/virusmails
1048576 /private/var/vm
0 /private/var/xgrid
0 /private/var/yp
56929176 /private/var
Sat Aug 6 16:42:40 PDT 2011