Author: Josh

  • sudo PATH and bash

    I just spent a bit of time troubleshooting a path issue with sudo on a CentOS server.  This is a note to self to preserve this bit of knowledge. When dealing with sudo, the only time the PATH environment variable will be preserved is if it’s in .bashrc and NOT in .bash_profile.

  • Software RAID and GRUB

    When building out a system with a boot partition using software RAID, it is critical to install GRUB on both drives to that if one fails, the other can be used to boot the system. 1. Make sure that the RAID volume is synchronized (assuming /dev/md0 for /boot): mdadm -D /dev/md0 2. Install grub on…

  • Persistent Debian Daemons

    As a long time Redhat / Fedora user, starting daemons on system boot in Debian has been a mystery.  I recently took the time to search for the answer, rather than placing the start command in the rc.local file and it’s not that bad.  As long as the init script exists in /etc/init.d, run the…

  • Replacing a MySQL Master Node

    I recently had to build out a new MySQL node and replace an existing replication master.  Here is the basic procedure that I followed. 1. Build out the new server 2. Install MySQL.  Place the data directory on a logical volume with at least 10% free space in the volume  group (for snapshot backups). 3.…

  • Fast Hard Disks

    One of the biggest bottlenecks in any system is the hard disk drive.  I found HyperOS Systems while reviewing the MySQL users mailing list yesterday.  This company sells a device that you can plug DDR2 RAM into and use as a Solid State Disk.  They also provide a battery and CF backup system in case…

  • What is Linux?

    The Linux Foundation recently had a contest to see who could come up with a video to compete with the “I’m a Mac” and “I’m a PC” ads.  Here is the winner.