How to multiattach EBS volumes to more than one EC2 instance

amazon ec2

For using a cluster filesystem like OCFS or sharing read-only data between machines, one needs to attach the same SAN volume/LUN to multiple servers at the same time.

How can I do that with EBS volumes on Amazon EC2 ?

console.aws.amazon.com seems not to allow attaching an already attached volume and the Amazon documentation doesn't contain "multiattach".
Perhaps I need another keyword to search for ?

Best Answer

Now you can do it with Provisioned IOPS io1 volumes.

AWS Announcement:

You can now enable Multi-Attach on Amazon EBS Provisioned IOPS io1 volumes to allow a single volume to be concurrently attached to up to sixteen AWS Nitro System-based Amazon Elastic Compute Cloud (Amazon EC2) instances within the same Availability Zone.

Note that it's necessary to use file systems designed for multi-writing or replication like GFS2 or OCFS2.

Related Topic