Adding disk to a linux Virtual machine in AWS EC2 Instance

Cliick ELASTIC BLOCK STORE->Volumes on EC2 Dashboard

Click "Create Volume". Select Volume Type, SIze, Availibility Zone and click Create.

In the following picture you can see the volume creating which will take few minute.

Now Attach the volume in Instance. Click Action-> Attach Volume

Select Instance where you want to connect the volume to Instance.

Provide Device name and click Attach.

In the following picture you can see the Volume attaching to the instance.

We have added the instance in testdb3 server. Now we will login to the Instance and mount the device. Get the public IP to login to the Instance.

Now we will mount the device /dev/xvdf to /opt