Articles → AWS → Shared volume in AWS

Shared volume in AWS






Steps




  1. Create 2 EC2 instances.
  2. Create a volume with multi-attached enabled.
  3. Attach volume with both EC2 instances.
  4. Format and mount the disk in the first EC2.
  5. Check the volume in the second EC2.



Create 2 EC2 instances






Picture showing the list of instances to choose from

Click to Enlarge



Picture showing the number of instances created

Click to Enlarge



Picture showing the 2 EC2 instances created in AWS console

Click to Enlarge


Create a volume with multi-attached enabled




Picture showing the screen for creating multi-attached volume in AWS

Click to Enlarge

ParametersVolumeDescription
Volume TypeProvisioned IOPS SSD (io2) 
Availability Zoneus-east-2The availability zone should be the same as that of EC2.
Multi-attachChecked 



Attach volume with both EC2 instances




Picture showing the popup window for attaching the first EC2 instance with the multi-attached volume

Click to Enlarge



Picture showing the popup window for attaching the second EC2 instance with the multi-attached volume

Click to Enlarge




Format and mount the disk in the first EC2




Picture showing creating a text file in the new volume in the first EC2 instance

Click to Enlarge


Check the volume in the second EC2






Picture showing the text file appears in the new volume of the second EC2 instance

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, October 14, 2021

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250