Problem mit backup.pl - Cannot allocate memory

weally

Registered User
Hallo zusammen,

ich habe leider ein Problem mit der Backup-Funktion von Confixx und zwar erhalte ich immer folgende Fehlermeldung:

Code:
Error: unable to run command: '/bin/tar -cz -C /home/www/web0 files html log backup restore | /usr/bin/split -b 2040m - /bckp_zku7by/files/user/web0.tgz.': Cannot allocate memory

Return code: -1 
error executing command:
/usr/bin/mysqldump -n -hlocalhost -S/var/lib/mysql/mysql.sock -uroot -p"passwort"  --add-drop-table --quote-names -B usr_web0_1 >/bckp_zku7by/users_mysql/web0-mysql/usr_web0_1

Warning: Can not remove temporary dir '/bckp_zku7by': Cannot allocate memory
Dump process successfully complete

Zu wenig Arbeitsspeicher kann eigentlich nicht sein (1 GB, Suse 10.1, Athlon 64 3000+), habe auch schon versucht andere Dienste wie http, postfix, ftp etc. zu beenden, aber die Fehlermeldung "Cannot allocate memory" bleibt :(

Wenn ich tar bzw. mysqldump manuell ausführe, erhalte ich keine Fehlermeldung :rolleyes:

Könnt ihr mir weiterhelfen oder gibt es eine Möglichkeit Confixx manuell zu sichern und anschließend wieder über die restore.pl einzuspielen?

Danke schon mal
 
Eigentlich nichts ungewöhnliches:

top
Code:
top - 15:42:11 up 3 days,  5:51,  1 user,  load average: 0.43, 0.45, 0.52
Tasks: 121 total,   1 running, 120 sleeping,   0 stopped,   0 zombie
Cpu(s): 23.9% us,  2.9% sy,  0.1% ni, 57.3% id, 15.3% wa,  0.0% hi,  0.4% si
Mem:   1020080k total,   991184k used,    28896k free,    38656k buffers
Swap:  1052248k total,    52576k used,   999672k free,   713936k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 5034 wwwrun    16   0 80700  22m 3664 S  6.0  2.3   0:01.14 httpd2-prefork
 4975 wwwrun    16   0 80700  22m 3660 S  4.0  2.3   0:01.20 httpd2-prefork
    1 root      16   0   720   68   40 S  0.0  0.0   0:00.84 init
    2 root      34  19     0    0    0 S  0.0  0.0   0:00.15 ksoftirqd/0
    3 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/0
    4 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
    5 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthread
    7 root      10  -5     0    0    0 S  0.0  0.0   0:02.85 kblockd/0
    8 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
  149 root      17  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0
  148 root      15   0     0    0    0 S  0.0  0.0   1:25.99 kswapd0
  357 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 cqueue/0
  358 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod
  392 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 kpsmoused
  704 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 ata/0
  707 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 scsi_eh_0
  708 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 scsi_eh_1
  799 root      10  -5     0    0    0 S  0.0  0.0   1:14.43 md0_raid1
  815 root      15   0     0    0    0 S  0.0  0.0   1:11.00 kjournald
  874 root      12  -4  1864  388  332 S  0.0  0.0   0:00.25 udevd
 1500 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 khubd
 1620 root      15   0     0    0    0 S  0.0  0.0   0:00.00 kjournald
 1914 root      18   0  1604  196  192 S  0.0  0.0   0:00.00 resmgrd
 1953 messageb  16   0  3420  680  600 S  0.0  0.1   0:00.18 dbus-daemon
 2193 root      16   0  1892  628  512 S  0.0  0.1   0:32.28 syslog-ng
 2196 root      15   0  1656  492  316 S  0.0  0.0   0:00.00 klogd
 2204 nobody    18   0  1556  268  264 S  0.0  0.0   0:00.00 portmap
 2207 root      16   0  4624 1152  860 S  0.0  0.1   0:00.14 saslauthd
 2232 root      16   0  4624 1112  820 S  0.0  0.1   0:00.12 saslauthd
 2233 root      16   0  4624 1148  856 S  0.0  0.1   0:00.12 saslauthd
 2235 root      16   0  4624 1112  820 S  0.0  0.1   0:00.10 saslauthd
 2236 root      16   0  4624 1112  820 S  0.0  0.1   0:00.11 saslauthd
 2268 root      16   0  2228  632  564 S  0.0  0.1   0:07.54 xinetd
 2321 root      16   0  4864  684  568 S  0.0  0.1   0:00.97 sshd
 2775 root      15   0  1804  524  468 S  0.0  0.1   0:00.31 cron
 2896 root      18   0  1960  368  364 S  0.0  0.0   0:00.03 mingetty
 2897 root      18   0  1956  360  356 S  0.0  0.0   0:00.00 mingetty
 2898 root      18   0  1960  360  356 S  0.0  0.0   0:00.00 mingetty
 2899 root      18   0  1960  360  356 S  0.0  0.0   0:00.00 mingetty
 2900 root      18   0  1960  360  356 S  0.0  0.0   0:00.00 mingetty
 2903 root      18   0  1960  360  356 S  0.0  0.0   0:00.00 mingetty
22957 postfix   17   0 11268 5192 2052 S  0.0  0.5   0:49.98 postgrey
17181 root      15   0  5068 1212 1052 S  0.0  0.1   0:08.34 master
17289 root      23   0  2528  460  456 S  0.0  0.0   0:00.01 mysqld_safe
17324 mysql     15   0  209m 103m 3852 S  0.0 10.3  87:33.16 mysqld
30718 root      19   0 80404  24m 5716 S  0.0  2.5   0:26.25 httpd2-prefork
19335 ntp       16   0  4172 4172 3124 S  0.0  0.4   0:00.10 ntpd
22187 root      15   0     0    0    0 S  0.0  0.0   0:02.57 pdflush
22220 root      15   0     0    0    0 S  0.0  0.0   0:00.06 pdflush
 2240 root      18   0  1368  304  248 S  0.0  0.0   0:04.17 zmd
21521 root      18   0  3452 1580 1276 S  0.0  0.2   0:24.18 pipelog.pl

ps aux
Code:
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0    720    68 ?        S    Oct22   0:00 init [3]
root         2  0.0  0.0      0     0 ?        SN   Oct22   0:00 [ksoftirqd/0]
root         3  0.0  0.0      0     0 ?        S<   Oct22   0:00 [events/0]
root         4  0.0  0.0      0     0 ?        S<   Oct22   0:00 [khelper]
root         5  0.0  0.0      0     0 ?        S<   Oct22   0:00 [kthread]
root         7  0.0  0.0      0     0 ?        S<   Oct22   0:02 [kblockd/0]
root         8  0.0  0.0      0     0 ?        S<   Oct22   0:00 [kacpid]
root       149  0.0  0.0      0     0 ?        S<   Oct22   0:00 [aio/0]
root       148  0.0  0.0      0     0 ?        S    Oct22   1:26 [kswapd0]
root       357  0.0  0.0      0     0 ?        S<   Oct22   0:00 [cqueue/0]
root       358  0.0  0.0      0     0 ?        S<   Oct22   0:00 [kseriod]
root       392  0.0  0.0      0     0 ?        S<   Oct22   0:00 [kpsmoused]
root       704  0.0  0.0      0     0 ?        S<   Oct22   0:00 [ata/0]
root       707  0.0  0.0      0     0 ?        S<   Oct22   0:00 [scsi_eh_0]
root       708  0.0  0.0      0     0 ?        S<   Oct22   0:00 [scsi_eh_1]
root       799  0.0  0.0      0     0 ?        S<   Oct22   1:14 [md0_raid1]
root       815  0.0  0.0      0     0 ?        S    Oct22   1:11 [kjournald]
root       874  0.0  0.0   1864   388 ?        S<s  Oct22   0:00 /sbin/udevd --daemon
root      1500  0.0  0.0      0     0 ?        S<   Oct22   0:00 [khubd]
root      1620  0.0  0.0      0     0 ?        S    Oct22   0:00 [kjournald]
root      1914  0.0  0.0   1604   196 ?        Ss   Oct22   0:00 /sbin/resmgrd
100       1953  0.0  0.0   3420   680 ?        Ss   Oct22   0:00 /usr/bin/dbus-daemon --system
root      2193  0.0  0.0   1892   628 ?        Ss   Oct22   0:32 /sbin/syslog-ng
root      2196  0.0  0.0   1656   492 ?        Ss   Oct22   0:00 /sbin/klogd -c 1 -x -x
nobody    2204  0.0  0.0   1556   268 ?        Ss   Oct22   0:00 /sbin/portmap
root      2207  0.0  0.1   4624  1152 ?        Ss   Oct22   0:00 /usr/sbin/saslauthd -a pam
root      2232  0.0  0.1   4624  1112 ?        S    Oct22   0:00 /usr/sbin/saslauthd -a pam
root      2233  0.0  0.1   4624  1148 ?        S    Oct22   0:00 /usr/sbin/saslauthd -a pam
root      2235  0.0  0.1   4624  1112 ?        S    Oct22   0:00 /usr/sbin/saslauthd -a pam
root      2236  0.0  0.1   4624  1112 ?        S    Oct22   0:00 /usr/sbin/saslauthd -a pam
root      2268  0.0  0.0   2228   632 ?        Ss   Oct22   0:07 /usr/sbin/xinetd
root      2321  0.0  0.0   4864   684 ?        Ss   Oct22   0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
root      2775  0.0  0.0   1804   524 ?        Ss   Oct22   0:00 /usr/sbin/cron
root      2896  0.0  0.0   1960   368 tty1     Ss+  Oct22   0:00 /sbin/mingetty --noclear tty1
root      2897  0.0  0.0   1956   360 tty2     Ss+  Oct22   0:00 /sbin/mingetty tty2
root      2898  0.0  0.0   1960   360 tty3     Ss+  Oct22   0:00 /sbin/mingetty tty3
root      2899  0.0  0.0   1960   360 tty4     Ss+  Oct22   0:00 /sbin/mingetty tty4
root      2900  0.0  0.0   1960   360 tty5     Ss+  Oct22   0:00 /sbin/mingetty tty5
root      2903  0.0  0.0   1960   360 tty6     Ss+  Oct22   0:00 /sbin/mingetty tty6
postfix  22957  0.0  0.5  11268  5192 ?        Ss   Oct23   0:50 /usr/local/sbin/postgrey -d --inet=60000 --user=postfix --unix=/var/spool/postfix/private/po
root     17181  0.0  0.1   5068  1212 ?        Ss   Oct24   0:08 /usr/lib/postfix/master
root     17289  0.0  0.0   2528   460 ?        S    Oct24   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/mysql.pid
mysql    17324  3.7 10.3 214964 105580 ?       Sl   Oct24  88:05 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql
root     30718  0.0  2.4  80404 25144 ?        Ss   Oct24   0:26 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
ntp      19335  0.0  0.4   4172  4172 ?        SLs  Oct24   0:00 /usr/sbin/ntpd -p /var/lib/ntp/var/run/ntp/ntpd.pid -u ntp -i /var/lib/ntp
root     22187  0.0  0.0      0     0 ?        S    00:03   0:02 [pdflush]
root     22220  0.0  0.0      0     0 ?        S    00:04   0:00 [pdflush]
root      2240  0.0  0.0   1368   304 ?        Ss   09:21   0:04 zmd /usr/lib/zmd/zmd.exe    --sleep 82199
root     21521  0.1  0.1   3452  1580 ?        S    10:45   0:24 /usr/bin/perl /root/confixx/pipelog.pl
root     22197  0.0  0.1   3640  1372 pts/0    S    10:59   0:00 su
root     22243  0.0  0.2   4156  2056 pts/0    S+   11:00   0:00 bash
postfix  28197  0.0  0.1   5120  1844 ?        S    12:46   0:00 tlsmgr -l -t unix -u
postfix  28203  0.0  0.1   5080  1796 ?        S    12:46   0:00 anvil -l -t unix -u
postfix  30538  0.0  0.2   5344  2248 ?        S    13:27   0:00 trivial-rewrite -n rewrite -t unix -u
postfix   3962  0.0  0.3   5784  3120 ?        S    15:19   0:00 smtpd -n smtp -t inet -u -s 2
postfix   4299  0.0  0.1   5072  1768 ?        S    15:26   0:00 pickup -l -t fifo -u
postfix   4386  0.0  0.3   5784  3112 ?        S    15:28   0:00 smtpd -n smtp -t inet -u -s 2
wwwrun    4951  0.3  2.5  81204 25808 ?        S    15:38   0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    5054  0.4  2.5  81100 25588 ?        S    15:41   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    5068  0.5  2.4  80820 24592 ?        S    15:41   0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    5071  0.2  2.4  80944 25316 ?        S    15:41   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    5092  0.3  2.5  81024 25540 ?        S    15:42   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    5129  0.8  2.3  80704 24164 ?        S    15:42   0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
wwwrun    5143  0.7  2.4  80828 24796 ?        S    15:42   0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL

free -m
Code:
             total       used       free     shared    buffers     cached
Mem:           996        937         58          0         33        694
-/+ buffers/cache:        209        786
Swap:         1027         51        976
 
Was liefert ein "du -sh /home/www/web0"?

Es sieht so aus als braucht Confixx mehr Arbeitsspeicher als zur Verfügung steht.

Starte doch mal das Backup-Skript mit der Option --small-mem bzw. -sm , steht für "run on small memory". Ansonsten versuche es mal mit einem Swapfile um den evtl. Speicherengpass kurzfristig zu umgehen.
 
Back
Top