Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS - Any way to have cross-AZ redundancy with EBS

I'm looking for a redundancy solution for EBS. Ideally we would have an EBS volume in each AZ - in something similar to a master-slave configuration. Upon the failure of the primary EBS volume, all reads/writes would be directed to the secondary volume.

The volume is to store user data for the application, no OS or application files or anything like that.

The EC2 instances that will mount this volume are running centos, and I haven't looked into any sort of linux solution just quite yet. If there isn't any amazon solution, perhaps there is a linux one that you know of?

It just doesn't make sense to me to have a multi-az deployment if we are stuck with a critical EBS volume in a single AZ.

Thanks!!

like image 437
mevans Avatar asked Jan 31 '19 22:01

mevans


People also ask

Is EBS replication across AZ?

Amazon EBS volumes are designed to be highly available, reliable, and durable. At no additional charge to you, Amazon EBS volume data is replicated across multiple servers in an Availability Zone to prevent the loss of data from the failure of any single component.

Can EBS volumes be shared across availability zones?

You can attach multiple EBS volumes to a single instance. The volume and instance must be in the same Availability Zone.

Is AWS EBS redundant?

AWS EBS volumes are already stored in multiple copies behind the scenes. So there is no need to add extra redundancy by way of RAID setup on the instance. Amazon EBS volumes are designed to be highly available and reliable.

Does EBS have server side encryption?

Amazon EBS offers a straight-forward encryption solution of data at rest , data in transit, and all volume backups. Amazon EBS encryption is supported by all volume types, and includes built-in key management infrastructure without having you to build, maintain, and secure your own keys.


1 Answers

No. Amazon EBS volumes reside only in one AZ. Snapshots are stored across AZs, but not 'live' volumes.

Your use-case sounds suitable for Amazon Elastic File System (EFS) for Linux or Amazon FSx for Windows File Server. They are shared network volumes that are replicated across AZs and can attach to multiple Amazon EC2 instances simultaneously.

I like to think of EBS like a directly-attached drive and EFS/FSx as a network drive. (Those aren't accurate descriptions, but they fit my mental model.)

like image 78
John Rotenstein Avatar answered Sep 19 '22 13:09

John Rotenstein