Attaching AWS EBS Volume to AWS EC2

 

1. Create an instance named "Swetha"


2. Create a volume of type-General Purpose SSD(gp2) and size-20GiB. Choose the availability zone same as the one on instance and click "Create Volume"


3. Next we have to attach the volume



4. Connect to instance


5. Establishing Connection


6. Connection Established


7. Check if the volume has any data. Format the volume to the ext4 filesystem.


8. Create a directory named newvolume2. Mount the volume to newvolume2. cd into new volume2 directory and check the disk space to validate the volume amount. It shows the free space in newvolume directory.














Comments