Adding a new volume to EC2 linux instance
(Migrated from old wordpress blog post dated 12/22/2010)
Our postgres EC2 linux instance ran out of disk space so I had to add another volume to the server. Following is what I did - mkfs -t ext3 /dev/sda2 #dont do it if creating from an existing snapshot
echo "/dev/sda2 /disk2 ext3 noatime 0 0" >> /etc/fstab
mkdir /disk2
mount /disk2
df -h #you should now see /disk2 as a new volume