CA BD NY
  • Categories

  • Recent Posts

  • RSS MySQL Hacker

  • RSS Apache Hacker

  • RSS MiniCTO

  • Meta

  • Archive for the Disks Category


    Stop Lock Files from Locking Your Cron Jobs Upon Unscheduled Reboot

    Published September 27th, 2009

    Nobody likes unscheduled reboots but it happens to all of us. Recently, we had all our servers rebooted because our data center’s ATS — a device that switches to UPS power — failed. About 90% of the servers returned to life as usual but a few had cron jobs that got stuck due to previous [...]

    Creating a swap partition

    Published September 27th, 2009

    Recently our data center had a power issue and rebooted all our servers. In this process, one of the server had an issue with the swap partition (/dev/sda3). So we decided to recreate it as follows:
    # mkfs -t ext3 /dev/sda3
    # mkswp /dev/sda3 1024

    Surviving fsck.ext3: Unable to resolve LABEL problem

    Published September 26th, 2009

    Due to a forced hard reboot, thanks to the Data Center’s faulty PDU, one of our servers got the blues. After getting Nagios alert, we logged onto it via remote KVM and noticed that it is hanging at the maintenance shell prompt.
    After logging in as root to the maintenance shell, we noticed that the system [...]

    Running out of disk space even when 20% is free!

    Published June 8th, 2009

    Today, we had a panic call from a customer who was hosting a small app on a non-dedicated server environment with us. The app uses a ton of images and was hosted on a box with terabytes of disk space. They called with a message saying that the system is out of disk space.
    After investigating, [...]