saginadir
2/25/2016 - 10:14 AM

Attache new EBS to instance after it was created

Attache new EBS to instance after it was created

Attach EBS To Instance AWS Amazon

Quicky!

Step 1

Create Volume using AWS and attach it to instance

Step 2

  • ssh to the server
  • Run the following commands
sudo su - root
lsblk
sudo file -s /dev/xvdf 
mkfs -t ext4 /dev/xvdf # will format the volume
sudo mkdir /data # create new folder for volume
sudo mount /dev/xvdf /data
cp /etc/fstab /etc/fstab.backup
echo "/dev/xvdf   /data  ext4  defaults,nofail  0  2" >> /etc/fstab