Archive for February, 2011

Adding a drive to a RAID 5 array

Followed the guide here: ubuntuforums.org/showthread.php?t=713936 Once again, LVM is awesome.

No Comments

Stopping mingetty from launching in a Fedora/CentOS/RHEL Xen VM

Set “ACTIVE_CONSOLES=” in /etc/sysconfig/init and reboot. Remarkably simple, yet undocumented.

No Comments

Oh, hey. I’m late this year.

No Comments

Using LVM to move between drives

Finally got a pair of 500GB drives to do RAID1. So I needed to move from my single 300GB to a RAID1’ed 500GB pair. For the dom0, I had to do a reinstall of Fedora. Since I would be booting off the drives, and I needed grub setup as RAID aware, it was just easier […]

1 Comment

find/xargs/grep tricks

Because xargs will die if you have an unescaped quote, but using -0 screws everything up if you’re reading a list of files: sed s/\’/\\\\\’/|cut -d \: -f 1|xargs -i rm “{}” The sed pattern will put the escape character in front of any single quotes so that xargs doesn’t screw up. Using md5sum to […]

,

No Comments

Allowing password-less SSH logins

Because I don’t care too much about what happens to my test servers, I’ve been setting up password-less SSH logins. Using a Linux system to login is trivial, because it’s a simple matter of doing ssh-keygen on the system that will be connecting to the remote server, and just hitting enter until the key is […]

No Comments