We do support Round the Clock 24 x 7 x 365 (+91) 883 012 3924
 

How to add a second disk to an EC2 Instance in AWS

How to add a second disk to an EC2 Instance in AWS


# Login to AWS console
# Navigate to EC2 -> Elastic Block Store -> Volumes

Create additional Volume in the availability zone of the EC2 instance.

# Go to Action -> Attach Volume
Now search your existing EC2 instance with its name and attach it.

# Now Login to your EC2 instance with root user and enter the below commands

mkfs.ext4 /dev/xvdf
mkdir /home2
mount /dev/xvdf /home2

# once all done, you can verify with `mount` or `df -h` to see the new volume.
# Also you need to add an entry of new valume into /etc/fstab

You can contact us at support@L3WebHosting.com if you require any assistance on AWS.

Leave a Reply

Your email address will not be published. Required fields are marked *

Post navigation