Adding new disk on Amazon EC2 instance Centos/RHEL 6

Amazon VPS instances, by default only have a single disk for the whole filesystem of the server. Unless you chose to add an additional disk when you provision the server, adding disk space to your VPS can be tricky. Here’s a run down on how to add more storage to your server on amazon by mounting a new drive.

In this tutorial, I’ve mounted the new drive to /var/lib/mysql since I need to increase the disk space used by the database. This tutorial is still applicable even if you want to increase a different folder. The process will be the same.

Continue reading “Adding new disk on Amazon EC2 instance Centos/RHEL 6”

Manage Drives and Disk Partitions using fdisk

One of the common administrative tasks under UNIX/Linux is to add a new disk to the system to increase its storage capacity.  This tutorial will walk through on adding disk to a running system, making a partition, assigning file system and creating mount point for the new disk. The fdisk utility is very helpful especially when adding new drives to be used for Logical Volume Management (LVM).
Continue reading “Manage Drives and Disk Partitions using fdisk”

Logical Volume Management (LVM) Tutorial

What is LVM?

Logical Volume Management or LVM allow the server to utilize multiple hard drives and combine them to single storage. It allows an easy way to extend or shrink partition depending on how the user needs.
LVM also supports snapshots and cloning for easy backup of system images. LVM is used to allocating disks, striping, mirroring and resizing logical volumes. This tutorial will walk you through using LVM to manage disk partitions and filesystem sizes.
Continue reading “Logical Volume Management (LVM) Tutorial”