rpmdb: Thread died in Berkeley DB library

While trying to update a CentOS server I got this error: [root@washingmashine ~]# yum update error: rpmdb: BDB0113 Thread/process 47226/140411903506496 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db5 – (-30973) error: cannot open Packages database in… Continue reading “rpmdb: Thread died in Berkeley DB library”

resize2fs: bad magic number in super-block

After extending a virtual drive on VMWare, I had to add the additional disk space to the logical volume. After adding adding the space, you need to resize the file system. On the infrastructure I was working on, I usually use resize2fs command but this time it didn’t work: [root@washingmashine ~]# resize2fs /dev/mapper/data-archive resize2fs 1.44.6… Continue reading “resize2fs: bad magic number in super-block”

Logrotate basics

By default, logrotate runs once a day, using a cron scheduler from /etc/cron.daily/ # ls /etc/cron.daily/ logrotate Configuration files for logrotate: default configuration /etc/logrotate.conf: $ cat /etc/logrotate.conf # see “man logrotate” for details # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 4 # create new (empty) log files after… Continue reading “Logrotate basics”

Leaving incrond for systemd.path

I’ve been having problems with incrond for months; after trying to upgrade from version 0.5.10, incrond would not trigger after a specified event occurred in the monitored path. After upgrading to version 0.5.12-9 (I couldn’t use 0.5.10 because of security policies), incrond has started behaving in a completely random way: sometimes it was triggered as… Continue reading “Leaving incrond for systemd.path”