DBERROR- critical database situation
Mon Dec 11, 2006 · 155 words

OK, so this one started with a rather ominous message in /var/log/mailaccess.log:

Dec 11 15:33:47 gw mbpath[4439]: DBERROR: critical database situation

Stopped the server, tried a db rebuild. Nothing. Noticed a “no space on device” error, indeed df confirmed it. On to finding what's taking up the room:

gw:/Library/Logs root# du -hc -d 1 /

  0B    /.Trashes
1.5K    /.vol
318M    /Applications
1.5K    /automount
3.5M    /bin
  0B    /cores
2.0K    /dev
  0B    /Groups

1.8G    /Library

2.0K    /Network

 21M    /opt

 45G    /private

2.2M    /sbin

112K    /Shared Items

1.1G    /System

9.0M    /Users

1.6G    /usr

5.7G    /Volumes

 56G    /

 56G    total

Could it really be the logs? Yups:

gw:/Library/Logs root# du -hc /private/var/log/samba/log.*

68K    /private/var/log/samba/log.nmbd

624K    /private/var/log/samba/log.smbd

44G    /private/var/log/samba/log.smbd.old

44G    total

Yikes! Deleted log.smbd.old and thanks to some avid GNU/Linux users, was able to get things working again:

gw:~ root# nano /etc/smb.conf

[global]

        bind interfaces only = true

        interfaces = en1 192.168.0.1

        hosts deny = all

        hosts allow = 192.168.0.1/24

back · essays · credits ·