Koozali.org: home of the SME Server
Obsolete Releases => SME Server 8.x => Topic started by: newreal on October 13, 2012, 09:18:41 AM
-
If you happend to find this recuring error il your logs on SME 8 x64
ntpd: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory
you need to allow more memory to ntpd
[root@new-server ~]# db configuration show ntpd
ntpd=service
MemLimit=12000000
NTPServer=smeserver.pool.ntp.org
SyncToHWClockSupported=yes
status=enabled
[root@new-server ~]# db configuration setprop ntpd MemLimit 24000000
Since I don't know the SME action or event to write this config to "/var/service/ntpd/env/MEMLIMIT", I also edit the value in this file.
Then it is solved.
If someone knows the good command to write the config, please say it.
-
newreal
Please read this
http://wiki.contribs.org/Db_command_tutorial
it should help you work out the required command.
You can then apply that knowledge to any db command for any setting (for which db commands exist). It will serve you well as a sme server user.
There are lots of examples & specific commands here
http://wiki.contribs.org/DB_Variables_Configuration
If you cannot work out the command you need, then please ask here again.
-
If you read my post, I know what to do with db configuration or config command.
What I do not know is how to force the expand and or the reload of NTPD config trough a signal-event action.
the expand command (Which I forgot to paste in my post) is
expand-template /var/service/ntpd/env/MEMLIMIT
Sometimes it does exists an event which expand and restart the service.
-
forgive me, It's too early here in Belgium :-)
db configuration setprop ntpd MemLimit 24000000
signal-event timeserver-update
So 'voilĂ '.
-
If you happend to find this recuring error il your logs on SME 8 x64
If you happen to find that, then you should report a bug via the bug tracker.
-
This was reported as Bug 7807 on 27th July and a possible fix provided the same day. Look out for e-smith-ntp-2.2.0-6.el5.sme.noarch
Please report bugs to bugzilla so that they can be fixed.