I'm back again with a new question: What must be the file system on AWS EBS Multi-Attach volume?
On this website https://aws.amazon.com/premiumsupport/knowledge-center/ebs-access-volumes-using-multi-attach/
It is written that standard file systems such as XFS, EXT3, EXT4, and NTFS aren't designed to be simultaneously accessed by multiple servers or EC2 instances.
However, they have not written what must be the file systems for AWS EBS Multi-Attach volume.
Any idea? I would be glad if you can provide the command lines for setting the file system.
EBS Multi-Attach allows the attachment of a single io1 Provisioned IOPS volume to up to 16 Nitro-based instances in the same Availability Zone.
EFS can be used as network file system for on-premise servers too using AWS Direct Connect. EBS: Uses an AWS KMS–Managed Customer Master Key (CMK) and AES 256-bit Encryption standards. EFS: Uses an AWS KMS–Managed Customer Master Key (CMK) and AES 256-bit Encryption standards.
You can attach multiple EBS volumes to a single instance. The volume and instance must be in the same Availability Zone. Depending on the volume and instance types, you can use Multi-Attach to mount a volume to multiple instances at the same time.
To attach an EBS volume to an instance using the console In the navigation pane, choose Volumes. Select the volume to attach and choose Actions, Attach volume. You can attach only volumes that are in the Available state. For Instance, enter the ID of the instance or select the instance from the list of options.
AWS EBS Multi-Attach Volumes Amazon Elastic Block Store (EBS) is the AWS storage service that allows you to create different types of volumes, based on the underlying SSDs or HDDs, to attach to Amazon EC2 instances. With the new AWS EBS Multi-Attach option, users can now attach a single EBS volume with a maximum of 16 Amazon EC2 instances.
Amazon EFSs are not supported on AWS Windows EC2 instances. EFS volumes can only be used with non-Windows instances, such as Linux, that support NFS volumes. No system boot volumes. Amazon EFS volumes also cannot be used for system boot volumes. AWS EC2 instances must use Elastic Block Store (EBS) volumes for booting their systems.
The operation of standard file systems on EBS Multi-Attach volumes isn't a supported configuration. EBS Multi-Attach allows the attachment of a single io1 Provisioned IOPS volume to up to 16 Nitro-based instances in the same Availability Zone.
Amazon Elastic Block Store (EBS) is the AWS storage service that allows you to create different types of volumes, based on the underlying SSDs or HDDs, to attach to Amazon EC2 instances. With the new AWS EBS Multi-Attach option, users can now attach a single EBS volume with a maximum of 16 Amazon EC2 instances.
On this page it's very briefly mentioned that a clustered file system is necessary:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volumes-multi.html#working
In this blog post they explain how to use one clustered file system, the Red Hat Global File System 2 (GFS2), with Multi-Attach EBS. Cluster software must additionally be installed:
https://aws.amazon.com/blogs/storage/clustered-storage-simplified-gfs2-on-amazon-ebs-multi-attach-enabled-volumes/
Full-Disclosure: I have not actually replicated their results. It was too much overhead for my use case.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With