Before you can mount the volume, you need to create and attach it.  See this KB article for instructions


Once this is done, login to your instance.  In this example, we're assuming you named your volume /dev/vdc (substitute your volume name if it differs)


Check that the volume can be seen in your instance:

sudo fdisk -l /dev/vdc


Format the volume.  This example is using the ext3 file system.  You may wish to use something else.

sudo mkfs -t ext3 /dev/vdc   


Make a place to mount the volume.  Here we're creating a directory called 'data'

sudo mkdir /data


Mount the formatted volume:

sudo mount /dev/vdc /data



If you want this to be available on reboots, you need to add it to the fstab file.  This is optional but useful so you don't have to repeat the mount step above if you reboot or the system goes down.


Edit the /etc/fstab file and add in the necessary line to auto-mount the volume:

sudo vi /etc/fstab


Add this in at the bottom:

/dev/vdc /data auto defaults,nofail 0 2


Save the file and test the mount:

sudo umount /data

sudo mount -a

df -h

Filesystem Size Used Avail Use% Mounted on

/dev/vda1 9.8G 1.1G 8.7G 12% /

devtmpfs 912M 0 912M 0% /dev

tmpfs 921M 0 921M 0% /dev/shm

tmpfs 921M 17M 904M 2% /run

tmpfs 921M 0 921M 0% /sys/fs/cgroup

/dev/vdb 217M 156K 205M 1% /mnt

tmpfs 185M 0 185M 0% /run/user/1000

tmpfs 185M 0 185M 0% /run/user/0

/dev/vdc 9.8G 23M 9.3G 1% /data



IMPORTANT: Before detaching the volume from the instance, it's important to unmount it from within linux:


sudo umount /data



Remember: CCR does not backup your instances or EBS volumes.  See this article for info on backing up your EBS storage using snapshots