Ends in
00
days
00
hrs
00
mins
00
secs
ENROLL NOW

🎁 Get 20% Off - Christmas Big Sale on All Practice Exams, Video Courses, and eBooks!

Amazon EBS Multi-Attach

Amazon EBS Multi-Attach

Last updated on February 22, 2023

Amazon Elastic Block Store or EBS is a durable block-based storage device that can be attached to your EC2 instance. AWS released a feature called Multi-Attach, which allows EC2 instances to share a single EBS volume for up to 16 instances and provide higher availability of your applications for Linux workloads. Each instance to which the volume is attached has full read and write permissions to the volume.

Amazon EBS multi-attach1

The following are several considerations and limitations in using the Multi-Attach feature:

  • Multi-Attach enabled volumes do not support I/O fencing. I/O fencing protocols control write access in a shared storage environment to maintain data consistency. Your applications must provide write ordering for the attached instances to maintain data consistency.
  • Multi-Attach enabled volumes can be attached to up to 16 instances built on the Nitro System that are in the same Availability Zone.
  • Multi-Attach is supported exclusively on Provisioned IOPS SSD (io1 or io2) volumes.
  • Multi-Attach for io1 volumes is available in the us-east-1, us-west-1, us-west-2, and ap-northeast-2 Regions.
  • Multi-Attach enabled volumes can’t be created as boot volumes.
  • Tutorials dojo strip
  • Multi-Attach enabled volumes can be attached to one block device mapping per instance.
  • You can’t enable or disable Multi-Attach after volume creation.
  • You can’t change the volume type, size, or Provisioned IOPS of a Multi-Attach enabled volume.
  • Multi-Attach can’t be enabled during instance launch using either the Amazon EC2 Console or the RunInstances API.
  • Multi-Attach enabled volumes that have an issue at the Amazon EBS infrastructure layer are unavailable to all attached instances. Issues at the Amazon EC2 or networking layer might only impact some attached instances.

Getting started with EBS Multi-Attach

  1. Create EBS Volume
    1. Head over to EC2 and look for “Volumes”
    2. Click “Create Volume”
    3. Volume type should be either io1 or io2 since they’re the only supported volume type
    4. Enter your preferred EBS and IOPS 
    5. Availability Zones should be at the same availability zone as the EC2 instance that you will be attaching.
    6. Tick “Multi-Attach” to “Enable”

Amazon EBS multi-attach2

2. Attach Volume

    1. Select the EBS volume that you created.
    2. Under actions, click “Attach Volume”
    3. Specify the instance ID of the first EC2 instance
    4. Device: /dev/sdf
    5. Attach
    6. Do the same process for the second EC2 instance

Amazon EBS multi-attach3Amazon EBS multi-attach4

3.  SSH into your two EC2 instances and you should see the newly attached EBS volume. Under the volumes
     tab, you can see what instances the EBS volume is attached to.

Amazon EBS multi-attach5

Delete on termination

If the delete-on-termination feature is enabled on your EC2 instances, the EBS Multi-Attach volume is only deleted when the last EC2 instance to which it is attached is terminated. It is recommended that you use delete on termination on all EC2 instances or retain EBS volumes whenever their EC2 instances are terminated. 

Monitoring

You can monitor your EBS Multi-Attach volume metrics using CloudWatch.

Sources:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volumes.html
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volumes-multi.html

Get 20% Off – Christmas Big Sale on All Practice Exams, Video Courses, and eBooks!

Tutorials Dojo portal

Learn AWS with our PlayCloud Hands-On Labs

Tutorials Dojo Exam Study Guide eBooks

tutorials dojo study guide eBook

FREE AWS Exam Readiness Digital Courses

FREE AWS, Azure, GCP Practice Test Samplers

Subscribe to our YouTube Channel

Tutorials Dojo YouTube Channel

Follow Us On Linkedin

Recent Posts

Written by: Matt Hidalgo

Matt is a Solutions Architect for a managed services provider that specializes in AWS and Azure. After graduating from college with a degree in Geology, he decided to switch careers and self-taught himself with AWS and Azure. Matt specializes in the migration and deployment of workloads to AWS and Azure with 3 years of experience.

AWS, Azure, and GCP Certifications are consistently among the top-paying IT certifications in the world, considering that most companies have now shifted to the cloud. Earn over $150,000 per year with an AWS, Azure, or GCP certification!

Follow us on LinkedIn, YouTube, Facebook, or join our Slack study group. More importantly, answer as many practice exams as you can to help increase your chances of passing your certification exams on your first try!

View Our AWS, Azure, and GCP Exam Reviewers Check out our FREE courses

Our Community

~98%
passing rate
Around 95-98% of our students pass the AWS Certification exams after training with our courses.
200k+
students
Over 200k enrollees choose Tutorials Dojo in preparing for their AWS Certification exams.
~4.8
ratings
Our courses are highly rated by our enrollees from all over the world.

What our students say about us?