How to Create a New EBS Volume on AWS

Create an EBS volume of prefered size. It must be in the same availability zone with your existing instance.

Attach the volume to the instance

Check the volume device id
    fdisk -l

Partition the volume, in my case the device id was /dev/xvdf
    mkfs.ext3 /dev/xvdf

Create mount point the new volume
    mkdir -p /media/disk1

Mount it
    mount /dev/xvdf /media/disk1

Create fstab entry for automatic mounting at boot time
    nano /etc/fstab

Add the following entry to the file
    /dev/xvdf  /media/disk1/    ext3    noatime,nodiratime        0   0
 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
8 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.