With a little side of applesauce...

Thursday, January 19, 2012

Debian / Mailman - mailman hangs after killing add_members process

I have figured out how to revive mailman (1:2.1.11-11+lenny1), on Debian.

THE ISSUE:
When I kill my bin/createemail.sh, which creates a home directory, and adds the user to our global mailing list before the add_members call is completed.

THE SYMPTOMS:
Administrators are unable to log into the web interface. Any administrative binaries (ie add_members) hang on the command line.

THE FIX:

sudo /etc/init.d/mailman stop
cd /var/lib/mailman/locks
sudo rm *
sudo /etc/init.d/mailman start


Friday, January 13, 2012

Root your box, and mount LVM partitions

I was teaching a friend how to root a box by adding:

init=/bin/bash
to the kernel line in grub, and then wanted to show him how to install some apps from the command line. I had never done this with LVM partitions, and was surprised when I got the following error:

File based locking initialization failed
Doh! I forgot to remount root read/write:

mount -o remount,rw /
Finally, I was able to mount all my LVM partitions with:
lvm vgscan
lvm vgchange -ay
lvm lvs
mount -a
haha! I'm getting rusty :P