Monthly Archives: September 2014

CentOS 7 and IPV6_DEFAULTGW prefixlen

Just a brief side-note for CentOS’ /etc/sysconfig/network-scripts/ifcfg-device IPV6_DEFAULTGW parameter – it does not accept the prefixlen suffix, like the DNS, or IPV6ADDR parameters! In other words, if you do put there something like “/64” (presumably) suffix at the end of your address in IPV6_DEFAULTGW parameter, the

netstat -rn -A inet6

will not display the IPv6 gateway, telling you that the system will not know how to reach the ipv6 Internet.

Not too intuitive, if you ask me but that is what it is…

Amavis’ BDB suicidal after power outages

I’ve had a few power outages in a row this morning, and the mail server rebooted, too. The FFS reported no major problems, but amavisd failed to start, with the following in the /var/log/maillog:

Sep 18 18:34:11 continuum amavis[17028]: (!!)TROUBLE in pre_loop_hook: db_init: BDB no dbN: __fop_file_setup:  Retry limit (100) exceeded, File exists. at (eval 103) line 322.
Sep 18 18:34:11 continuum amavis[17028]: (!)_DIE: Suicide () TROUBLE in pre_loop_hook: db_init: BDB no dbN: __fop_file_setup:  Retry limit (100) exceeded, File exists. at (eval 103) line 322.

The data in BDBs was corrupted although the file system didn’t report that! Moving the /var/amavais/db/* into another directory, and restarting postfix and amavis solved the problem, though.