I Tried Out Amazon EBS-Backed Multi-AZ Volumes

I Tried Out Amazon EBS-Backed Multi-AZ Volumes

Creating a gp3 volume in the Tokyo region with a standby AZ reached in-sync / ready in about 2 minutes. One failover-volumes run swapped the active and standby AZs, and the written data could be read from the new active AZ.
2026.12.01

This page has been translated by machine translation. View original

Introduction

On November 30, 2026, Amazon EBS multi-AZ volumes were announced.

https://aws.amazon.com/about-aws/whats-new/2026/11/ebs-multi-az-volumes/

Multi-AZ volumes are available for gp3 and io2. When you specify a standby AZ at creation, data is written synchronously to two AZs in the same Region, and you can fail over via the API.

This article introduces the results of creating gp3 and io2 multi-AZ volumes, and verifying synchronization and failover on a gp3 multi-AZ volume.

Test Environment

  • Region: Tokyo (ap-northeast-1)
  • AZs
    • Active: ap-northeast-1a (apne1-az4)
    • Standby: ap-northeast-1d (apne1-az2)
  • Volume
    • Type: gp3
    • Size: 8 GiB
    • IOPS: 3000 (default)
    • Throughput: 125 MiB/s (default)
  • EC2 instances
    • Instance type: t4g.small
    • OS: Amazon Linux 2023 (arm64)
    • Count: one each in 1a and 1d
    • Command execution: Systems Manager Run Command (root privileges)
  • AWS CLI: 2.43.0

Creation and Synchronization Status

Creating the Volume

Because the mapping between AZ names and AZ IDs differs by account, I used AZ IDs in the creation API. The active AZ was specified with --availability-zone-id. The standby AZ was specified with StandbyAvailabilityZones in --multi-availability-zone-configuration.

aws ec2 create-volume --availability-zone-id apne1-az4 --volume-type gp3 --size 8 --multi-availability-zone-configuration 'ConfigurationType=multi-az-1,StandbyAvailabilityZones=[{AvailabilityZoneId=apne1-az2}]'

Checking the Synchronization Status

I checked the synchronization status in the response of describe-volume-status. The values are ReplicationDataState and FailoverReadiness in MultiAvailabilityZoneStatusDetails, and I retrieved them with the following loop.

for i in $(seq 1 180); do
  t=$(date +%FT%T%z)
  s=$(aws ec2 describe-volume-status --volume-ids vol-0123456789abcdef0 --query "VolumeStatuses[0].[VolumeStatus.Status,MultiAvailabilityZoneStatusDetails.ReplicationDataState,MultiAvailabilityZoneStatusDetails.FailoverReadiness]" --output text)
  echo "$t $s"
  case "$s" in *in-sync*ready) break;; esac
  sleep 5
done
2026-12-01T15:05:22+0900 ok	insufficient-data	insufficient-data
2026-12-01T15:05:28+0900 ok	insufficient-data	insufficient-data
2026-12-01T15:05:33+0900 ok	insufficient-data	insufficient-data
2026-12-01T15:05:39+0900 ok	insufficient-data	insufficient-data
2026-12-01T15:05:44+0900 ok	insufficient-data	insufficient-data
2026-12-01T15:05:50+0900 ok	insufficient-data	insufficient-data
2026-12-01T15:05:56+0900 ok	insufficient-data	insufficient-data
2026-12-01T15:06:01+0900 ok	insufficient-data	insufficient-data
2026-12-01T15:06:07+0900 ok	insufficient-data	insufficient-data
2026-12-01T15:06:12+0900 ok	insufficient-data	insufficient-data
2026-12-01T15:06:18+0900 ok	insufficient-data	insufficient-data
2026-12-01T15:06:23+0900 ok	insufficient-data	insufficient-data
2026-12-01T15:06:29+0900 ok	insufficient-data	insufficient-data
2026-12-01T15:06:35+0900 ok	insufficient-data	insufficient-data
2026-12-01T15:06:40+0900 ok	in-sync	ready

From 15:04:53, when I ran the creation command, to 15:06:40, when I first confirmed in-sync / ready, it took 1 minute 47 seconds.

For io2

For io2, I specified --volume-type io2 and --iops.

aws ec2 create-volume --availability-zone-id apne1-az4 --volume-type io2 --size 4 --iops 100 --multi-availability-zone-configuration 'ConfigurationType=multi-az-1,StandbyAvailabilityZones=[{AvailabilityZoneId=apne1-az2}]'

After creation, I checked with describe-volumes.

aws ec2 describe-volumes --volume-ids vol-0abcdef1234567890 --query 'Volumes[0].[VolumeId,VolumeType,Size,Iops,State,AvailabilityZone,MultiAvailabilityZoneConfiguration]'
[
    "vol-0abcdef1234567890",
    "io2",
    4,
    100,
    "available",
    "ap-northeast-1a",
    {
        "ConfigurationType": "multi-az-1",
        "StandbyAvailabilityZones": [
            {
                "AvailabilityZone": "ap-northeast-1d",
                "AvailabilityZoneId": "apne1-az2"
            }
        ]
    }
]

Failover

I performed the failover on the gp3 volume.

Attaching and Writing Data

I attached the same volume to both the instance in 1a and the instance in 1d. Both succeeded.

aws ec2 attach-volume --volume-id vol-0123456789abcdef0 --instance-id i-1234567890abcdef0 --device /dev/sdf
aws ec2 attach-volume --volume-id vol-0123456789abcdef0 --instance-id i-0abcdef1234567890 --device /dev/sdf

When I ran lsblk on the instance in the standby AZ (1d), the attached volume was displayed.

lsblk -o NAME,SIZE,SERIAL,MOUNTPOINT
NAME          SIZE SERIAL               MOUNTPOINT
nvme1n1         8G vol0123456789abcdef0

On the instance in 1a, I formatted it with XFS, mounted it, and wrote marker.txt and a 32 MiB data.bin.

set -e
mkfs.xfs -q /dev/nvme1n1
mkdir -p /mnt/data && mount /dev/nvme1n1 /mnt/data
echo "written-in-1a $(date -u +%FT%TZ)" > /mnt/data/marker.txt
dd if=/dev/urandom of=/mnt/data/data.bin bs=1M count=32 status=none
sync
cat /mnt/data/marker.txt
sha256sum /mnt/data/data.bin
umount /mnt/data
echo unmounted
written-in-1a 2026-12-01T06:07:12Z
c34416f20b822dbfd273d7d8a2482805cd901f242db373a9a5ff2930769adeda  /mnt/data/data.bin
unmounted

Running failover-volumes

When specifying the volume with --volume-id, you also specify the current active AZ. This time I specified the AZ ID (you can also specify the AZ name with --source-active-availability-zone).

aws ec2 failover-volumes --volume-id vol-0123456789abcdef0 --source-active-availability-zone-id apne1-az4
{
    "VolumeFailovers": [
        {
            "VolumeId": "vol-0123456789abcdef0",
            "SourceActiveAvailabilityZone": "ap-northeast-1a",
            "SourceActiveAvailabilityZoneId": "apne1-az4",
            "SourceStandbyAvailabilityZones": [
                {
                    "AvailabilityZone": "ap-northeast-1d",
                    "AvailabilityZoneId": "apne1-az2"
                }
            ],
            "TargetActiveAvailabilityZone": "ap-northeast-1d",
            "TargetActiveAvailabilityZoneId": "apne1-az2",
            "TargetStandbyAvailabilityZones": [
                {
                    "AvailabilityZone": "ap-northeast-1a",
                    "AvailabilityZoneId": "apne1-az4"
                }
            ]
        }
    ]
}

Checking the Swap and the Data

Immediately after execution, I ran a loop that checks the AZ with describe-volumes.

for i in $(seq 1 120); do
  t=$(date +%T.%3N)
  s=$(aws ec2 describe-volumes --volume-ids vol-0123456789abcdef0 --query "Volumes[0].[AvailabilityZone,MultiAvailabilityZoneConfiguration.StandbyAvailabilityZones[0].AvailabilityZone,State]" --output text)
  echo "$t $s"
  case "$s" in ap-northeast-1d*) break;; esac
  sleep 1
done
15:07:29.662 ap-northeast-1d	ap-northeast-1a	in-use

I started running failover-volumes at 15:07:28, and by the time of the first check (started at 15:07:29.662), the AZs had already been swapped.

On the instance in 1d, the new active AZ, I mounted the volume and read out the files.

set -e
mkdir -p /mnt/data && mount /dev/nvme1n1 /mnt/data
cat /mnt/data/marker.txt
sha256sum /mnt/data/data.bin
ls -l /mnt/data
umount /mnt/data
echo unmounted
written-in-1a 2026-12-01T06:07:12Z
c34416f20b822dbfd273d7d8a2482805cd901f242db373a9a5ff2930769adeda  /mnt/data/data.bin
total 32772
-rw-r--r--. 1 root root 33554432 Dec  1 06:07 data.bin
-rw-r--r--. 1 root root       35 Dec  1 06:07 marker.txt
unmounted

The contents of marker.txt and the SHA-256 of data.bin both matched what I wrote in 1a.

The AZ returned by describe-volume-status was still ap-northeast-1a even 27 seconds after running failover-volumes (15:07:55). describe-volumes in the same time window returned ap-northeast-1d. The user guide lists describe-volumes for confirming failover completion, so I used it to confirm the swap.

Even in describe-volumes after the AZs were swapped (15:07:42), the instances in 1a and 1d were both still attached.

Limitations

I'm excerpting the main ones.

  • Specifying multi-AZ is possible only when creating the volume.
  • To use existing data, you need to create a multi-AZ volume from a snapshot.
  • Running the FailoverVolumes API is required for failover.
  • The standby-side volume cannot be read, written, or mounted until it fails over.

For other limitations, please see the documentation.

https://docs.aws.amazon.com/ebs/latest/userguide/ebs-multi-az-volumes.html

Pricing

These are the unit prices for the Tokyo Region.

gp3

Item Standard multi-AZ
Storage (GB-month) $0.096 $0.192
IOPS (IOPS-month) $0.006 $0.012
Throughput (MiB/s-month) $0.048 $0.096

Up to 3,000 IOPS and 125 MiB/s, there is no additional charge for either standard or multi-AZ.

io2

Item Standard multi-AZ
Storage (GB-month) $0.142 $0.284
IOPS (IOPS-month) up to 32,000 $0.074 $0.148
IOPS (IOPS-month) 32,001–64,000 $0.0518 $0.1036
IOPS (IOPS-month) over 64,000 $0.03626 $0.07252

For multi-AZ io2, there is no separate charge for throughput.

The multi-AZ unit price is twice that of standard (single AZ) for every item. Data transfer charges associated with replication between AZs are included in the price.

https://aws.amazon.com/ebs/pricing/

Summary

I was able to verify the creation of multi-AZ volumes, now supported by Amazon EBS, and the behavior of failover.

Until now, for workloads that want to avoid data loss as much as possible, EBS was sometimes synchronized using the OS or middleware to prepare for AZ failures or EBS failures. That replication can now be used through an AWS-managed mechanism.

To achieve automatic failover, a separate mechanism for health checks and node switching is required, but as a means of keeping data across AZs, please try the newly supported multi-AZ volumes.

Share this article

AWSのお困り事はクラスメソッドへ