Create a EC2 Volume for existing EC2 Machine

                                      Create a EC2 Volume for existing EC2 Machine


Open your Existing  EC2 Machine Instance 

Step 1: In Categories click volume and create a new volume of your preferred size and

type.





Successfully created volume name as  "sneka"



NOTE:
Make sure EBS Volume and Instance are in the same zone.


Step 2: Select the created volume , right click and select "attach volume" option.











   Successfully attached volume to instance 



Step 3:Now login to EC2 instance and list the commands in terminal.

This command will list the disk attached to  your instance.







Step 4:Check if the volume has any data using the following command




The above command output shows "/dev/xvdf : data", it means your volume is empty.


Step 5:Format the volume to "ext4" filesystem using the command.



Step 6: Create a directory of your choice to mount our new ext4 volume .  I am using a name "newvolume".




Step 7: Mount the volume to "newvolume" directory  using the following command.




Step 8: cd into newvolume   directory and check the disk space to validate the volume mount.




The above command should show the free space in the newvolume directory.































 

Comments