This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

log partition filling up

I have my log partition filling up...I have the configuration set to delete old files when it reaches 70% of the log partition size, but it keeps filling up...


This thread was automatically locked due to age.
  • Hi Gnomme,

    I've started to have the same problems:-((

    I've disabled logging and as far I as can reporting, However the data on the log partition is still increasing! I have an idea that the problem lies in the /var/log/report/16*** directory (postgres database). I tried moving the database as detailed here in the forum but my system stopped receiving mail. I had to copy the directories back again and restart the box. 

    I hope we can find a solution to our problem:-))

    FYI:
    My system is running:

    Astaro release 7.502

    Compaq server dl360:
    4 gb ram
    36 gb disks in raid1
  • Hi Gnomme,

    I've started to have the same problems:-((

    I've disabled logging and as far I as can reporting, However the data on the log partition is still increasing! I have an idea that the problem lies in the /var/log/report/16*** directory (postgres database). I tried moving the database as detailed here in the forum but my system stopped receiving mail. I had to copy the directories back again and restart the box. 

    I hope we can find a solution to our problem:-))

    FYI:
    My system is running:

    Astaro release 7.502

    Compaq server dl360:
    4 gb ram
    36 gb disks in raid1


    OMFG....[:S]
    There is no other solution for this? I had reached 96%...
  • Just for info:

    utm:/var/log/reporting # du -k -s *|sort -n

    shows:

    4       exec
    28      accu
    224     meta
    508     inline
    648     images
    2020    rrd
    4043260 pgsql

    and

    utm:/var/log/reporting/pgsql/16519 # ls -l
    total 4043252
    -rw------- 1 postgres postgres 1073741824 Sep  4 00:03 16525
    -rw------- 1 postgres postgres  444571648 Dec 23 09:11 16525.1
    -rw------- 1 postgres postgres  324780032 Dec 23 09:16 16529
    -rw------- 1 postgres postgres  338599936 Dec 23 09:11 16531
    -rw------- 1 postgres postgres          0 Mar 16  2009 16534
    -rw------- 1 postgres postgres   10821632 Nov 18 06:40 16538
    -rw------- 1 postgres postgres   11952128 Nov 18 06:40 16540
    -rw------- 1 postgres postgres       8192 Dec 23 08:35 16543
    -rw------- 1 postgres postgres     319488 Dec 23 08:31 16550
    -rw------- 1 postgres postgres     352256 Dec 23 08:30 16552
    -rw------- 1 postgres postgres       8192 Dec 20 02:30 16563
    -rw------- 1 postgres postgres      40960 Dec 18 15:21 16570
    -rw------- 1 postgres postgres      32768 Dec 20 02:30 16572
    -rw------- 1 postgres postgres       8192 Dec 23 06:48 16575
    -rw------- 1 postgres postgres      40960 Dec 22 18:51 16582
    -rw------- 1 postgres postgres      32768 Dec 22 18:52 16584
    -rw------- 1 postgres postgres   80412672 Dec 23 09:15 16611
    -rw------- 1 postgres postgres   12853248 Dec 23 09:10 16618
    -rw------- 1 postgres postgres   13328384 Dec 23 09:11 16620
    -rw------- 1 postgres postgres          0 Apr  1  2009 16623
    -rw------- 1 postgres postgres     294912 Apr  1  2009 16630
    -rw------- 1 postgres postgres     114688 Nov 18 06:40 16632
    -rw------- 1 postgres postgres  575823872 Dec 23 09:16 16635
    -rw------- 1 postgres postgres  218324992 Dec 23 09:15 16642
    -rw------- 1 postgres postgres  167698432 Dec 23 09:16 16644
    -rw------- 1 postgres postgres  296116224 Dec 23 09:11 16645
    -rw------- 1 postgres postgres   25067520 Dec 23 06:47 16648
    -rw------- 1 postgres postgres  201531392 Dec 23 06:48 16655
    -rw------- 1 postgres postgres  141230080 Dec 23 06:48 16657
    -rw------- 1 postgres postgres  198025216 Dec 23 06:48 16658

    Can I delete some of the database files??

    Thanks in advance
  • This is unusual, but not unknown: http://www.astaro.org/astaro-gateway-products/management-networking-logging-reporting/21954-log-partition-full-but-not-really.html

    Cheers - Bob


    Hi Bob,

    Thanks for the link. However, I would just like to hear if there is anything I should be aware of before I start deleting Database files.  As I previuosly wrote, I have tried to move and then re-establish the database files. Unfortunately, the system stopped proceesing Inbound mail, so i had no other option than to copy the /pgsql/16519  back and restart the system:-((.

    Once again - Thanks in advance for comments and help.
  • As Andreas asks in that thread:
    please do a console login via SSH or local console, change to the /var/log directory, and issue the following commands to check what eats up your space:

    ls -rtl
    du -hck --max-depth=1 | sort -g

    Then check for the largest files, maybe peek into them, in any case post results here. 


    Cheers - Bob
  • As Andreas asks in that thread:


    Cheers - Bob


    Thanks again Bob.

    However, If you read #4 you will see from the output that the files are indeed database files and are located in /var/log/reports/16519. I cannot peek in them:-((.

    For good measure I include the output from the commands you sugest:

    utm:/var/log # ls -rtl
    total 204
    drwx------ 2 root root 16384 Jun 26  2007 lost+found
    drwxrwx--- 3 root log   4096 Jan 11  2009 u2dcache
    drwxrwx--- 3 root log   4096 Jan 11  2009 spamd
    drwxrwx--- 3 root log   4096 Jan 11  2009 qa-logging
    drwxrwx--- 3 root log   4096 Jan 11  2009 ipsec
    drwxrwx--- 3 root log   4096 Jan 11  2009 httpd
    drwxrwx--- 3 root log   4096 Jan 11  2009 ftp
    drwxrwx--- 3 root log   4096 Jan 11  2009 afc
    drwxrwx--- 3 root log   4096 Jan 11  2009 user_prefetch
    drwxrwx--- 3 root log   4096 Jan 11  2009 ufod
    drwxrwx--- 3 root log   4096 Jan 11  2009 squid
    drwxrwx--- 3 root log   4096 Jan 11  2009 sockd
    drwxrwx--- 3 root log   4096 Jan 11  2009 pppoe
    drwxrwx--- 3 root log   4096 Jan 11  2009 pppoa
    drwxrwx--- 3 root log   4096 Jan 11  2009 pppd
    drwxrwx--- 3 root log   4096 Jan 11  2009 pop3
    drwxrwx--- 3 root log   4096 Jan 11  2009 ospf
    drwxrwx--- 3 root log   4096 Jan 11  2009 identd
    drwxrwx--- 3 root log   4096 Jan 11  2009 high-availability
    drwxrwx--- 3 root log   4096 Jan 11  2009 exim
    drwxrwx--- 3 root log   4096 Jan 11  2009 acm
    drwxrwx--- 3 root log   4096 Jan 11  2009 accd
    drwxrwx--- 3 root log   4096 Jan 12  2009 up2date
    drwxrwx--- 3 root log   4096 Jan 12  2009 system
    drwxrwx--- 3 root log   4096 Jan 12  2009 sshd
    drwxrwx--- 3 root log   4096 Jan 12  2009 smtp
    drwxrwx--- 3 root log   4096 Jan 12  2009 selfmon
    drwxrwx--- 3 root log   4096 Jan 12  2009 pptpd
    drwxrwx--- 3 root log   4096 Jan 12  2009 packetfilter
    drwxrwx--- 3 root log   4096 Jan 12  2009 openvpn
    drwxrwx--- 3 root log   4096 Jan 12  2009 notifier
    drwxrwx--- 3 root log   4096 Jan 12  2009 named
    drwxrwx--- 3 root log   4096 Jan 12  2009 mdw
    drwxrwx--- 3 root log   4096 Jan 12  2009 login
    drwxrwx--- 3 root log   4096 Jan 12  2009 logging
    drwxrwx--- 3 root log   4096 Jan 12  2009 kernel
    drwxrwx--- 3 root log   4096 Jan 12  2009 ips
    drwxrwx--- 3 root log   4096 Jan 12  2009 http
    drwxrwx--- 3 root log   4096 Jan 12  2009 fallback
    drwxrwx--- 3 root log   4096 Jan 12  2009 dhcpd
    drwxrwx--- 3 root log   4096 Jan 12  2009 device-agent
    drwxrwx--- 3 root log   4096 Jan 12  2009 confd
    drwxrwx--- 3 root log   4096 Jan 12  2009 boot
    drwxrwx--- 3 root log   4096 Jan 12  2009 aua
    drwxrwx--- 3 root log   4096 Mar 21  2009 service_monitor
    drwxrwx--- 3 root log   4096 Nov 18 00:00 xorp
    -rw-rw---- 1 root log      0 Dec 23 00:00 xorp.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 user_prefetch.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 ufod.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 u2dcache.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 squid.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 spamd.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 sockd.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 service_monitor.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 qa-logging.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 pppoe.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 pppoa.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 pppd.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 pop3.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 ospf.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 identd.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 high-availability.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 ftp.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 exim.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 device-agent.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 afc.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 acm.log
    -rw-rw---- 1 root log      0 Dec 23 00:00 accd.log
    -rw-r----- 1 root log      0 Dec 23 15:46 boot.log
    -rw-r----- 1 root log      0 Dec 23 15:46 confd.log
    -rw-r----- 1 root log      0 Dec 23 15:46 http.log
    -rw-r----- 1 root log      0 Dec 23 15:46 dhcpd.log
    -rw-r----- 1 root log      0 Dec 23 15:46 named.log
    -rw-r----- 1 root log      0 Dec 23 15:46 fallback.log
    -rw-r----- 1 root log      0 Dec 23 15:46 notifier.log
    -rw-r----- 1 root log      0 Dec 23 15:46 httpd.log
    -rw-r----- 1 root log      0 Dec 23 15:46 ipsec.log
    -rw-r----- 1 root log      0 Dec 23 15:46 ips.log
    -rw-r----- 1 root log      0 Dec 23 15:47 kernel.log
    -rw-r----- 1 root log      0 Dec 23 15:47 login.log
    -rw-r----- 1 root log      0 Dec 23 15:47 logging.log
    -rw-r----- 1 root log      0 Dec 23 15:47 mdw.log
    -rw-r----- 1 root log      0 Dec 23 15:47 pptpd.log
    -rw-r----- 1 root log      0 Dec 23 15:47 packetfilter.log
    -rw-r----- 1 root log      0 Dec 23 15:47 smtp.log
    -rw-r----- 1 root log      0 Dec 23 15:47 sshd.log
    -rw-r----- 1 root log      0 Dec 23 15:47 openvpn.log
    -rw-r----- 1 root log      0 Dec 23 15:47 selfmon.log
    -rw-r----- 1 root log      0 Dec 23 15:47 system.log
    -rw-r----- 1 root log      0 Dec 23 15:47 up2date.log
    -rw-r----- 1 root log      0 Dec 23 15:47 aua.log
    drwxr-xr-x 2 root root  4096 Dec 24 00:00 working
    drwxr-xr-x 9 root root  4096 Dec 29 19:30 reporting



    utm:/var/log # du -hck --max-depth=1 | sort -g
    4       ./working
    12      ./acm
    12      ./afc
    12      ./aua
    12      ./boot
    12      ./confd
    12      ./device-agent
    12      ./dhcpd
    12      ./fallback
    12      ./ftp
    12      ./high-availability
    12      ./http
    12      ./httpd
    12      ./identd
    12      ./ips
    12      ./ipsec
    12      ./kernel
    12      ./logging
    12      ./login
    12      ./mdw
    12      ./named
    12      ./notifier
    12      ./openvpn
    12      ./ospf
    12      ./packetfilter
    12      ./pop3
    12      ./pppd
    12      ./pppoa
    12      ./pppoe
    12      ./pptpd
    12      ./selfmon
    12      ./service_monitor
    12      ./smtp
    12      ./sockd
    12      ./sshd
    12      ./system
    12      ./up2date
    12      ./user_prefetch
    16      ./accd
    16      ./exim
    16      ./lost+found
    16      ./qa-logging
    16      ./spamd
    16      ./squid
    16      ./u2dcache
    16      ./ufod
    16      ./xorp
    4046696 ./reporting
    4047336 .
    4047336 total
  • I've solved the log partition problem...now I have the data partition at 89%...sugestions please!
  • I've solved the log partition problem...now I have the data partition at 89%...sugestions please!


    Hi Gnomme

    How did you solve the log problem??
    How is the DATA problem looking??
  • Hi Gnomme

    How did you solve the log problem??
    How is the DATA problem looking??


    The log problem is solved. I looked into each module configs of the ASG and disable the most logging and it seems to solved the problem...
    The data partition has almost duplicated the size since then, but now it stoped in 89%. The only problem is the warning emails every hour...