Quick EBS LVM Setup

Just a quick note on how to setup EBS in EC2 with LVM

pvcreate /dev/xvdb
vgcreate new_mount /dev/xvdb
lvcreate -l 100%FREE -n lvm new_mount
mkdir /new_mount
mkfs.ext4 /dev/mapper/new_mount-lvm
echo "/dev/mapper/new_mount-lvm /new_mount auto noatime 0 0" | sudo tee -a /etc/fstab
mount /dev/mapper/new_mount-lvm /new_mount