Segmentation fault [message #35990] |
Sun, 10 May 2009 13:18 |
satimis
Messages: 39 Registered: August 2008
|
Member |
|
|
Hi folks,
OpenVZ
guest(VE) - OS, Ubuntu 8.04 (created on template)
Clamav-daemon
On running;
root@vz2:/# /etc/init.d/clamav-daemon start
* Starting ClamAV daemon clamd
LibClamAV Warning: ***********************************************************
LibClamAV Warning: *** This version of the ClamAV engine is outdated. ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
LibClamAV Error: cli_realloc(): Can't re-allocate memory to 19784 bytes.
realloc_problem: Cannot allocate memory
LibClamAV Error: cli_ac_addpatt: Can't realloc ac_pattable
LibClamAV Error: cli_parse_add(): Problem adding signature (1).
LibClamAV Error: Problem parsing database at line 56181
Segmentation fault [fail]
root@vz2:/# ls /tmp/
clamav-a0d562c1d717bbd7eddc575952c444a4
root@vz2:/# ls /tmp/clamav-a0d562c1d717bbd7eddc575952c444a4/
COPYING main.db main.fp main.hdb main.info main.mdb main.ndb main.zmd
Please advise how to fix the problem. TIA
B.R.
satimis
|
|
|
|
|
|
Re: Segmentation fault [message #36010 is a reply to message #35998] |
Tue, 12 May 2009 04:00 |
satimis
Messages: 39 Registered: August 2008
|
Member |
|
|
Hi jarg,
Thanks for your advice and URL
jarg wrote on Mon, 11 May 2009 22:03 | vmguarpages is not actually the problem. It is privvmpages and probably others. I would recommend to set all parameters as in http://wiki.openvz.org/UBC_configuration_examples_table "C".
When you have one working config, copy it, edit it with a text editor, delete the VE unique stuff (hostname, VE ID, IP address, ...)
|
On host:-
I found the sample file. Copied and renamed it as ve-vps.revise.conf
Changed it as follow;
$ cat /etc/vz/conf/ve-vps.revise.conf
ONBOOT="yes"
# UBC parameters (in form of barrier:limit)
KMEMSIZE="24800000:24800000" #"11055923:11377049"
LOCKEDPAGES="4096:4096" #"256:256"
PRIVVMPAGES="262144:292912" #"65536:69632"
SHMPAGES="131072:131072" #"21504:21504"
NUMPROC="400:400" #"240:240"
PHYSPAGES="0:2147483647"
VMGUARPAGES="102400:2147483647" #"33792:2147483647"
OOMGUARPAGES="102400:214748367" #"26112:2147483647"
NUMTCPSOCK="500:500" #"360:360"
NUMFLOCK="200:220" #"188:206"
NUMPTY="64:64" #"16:16"
NUMSIGINFO="512:512" #"256:256"
TCPSNDBUF="5365760:10485760" #"1720320:2703360"
TCPRCVBUF="5365760:10485760" #"1720320:2703360"
OTHERSOCKBUF="1503232:4063232" #"1126080:2097152"
DGRAMRCVBUF="262144:262144"
NUMOTHERSOCK="500:500" #"360:360"
DCACHESIZE="4194304:4317184" #"3409920:3624960"
NUMFILE="8192:8192" #"9312:9312"
AVNUMPROC="200:200" #"180:180"
NUMIPTENT="128:128"
# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="1048576:1153024"
DISKINODES="200000:220000"
QUOTATIME="0"
# CPU fair sheduler parameter
CPUUNITS="1000"
But some of the items I can't find on the table. I'll remove "#...." later. They are for easy reference.
Quote: |
and use
vzctl set XYZ --applyconfig XYZ (or something like that, please see the man page)
to apply the config to other VEs.
|
However I have no idea how to use the file. The guest 102 (VE) is running. Please advise. TIA
Furthermore on creating VE running;
$ sudo vzctl create 102 --ostemplate ubuntu-8.04-i386-minimal --config vps.basic
Where is vps.basic ?
B.R.
satimis
|
|
|
Re: Segmentation fault [message #39749 is a reply to message #35990] |
Fri, 28 May 2010 11:39 |
MrRAV
Messages: 1 Registered: May 2010
|
Junior Member |
|
|
Hi.
Have a same problem at debian lenny.
...
root@mailboy:~# clamscan /root
LibClamAV Warning: ***********************************************************
LibClamAV Warning: *** This version of the ClamAV engine is outdated. ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
Segmentation fault
NODE
ovz-1:~# vzctl --version
vzctl version 3.0.22
ovz-1:~# uname -a
Linux ovz-1 2.6.26-2-openvz-amd64 #1 SMP Tue Mar 9 23:10:10 UTC 2010 x86_64 GNU/Linu
VEID settings like http://wiki.openvz.org/UBC_configuration_examples_table "C"
KMEMSIZE="16384000:18022400"
LOCKEDPAGES="4096:4096"
PRIVVMPAGES="262144:292912"
SHMPAGES="131072:131072"
NUMPROC="400:400"
PHYSPAGES="0:9223372036854775807"
VMGUARPAGES="102400:102400"
OOMGUARPAGES="102400:9223372036854775807"
NUMTCPSOCK="500:500"
NUMFLOCK="200:220"
NUMPTY="64:64"
NUMSIGINFO="512:512"
TCPSNDBUF="5365760:5365760"
TCPRCVBUF="5365760:5365760"
OTHERSOCKBUF="33554432:33554432"
DGRAMRCVBUF="1503232:1503232"
NUMOTHERSOCK="500:500"
DCACHESIZE="4194304:4317184"
NUMFILE="8192:8192"
AVNUMPROC="200:200"
NUMIPTENT="128:128"
|
|
|
|