Home

davidodwyer.com - bits and bobs and bash

Primary Links

  • Home
  • Blog
  • Scripts
  • Links
  • Contact

Recent Links

  • HOWTO: migrate wubi install to partition - Ubuntu Forums
  • [ubuntu] [SOLVED] Eclipse Error - Page 2 - Ubuntu Forums
  • Setting up Pressflow and Varnish to work with HTTP and HTTPS | SingleMind Consulting
  • cmdln.org (a sysadmin blog)
  • Dexpot - The utility for virtual desktops
  • Step-by-step: Installing Project Mercury 1.1 (Beta) on Ubuntu Lucid | groups.drupal.org
  • strace multiple processes - Edoceo, Inc.
  • A Guide to Efficiently Using Irssi and Screen | quadpoint.org
  • Minimal iTunes Install for iPhone Users
  • ssh on multiple servers Using cluster ssh -- Debian Admin
more

Tags

debian drupal ec2 howto lvm mysql one-liner rhel rsnapshot script solr tcpdump
more tags

Upcoming events

  • No upcoming events available
Add to iCalendar
more

About Me

A Systems Consultant with over 11 years’ experience in dev and operations management, high availability web services and internet technologies.
At the moment most of my work is based around Amazon Web Services, Apache Solr and the Drupal Framework.

Recent blog posts

  • Howto: Shrink an EXT3 partition on LVM to free up available extents
  • Howto: Install Apache Solr 1.4.1 on CentOS / Drupal 6
  • Script: Amazon EC2 MySQL Backup Toolkit
  • Howto: Install GlusterFS 3.0.4 - RHEL 5.4 / Debian Lenny
  • One-Liner: Hold back apache2 from apt-get upgrade
  • Webinar: How I learned to stop worrying and love the cloud
  • Script: quick drupal module updater
  • Script: rsnapshot_check - rsnapshot remote backup check - v0.5
  • Poor Mans MySQL Query Logging
  • PHP: Simple Process Start / Stop
more

Howto: Shrink an EXT3 partition on LVM to free up available extents

Submitted by David on Thu, 08/05/2010 - 12:17
  • ext3
  • lvm

We currently have an ext3 partition running on LVM which is using all of the 20G disk allocation (doh!) so we are unable to create any snapshots due to:
"Insufficient Free Extents Available"
We want to reduce the partition size to 15G so we have 5G to play with for snapshots and other LVM goodness.

First we umount our directory if it is currently in use:

umount /data/dir/in/use

We then run a fsck on our device
e2fsck -f /dev/path/to/lvm/

We then resize the ext3 partition "before" we resize the LVM partition
resize2fs -p /dev/path/to/lvm/ 15G

Then we resize the the LVM parition using the imaginatively named lvresize
lvresize /dev/path/to/lvm/ --size 15G

And we're done. Yay!

  • David's blog

Howto: Install Apache Solr 1.4.1 on CentOS / Drupal 6

Submitted by David on Tue, 07/06/2010 - 12:00
  • centos
  • drupal
  • howto
  • solr

Setup Single Core Solr on CentOS

Upgrade Java

yum remove java
yum install java-1.6.0-openjdk
yum install java-1.6.0-openjdk-devel

Install Tomcat5

sudo yum install -y tomcat5

  • David's blog
  • Read more

Script: Amazon EC2 MySQL Backup Toolkit

Submitted by David on Mon, 07/05/2010 - 21:29
  • ec2
  • mysql
  • script

#!/bin/bash
#
#  Amazon EC2 MySQL Backup Toolkit
#
#  do_mysql_backup v1.0 - David O'Dwyer
#
# Basic wrapper for EBS snapshots / mylvmbackup.
# Assumes ec2-api-bin and mylvmbackup installed
# and MySQL data directory located on LVM partition
#
########################################

AttachmentSize
do_mysql_backup.sh3.67 KB
  • David's blog
  • Read more
  • 1 attachment
  • 1
  • 2
  • 3
  • 4
  • 5
  • next ›
  • last »