Aug
29
2008
I looked for a long time for a piece of software that allows to manage messages sent to a central syslog server. Logwatch sends email reports containing tons of messages, or focused on some applications. Logs are usually not being looked at and forgotten. I then found out a Cacti module could do the job, […]
Tags: cacti, linux, logging, unix
Jul
26
2008
It is generally good practice to respect the two following rules when backing up databases. The backup has to be: consistent fast Consistency is easily achieved putting a read lock on all tables beforehand. However, this isn’t always applied, and WILL definitely lead to a database integrity problem when restoring.Once a lock has been set […]
Tags: backup, linux, LVM, Mysql
Jul
22
2008
If you wonder if you should use rlm_ippool or rlm_sqlippool to turn your Radius into a “DHCP” server, read on! rlm_ippool We first configured Freeradius to provide IP addresses through the ippool module. IPs are stored internally in a binary data file. radiusd.conf Users In users, we’ve got: On startup, db.ippool and db.ipindex are created […]
Tags: Freeradius, linux, Mysql, radius
Apr
19
2008
Disabling Image Files Xen usually stores running domains in /var/lib/xen/save, causing a /var full on many systems when dom0 is shut down. Edit /etc/sysconfig/xendomains or /etc/default/xendomains and replace “XENDOMAINS_SAVE=/var/lib/xen/save” with “XENDOMAINS_SAVE=” This sends a shutdown signal to all virtual machines before dom0 reboots. A 300 second timeout is defined before killing an OS that hangs […]
Tags: console, linux, NTP, redhat, virtualization
Feb
25
2008
When modifying the partition table, fdisk usually returns “Device or resource busy” error messages such as: Partprobe from the “parted” package helps fixing this issue, avoiding a useless reboot. From the man page:“partprobe is a program that informs the operating system kernel of partition table changes, by requesting that the operating system re-read the partition […]
Tags: linux, redhat