DEV Community

Cover image for Designing multi-AZ block storage on AWS: write latency, IOPS, and failover for EBS multi-AZ volumes and FSx for ONTAP LUNs

Designing multi-AZ block storage on AWS: write latency, IOPS, and failover for EBS multi-AZ volumes and FSx for ONTAP LUNs

Figure 1: Two AZs in the Tokyo Region. An Amazon EC2 client in apne1-az4 writes to an EBS multi-AZ volume as a block device and to an FSx for ONTAP Multi-AZ LUN over iSCSI or NVMe/TCP. Both replicate synchronously to the standby side in apne1-az1. The right column lists the time of one 4 KiB write and who starts a failover

Figure 1: Two ways to keep block data synchronously in two AZs, with the measured write times (dark theme version)

On 2026-11-30, AWS announced Amazon EBS multi-AZ volumes. One EBS volume writes synchronously to two Availability Zones (AZs) in the same Region. This post covers two ways AWS lets you keep block data in two AZs at once: an EBS multi-AZ volume, and a LUN (iSCSI or NVMe/TCP) on Amazon FSx for NetApp ONTAP (FSx for ONTAP) Multi-AZ.

This post is for readers who design block storage that must survive the loss of an AZ. Examples: you want a database's data volume in two AZs, or you must decide who runs the failover and how. I organized the design points that apply to both options (points 1, 2, 3, 5, and 6) and one that rests mainly on the EBS documentation (point 4), using measurements from the Tokyo Region and the AWS documentation. The post covers six points, then a monthly cost estimate and a feature comparison table.

  1. Time of one write, and AZ pairs
  2. Write IOPS and queue depth
  3. Deciding and running a failover
  4. Standby-side failure and resync
  5. Multiple volumes and backups
  6. Multiple hosts, Auto Scaling groups, file protocols, and tiering

Two posts in Japanese already cover creating a multi-AZ volume, running a failover, and the write latency of each AZ pair: Amazon EBS がサポートした multi-AZ ボリュームを試してみた (Classmethod, in Japanese) and multi-AZ ボリュームの書き込み遅延を AZ ペアを変えて測ってみた (Classmethod, in Japanese). This post adds four things. First, the cross-AZ replication time, measured against FSx for ONTAP Single-AZ as a control. Second, IOPS by queue depth on EBS and FSx for ONTAP. Third, the write stall during a failover. Fourth, a check of tiering on a volume that holds a LUN. Adaptive Volumes (gp3a / io2a) and TRIM for all volume types were announced the same day. They are in the companion post, Running EBS Adaptive Volumes (gp3a, io2a): when TRIM lowers stored data, how to confirm it, and the cost crossover with gp3.

I measured in a throwaway environment in the Tokyo Region on 2026-12-01 and 2026-12-04, from one client on each day (a t3.small on 2026-12-01 and a t3.medium on 2026-12-04). The section "Measurement conditions and scope" lists what I did not measure and why. I did not reproduce a resync in Tokyo. The resync conditions come from the AWS documentation.

Conclusion

This section gives only the main point of each design decision. Conditions and measured values are in the sections that follow, and the terms are in the next section.

  1. Design point 1, time of one write: a synchronous write to two AZs adds about 1.5 to 1.7 ms to each write. At queue depth 1 with 4 KiB synchronous writes, EBS gp3 went from about 0.91 ms to about 2.60 ms (measured 2026-12-01), and FSx for ONTAP over NFS went from 0.31 ms on Single-AZ to about 1.86 ms on Multi-AZ (measured 2026-12-04). The round trip between AZs changes with the AZ pair, so measure with the pair you will use.
  2. Design point 2, write IOPS: the IOPS you reach depends on queue depth divided by write time, up to the provisioned IOPS and the instance limit. EBS multi-AZ gp3 reached 382 IOPS at queue depth 1 and the provisioned 3,000 IOPS at queue depth 16. On FSx for ONTAP Multi-AZ over NVMe/TCP (ONTAP 9.19.1P4D1, Amazon Linux 2023), one I/O took about 20 to 30 ms, while iSCSI in the same environment took about 1.85 ms.
  3. Design point 3, deciding and running a failover: with EBS, you decide on the failover and call FailoverVolumes. With FSx for ONTAP Multi-AZ, the service fails over by itself. On EBS, the first successful read on the standby side came 2.8 seconds after the FailoverVolumes call started (this is not the time until the application resumes writing). Read FailoverReadiness before you rely on a failover (see Terms), because the time from creation to in-sync was not constant. For FSx for ONTAP Multi-AZ, the AWS documentation says failover is automatic and usually takes under 60 seconds. During the failover and failback that come with a throughput capacity change, writes stalled for at most 45.9 seconds on NFS and 10.1 seconds on iSCSI. The 2.8 seconds and the 45.9 seconds differ in trigger (a manual FailoverVolumes call versus a throughput capacity change) and in the interval measured, so I do not rank them.
  4. Design point 4, standby-side failure and resync: an EBS multi-AZ volume keeps working after a standby-side failure, but it cannot fail over until it catches up. The AWS documentation says I/O can typically stop for up to about 60 seconds while the volume moves to out-of-sync (see Terms), and the rebuild takes up to 6 hours for the first 1 TiB. I did not reproduce this in Tokyo, on EBS or on FSx for ONTAP (reason category: technically difficult). The only FSx for ONTAP stall I measured is the one during a throughput capacity change, described in design point 3.
  5. Design point 5, multiple volumes and backups: when one application keeps its data on several volumes, align the standby AZ and fail over per instance by passing the instance ID to FailoverVolumes. The multi-AZ setting is not carried over to Snapshots and AMIs.
  6. Design point 6, multiple hosts, Auto Scaling groups, file protocols, and tiering:
    • Multiple hosts: an EBS multi-AZ volume attaches to one host only. An FSx for ONTAP LUN can be mapped to several hosts. Writing from several hosts at once requires a cluster-aware file system or an application built for it.
    • Auto Scaling groups and Spot Instances: EBS multi-AZ volumes support neither. FSx for ONTAP over NFS could be mounted from both a Spot Instance and an on-demand instance in an Auto Scaling group.
    • File protocols: suppose the data on EBS is files in a file system, and you can replace the application's disk access with an NFS or SMB mount. Then the files placed on an NFS or SMB volume of FSx for ONTAP can also be read through S3 Access Points. Data kept as a LUN cannot be read over NFS, SMB, or S3 Access Points. Tiering can be set on a volume that holds a LUN, and in Tokyo 1 GiB moved to the capacity pool.

The monthly storage cost in Tokyo, for one host that uses 1,024 GiB, is about $196.61 for EBS multi-AZ gp3 and about $1,516.03 for the smallest second-generation FSx for ONTAP Multi-AZ configuration. The 125 MiB/s included with gp3 and the 384 MBps of FSx for ONTAP throughput capacity are different performance levels, so the difference is not a difference for the same performance.

How to choose, by situation:

  • Suppose you can decide on the failover yourself and attach the block device to one host. An EBS multi-AZ volume meets the requirement for synchronous replication across AZs.
  • Suppose you want the storage to carry out the failover automatically. The automatic failover of FSx for ONTAP Multi-AZ, which usually takes under 60 seconds, meets that requirement.
  • Suppose several hosts use the same blocks, and those hosts run a cluster-aware file system or an application built for simultaneous writes. Mapping a LUN to several hosts meets that requirement on FSx for ONTAP. EBS multi-AZ volumes do not support Multi-Attach.
  • Suppose the data on EBS is files in a file system, and you can replace the application's disk access with an NFS or SMB mount. Then serving the same data over NFS, SMB, and S3 Access Points is an option to consider. Suppose instead that the data stays as a LUN. Then NFS, SMB, and S3 Access Points cannot read it, so this option does not apply.

Terms

Term Meaning in this post
Multi-AZ volume An EBS volume created with a standby AZ. Each write is stored synchronously in the active AZ and the standby AZ. The standby side cannot be read, written, or mounted until you fail over.
FailoverVolumes The EC2 API that swaps the active and standby AZs of a multi-AZ volume. You call it yourself. With a volume ID it fails over one volume. With an instance ID it fails over the multi-AZ volumes attached to that instance together.
FailoverReadiness A value returned by describe-volume-status that shows whether FailoverVolumes can fail over a multi-AZ volume: ready, not-ready, or insufficient-data.
ready One value of FailoverReadiness. The standby side is healthy and has caught up with the active side, so the volume can fail over. Unless it is ready, FailoverVolumes is rejected with FailoverNotReady.
in-sync / out-of-sync Values of ReplicationDataState. in-sync means the standby holds the same data as the active side. out-of-sync means replication to the standby has stopped and the standby is behind.
Single-AZ A configuration placed in one AZ. For EBS, an ordinary volume. For FSx for ONTAP, one of the deployment types.
FSx for ONTAP Multi-AZ A deployment type with one HA pair (two file servers) placed in two AZs, with writes replicated synchronously between them. The preferred AZ serves clients normally. The standby AZ takes over after a failure.
Second generation A generation of FSx for ONTAP file systems. Its deployment types are MULTI_AZ_2 and SINGLE_AZ_2. All FSx for ONTAP measurements in this post use the second generation.
Throughput capacity The processing capacity you set for an FSx for ONTAP file system, in MBps. It is a billing axis.
SVM A logical server inside an FSx for ONTAP file system that has the NFS and iSCSI endpoints.
LUN A block device inside an FSx for ONTAP volume, presented over iSCSI or NVMe/TCP.
igroup The list of hosts that a LUN is presented to.
Multipath Connecting to one LUN over several network paths and switching paths on failure. On Linux, dm-multipath does this.
Capacity pool The FSx for ONTAP storage tier that is cheaper than SSD. Data that is not read moves there according to each volume's tiering policy.
S3 Access Points An entry point that reads and writes the files of a volume through the S3 API.
FlexClone / SnapMirror A writable copy of a volume that does not copy the data / replication of a volume to another file system.
Synchronous write A write that returns only after the data is recorded at the destination. Here: 4 KiB writes with dd using oflag=direct,dsync.
Queue depth The number of writes issued at the same time without waiting for completion. Queue depth 1 means waiting for one write to finish before issuing the next.
Crash-consistent The state of a disk right after a sudden power loss: its contents do not contradict each other.
RPO of zero No acknowledged write is lost.

Design point 1: time of one write, and AZ pairs

Writes go to two AZs synchronously, so each write takes longer by the round trip between the AZs. The EBS documentation describes the multi-AZ write time as the single-AZ write time, plus the round trip between the AZs, plus a small replication overhead. It also says read time is about the same as single-AZ.

The next table shows 4 KiB synchronous writes at queue depth 1, measured in three rounds on 2026-12-01 from a t3.small in apne1-az4. Each value is the dd elapsed time divided by 3,000, which is the time of one write.

Destination Round 1 Round 2 Round 3 Average of 3 rounds
EBS single-AZ gp3 0.914 ms 0.904 ms 0.901 ms 0.906 ms
EBS multi-AZ gp3 2.698 ms 2.543 ms 2.546 ms 2.596 ms
FSx for ONTAP Multi-AZ (iSCSI, two multipath paths) 1.852 ms 1.854 ms 1.845 ms 1.850 ms
FSx for ONTAP Multi-AZ (NFSv4.1) 1.866 ms 1.862 ms 1.846 ms 1.858 ms
  • A synchronous write on the EBS multi-AZ volume took about 1.7 ms longer than on the single-AZ gp3 volume.
  • On FSx for ONTAP, the 3-round averages for iSCSI (1.850 ms) and NFS (1.858 ms) differed by less than 0.01 ms. Only round 1 differed by 0.014 ms. Under these conditions, the protocol barely showed in the write time.
  • A separate run on 2026-12-01 (another file system with the same configuration, NFS only, three rounds) gave 1.971 to 1.984 ms for NFS. Recreating the file system can move the value by about 0.1 ms.
  • I measured the single-AZ and multi-AZ EBS volumes again on their own. Before measuring, I wrote to the multi-AZ volume for 4 minutes, and during the measurement I read the replication state every 5 seconds. All 6 readings in the measurement window were in-sync and ready. The new values were 0.891 to 0.895 ms for single-AZ and 2.523 to 2.528 ms for multi-AZ, within 0.08 ms of the 3-round averages in the previous table.

Using FSx for ONTAP Single-AZ as a control, the time that synchronous cross-AZ replication adds is the same size on FSx for ONTAP as on EBS. The next table shows 3,000 dd synchronous writes at queue depth 1, measured on 2026-12-04.

Destination Time of one write
FSx for ONTAP Single-AZ (NFS) 0.31 ms
FSx for ONTAP Single-AZ (iSCSI) 0.385 to 0.392 ms
FSx for ONTAP Multi-AZ (NFS) 1.867 ms
FSx for ONTAP Multi-AZ (iSCSI) 1.854 to 1.868 ms

The difference between FSx for ONTAP Multi-AZ and Single-AZ is about 1.5 ms. That is the same size as the 1.5 to 1.7 ms that an EBS multi-AZ volume adds.

On io2, multi-AZ also added about 1.7 ms to a synchronous write. The next table shows dd synchronous writes at queue depth 1 on 2026-12-04.

Volume Time of one write
gp3 single-AZ about 0.90 ms
gp3 multi-AZ (standby apne1-az1) 2.54 ms
gp3 multi-AZ (standby apne1-az2) 2.42 ms
io2 single-AZ 0.34 ms
io2 multi-AZ 2.03 ms

The time that multi-AZ adds changes with the AZ pair. The ping round trip from apne1-az4 averaged 1.77 ms to apne1-az1 and 1.36 ms to apne1-az2. The write to the AZ with the longer round trip, apne1-az1, also took longer. The formula in the EBS documentation (single-AZ write time, plus round trip, plus a small replication overhead) gives values close to the measured increases: about 1.64 ms for apne1-az1 and about 1.52 ms for apne1-az2.

Another test (three AZ pairs in Tokyo, by Classmethod, in Japanese) found an average round trip of 0.55 ms between apne1-az1 and apne1-az2, and a gp3 multi-AZ write overhead of 0.652 ms. The other two pairs had a round trip of about 1.5 ms and an overhead of 1.358 to 1.520 ms. You can compare AZ pairs with the AZ-to-AZ latency (P50) in Infrastructure Performance of AWS Network Manager. AZ names map to AZ IDs differently in each account, so specify AZ IDs.

Design point 2: write IOPS and queue depth

You can estimate the write IOPS you will reach as queue depth divided by write time. An example in the AWS documentation: when a write takes 900 µs, 10,000 IOPS needs a queue depth of 9 or more. The provisioned IOPS and the instance limit also cap the result. Because multi-AZ writes take longer, an application that does not write in parallel does not reach the same IOPS.

The next table shows 4 KiB random writes measured with fio on 2026-12-04, in writes per second (IOPS). The queue depth 1 column also shows the mean time of one write. I created the EBS volumes with 3,000 IOPS. The FSx for ONTAP file systems have 384 MBps of throughput capacity. dd (the tables in design point 1) and fio measure differently, so the time of one write differs by up to about 0.13 ms for the same configuration.

Destination Queue depth 1 4 16 32
EBS single-AZ gp3 1,099 (0.898 ms) 3,149 3,054 3,059
EBS multi-AZ gp3 382 (2.588 ms) 1,572 3,149 3,052
FSx for ONTAP Multi-AZ over NFS 538 (1.828 ms) 2,041 8,135 15,592
FSx for ONTAP Multi-AZ over iSCSI 491 (1.980 ms) 2,128 8,362 14,552
FSx for ONTAP Single-AZ over NFS 3,106 (0.301 ms) 10,493 21,019 31,726
FSx for ONTAP Single-AZ over iSCSI 2,186 (0.432 ms) 8,366 25,312 27,650
  • The EBS multi-AZ gp3 volume reached 382 IOPS at queue depth 1, close to 1 ÷ 2.588 ms (about 386). At queue depth 1, that is about 35% of the single-AZ value of 1,099 IOPS. It reached the provisioned 3,000 IOPS at queue depth 16.
  • Both EBS volumes level off at about 3,050 to 3,150 from queue depth 16. That ceiling comes from the 3,000 IOPS I provisioned, not from a limit of the volume type.
  • FSx for ONTAP kept scaling within the file system's throughput capacity, to about 15,600 IOPS on Multi-AZ over NFS at queue depth 32. However, the EBS volumes are provisioned at 3,000 IOPS, the FSx for ONTAP file systems have 384 MBps of throughput capacity, and the prices differ. The IOPS table does not compare equal cost or equal performance.
  • Random reads at queue depth 1 gave about 1,670 IOPS (0.59 ms) on EBS gp3 and 3,155 to 4,950 IOPS (mean time 0.18 to 0.30 ms; 1 ÷ IOPS gives 0.20 to 0.32 ms) on FSx for ONTAP. I think the shorter time on FSx for ONTAP comes from the file server's cache. I did not isolate the effect of the cache.
  • Another test (three AZ pairs, by Classmethod, in Japanese) also found values near the configured 3,000 IOPS at queue depth 32.

Write time of FSx for ONTAP Multi-AZ over NVMe/TCP

Over NVMe/TCP, each I/O took about 20 to 30 ms on both Multi-AZ and Single-AZ, with dd and with fio. Random writes on Multi-AZ gave 33 IOPS (29.9 ms) at queue depth 1 and 1,595 IOPS (20 ms) at queue depth 32. In the same environment, iSCSI took about 1.85 ms on Multi-AZ at queue depth 1. I changed client conditions to check:

Condition changed Result
Two paths, round-robin, queue-depth-based path selection, one path only Writes about 20 ms (about 30 ms with one path only)
One I/O queue, TCP autocorking off, quickack, slow start after idle off No change
Amazon Linux 2023 kernels 6.1, 6.12, 6.18 Writes about 20 ms and reads about 10 ms on all
Eight jobs in parallel 400 IOPS, about 20 ms

ss reported a TCP round trip of 25.8 ms, while ping to the LIF took 0.287 ms. Client-side changes did not move the time, so I think it is spent in the server's response. I did not isolate the cause. These values are measurements for ONTAP 9.19.1P4D1 in this environment, not the performance of NVMe/TCP in general. Measure in the environment you will use before production.

Design point 3: deciding and running a failover

EBS multi-AZ volumes

An EBS multi-AZ volume does not fail over by itself. You call FailoverVolumes. After your call, the storage failover is designed to finish in under 10 seconds in 99% of cases. FailoverVolumes takes either a volume ID, which fails over one volume, or an instance ID, which fails over the multi-AZ volumes attached to that instance together (design point 5). My measurements used a volume ID. You prepare the following:

  • Deciding to fail over: you can use a volume anomaly (such as stopped I/O) or an AZ anomaly (a notification from Amazon Application Recovery Controller zonal autoshift).
  • Precondition: the API rejects the call with FailoverNotReady unless FailoverReadiness is ready. DryRun checks permissions only, not readiness.
  • Instance on the standby side: you can attach the volume in advance to an instance in the standby AZ. The standby side cannot be read, written, or mounted. After the failover, you mount the volume, start the application, and redirect traffic, for example with DNS.
  • Capacity on the standby side: EC2 capacity in the standby AZ is not guaranteed. Reserve it with On-Demand Capacity Reservations or a similar feature.
  • Confirming completion: use DescribeVolumes to see that the AZs have swapped. Amazon EventBridge receives an EBS Failover Notification. The state is completed when the failover finishes, and stalled when it has not finished after 2 minutes.

AWS Elastic Disaster Recovery has supported multi-AZ volumes since 2026-11-30. After FailoverVolumes, AWS Elastic Disaster Recovery keeps replicating the same source server from the instance on the standby side. The root volume and the agent-file volume must be attached on the standby side (AWS DRS documentation).

Replication state right after creation

The time from creation to in-sync and ready was not constant. I have two observations:

  • On 2026-12-01, a 10 GiB gp3 volume (active apne1-az4, standby apne1-az1) stayed insufficient-data in both ReplicationDataState and FailoverReadiness for 150 seconds while it was not attached and received no writes. It reached in-sync and ready 93.7 seconds after I attached it to an instance and started writing. Creation to available took 8.5 seconds.
  • In another test (Amazon EBS がサポートした multi-AZ ボリュームを試してみた, Classmethod, in Japanese), an 8 GiB gp3 volume reached in-sync and ready 1 minute 47 seconds after creation, before it was attached.

I did not isolate the cause of the difference. Before you rely on a failover, read FailoverReadiness and confirm it is ready.

FSx for ONTAP Multi-AZ

For FSx for ONTAP Multi-AZ, the AWS documentation says detection of the failure and promotion of the standby are automatic and usually take under 60 seconds. What you do after the failover depends on the protocol:

  • NFS and SMB clients keep the same IP address and continue their connections.
  • For iSCSI and NVMe/TCP, client-side multipath moves to the other path. You configure the multipath.

Write stalls during a failover

The first measurement is on an EBS multi-AZ volume.

Item Result
What I did Instance A in the active AZ kept writing, and instance B in the standby AZ kept trying to read the same volume while I called FailoverVolumes. B's reads failed with errno=121 before the failover and succeeded after it
Intervals measured 1.8 seconds from A's last successful write to B's first successful read, and 2.8 seconds from the start of the FailoverVolumes call to B's first successful read. Neither is the time until the application resumes writing (A kept failing after the failover). The times come from each instance's clock
A after the failover Returned errno=121 from then on

In the EBS measurement (2026-12-01), I prepared instance B in advance.

The second measurement is on FSx for ONTAP Multi-AZ. I changed the throughput capacity from 384 MBps to 768 MBps. The AWS documentation says this change makes the HA pair fail over and fail back. The change took about 23 minutes to complete. During it, three clients (NFS, iSCSI, and NVMe/TCP) kept writing. Each client repeated one 4 KiB synchronous write at a time (O_DIRECT and O_DSYNC). I counted a stall as an interval longer than 0.5 seconds between successful writes.

Client Longest stall Other stalls Writes that returned an error
NFS 45.9 seconds about 4 seconds 0
iSCSI 10.1 seconds 0.4 to 0.9 seconds 0
NVMe/TCP 10.1 seconds 0.4 to 0.9 seconds 7
  • The 1.8 seconds on EBS (a manual FailoverVolumes call, from A's last write to B's first read) and the 45.9 and 10.1 seconds on FSx for ONTAP (the failover and failback that come with a throughput capacity change, as gaps between successful writes) differ in trigger and in interval, so I do not rank them.
  • The FSx for ONTAP measurement is the failover and failback that come with a throughput capacity change, not a node or AZ failure. I did not reproduce an AZ failure itself, because I cannot cause one in a test environment. The reason category is "technically difficult".
  • The documented "usually under 60 seconds" and the 45.9-second maximum I saw do not contradict each other.
  • The throughput capacity change takes about 23 minutes. Check client timeouts and retries before you make the change.
  • The route that starts an ONTAP takeover through the REST API (/private/cli/storage/failover/takeover) was not available to fsxadmin (HTTP 404).

Design point 4: standby-side failure and resync

This section rests mainly on the EBS documentation. An EBS multi-AZ volume keeps working after a failure on the standby side. The AWS documentation describes the following:

  • I/O stop: while the volume moves to out-of-sync, I/O can typically stop for up to about 60 seconds.
  • Rebuild time: up to 6 hours for the first 1 TiB. Up to 16 TiB, about 1.2 hours for each additional 1 TiB. For data beyond 16 TiB, up to 24 hours (best effort).
  • Failover restriction: you cannot fail over with FailoverVolumes until the volume catches up.

During a resync, the volume is not protected against an AZ failure, so the rebuild time is the time without protection. The time changes with the size of the volume. I did not reproduce a standby-side failure or a resync in this post. The description above comes from the AWS documentation.

To change the standby AZ, use ModifyVolume:

  • While the volume replicates to the new standby, FailoverVolumes is rejected with FailoverNotAllowed.
  • You are billed for the amount of data replicated.

FSx for ONTAP Multi-AZ

I also did not reproduce a standby-side failure or a resync on FSx for ONTAP Multi-AZ, because I cannot cause a failure in the standby AZ of a test environment. The reason category is "technically difficult". The only FSx for ONTAP stall I measured in this post is the one during a throughput capacity change (design point 3).

Design point 5: multiple volumes and backups

One application on several volumes

When you stripe several multi-AZ volumes, or keep one application's data on several volumes, the AWS documentation describes the following configuration:

  • Align the standby AZ across all the volumes.
  • Fail over per instance, not per volume: pass the instance ID to FailoverVolumes instead of a volume ID (the instance-level failover in the AWS documentation). All the multi-AZ volumes attached to that instance whose active replica is in the instance's AZ switch together in the same crash-consistent state. A subset of them never switches alone.

Failing over each volume separately is outside the crash-consistency guarantee that the AWS documentation describes.

Backups

  • Take Snapshots from the active side.
  • The multi-AZ setting is not carried over to Snapshots and AMIs. When you restore a volume, specify the multi-AZ setting again.
  • The Data Lifecycle Manager MultiAvailabilityZone policy takes a Snapshot every 15 minutes and keeps the latest one.
  • You can build DR across Regions with AWS Elastic Disaster Recovery (design point 3).

Copy features:

  • FSx for ONTAP: Snapshots, FlexClone, and SnapMirror are storage-side features. SnapMirror replicates to a file system in another Region.
  • EBS: Volume Clones can make an instant copy of a single-AZ volume.
  • On an EBS multi-AZ volume, CopyVolumes, the Volume Clones API, is not available. The EC2 API rejected it with UnsupportedOperation on 2026-12-01.

Design point 6: multiple hosts, Auto Scaling groups, file protocols, and tiering

Several hosts use the same data

An EBS multi-AZ volume does not support Multi-Attach, which attaches one volume to several instances. The EC2 API rejected it when I enabled it (InvalidParameterCombination).

An FSx for ONTAP LUN can be mapped to an igroup that lists several hosts. Writing to the same LUN from several hosts at once requires a cluster-aware file system, or an application built for simultaneous writes from several hosts. The detailed conditions are in my GitHub note, When shared block changes the design.

Auto Scaling groups and Spot Instances

EBS multi-AZ volumes support neither Auto Scaling groups nor Spot Instances. I mounted an FSx for ONTAP volume over NFSv4 from a Spot Instance (one-time request) and from an on-demand instance in an Auto Scaling group, wrote a file from each, and read it back. I did not try an Auto Scaling group that mixes Spot and on-demand instances. The reason category is "time".

Data kept as blocks, and data kept as files

Data kept as a block (LUN) stays a LUN even when you copy it with FlexClone, and it cannot be read over NFS, SMB, or S3 Access Points (my GitHub note, LUN contents do not reach file protocols). For an application that requires a block device, such as a database, the S3 API adds no path to read the data.

S3 Access Points read and write only the files placed on NFS or SMB volumes. So they apply only when the data on EBS is files in a file system and you can replace the application's disk access with an NFS or SMB mount. Tiering to the capacity pool can be set on a volume that holds a LUN, even when that condition does not hold (see the paragraph "Tiering can be set on block volumes as well" after the next table). The next table sets tiering and S3 Access Points side by side.

Option What changes When it does not fit
Tiering to the capacity pool Data moves from SSD to the capacity pool according to the volume's tiering policy. With AUTO, data not read for the cooling period moves. Multi-AZ prices: SSD $0.300 per GB-month, capacity pool $0.0476 per GB-month When the same data is read repeatedly. Reads from the capacity pool cost $0.00037 per 1,000 requests and can be slower than SSD. SSD is billed on provisioned capacity, so the SSD bill drops only if you reduce provisioned SSD
S3 Access Points The files of the same volume can be read and written through the S3 API (GetObject, PutObject, ListObjectsV2, and others). The data stays in the volume and NFS keeps working at the same time When you need every S3 feature. Versioning, Lifecycle, Object Lock, Event Notifications, and others are not available

What I confirmed in Tokyo:

  • Tiering: on 2026-12-04, I created one NFS volume and one LUN volume with the ALL tiering policy and wrote 1 GiB of random data to each. About 60 seconds after the write, the capacity pool held 0.94 GB for NFS and 1.07 GB for the LUN (all 1 GiB). When I read the capacity pool usage again after the readback, the NFS volume also held all 1 GiB there. The SHA-256 read back matched the source file. With AUTO, the documentation says data moves 24 to 48 hours after the 2-day cooling period ends.
  • S3 Access Points: I read a 26-byte file written over NFS through S3 Access Points, and its SHA-256 matched the NFS side. An object written through the S3 API appeared over NFS as a file with the same content (owner root, group daemon). The access point took 31.2 seconds from creation to AVAILABLE.

Tiering can be set on block volumes as well. A volume that holds a LUN, with the ALL policy, moved data to the capacity pool in my measurement. NetApp's technical report TR-4695 says, for ONTAP in general, that on SAN a read error can be returned to the host when the capacity tier is unreachable for two minutes. On FSx for ONTAP you cannot cut the path to the capacity pool, so I could not create that condition. For that reason I did not measure whether a read error occurs. The reason category is "technically difficult". If you use tiering for block data, check the read-error condition first.

Monthly cost arithmetic

This is the storage cost for one host that uses 1,024 GiB, calculated from public Tokyo prices.

  • I obtained the EBS prices (effective 2026-11-01) from the AWS Price List API on 2026-12-01. On the AWS price pages, GB means 1024³ bytes, so I multiply the GiB figure directly.
  • I obtained the FSx for ONTAP prices (effective 2026-11-01) from the AWS Price List API on 2026-12-01.
  • The configuration stays within the 3,000 IOPS and 125 MiB/s that gp3 includes, so there are no extra charges.
Configuration Calculation Per month
EBS single-AZ gp3 1,024 × $0.096 $98.30
EBS multi-AZ gp3 1,024 × $0.192 $196.61
FSx for ONTAP Multi-AZ, second-generation minimum SSD 1,024 × $0.300 + throughput capacity 384 × $3.148 $1,516.03
  • The table is arithmetic on public prices, not an actual bill. The smallest second-generation FSx for ONTAP Multi-AZ configuration costs about 7.7 times as much as EBS multi-AZ gp3.
  • The 384 MBps of FSx for ONTAP throughput capacity and the 125 MiB/s of gp3 are different units and different performance levels. The monthly difference is not a difference for the same performance.
  • FSx for ONTAP costs more per GB than EBS and adds throughput capacity as a separate charge. The total cost of FSx for ONTAP can still fall below the total cost of EBS when you keep several copies of the same data, when you tier, or when you use deduplication and compression. I did not calculate those conditions here. The point where EBS stops being the cheaper answer is in my GitHub note, When EBS stops being the cheaper answer.
  • If you do not need multi-AZ and want a volume billed on the data you store, see the companion post.

Feature comparison

This comparison is based on AWS public documentation. The sources are in "Sources". The explanation of failover and the measured values are in each design point section.

Aspect EBS multi-AZ volume (gp3 / io2) FSx for ONTAP Multi-AZ
What it provides A block device One file system that provides block (LUNs over iSCSI and NVMe/TCP) and files (NFS, SMB, S3 Access Points). The contents of a LUN cannot be read over NFS, SMB, or S3 Access Points
Hosts at the same time 1 (Multi-Attach not supported) Several
Data on AZ failure Documented RPO of zero Documented synchronous replication across AZs. I did not find an RPO figure on the pages listed in "Sources"
Failover on AZ failure Manual. After your call, the storage failover is designed to finish in under 10 seconds (design point 3) Automatic. Documented as usually under 60 seconds (design point 3)
Usable as a boot disk (root volume) Yes No
Smallest configuration From 1 GiB 1,024 GiB of SSD and 384 MBps of throughput capacity (second generation)
Data protection such as Snapshots You can take Snapshots. The multi-AZ setting is not carried over to Snapshots and AMIs Snapshots, FlexClone, and SnapMirror as storage-side features
Data that is not read Stays on SSD NFS, SMB, and LUN volumes can tier it to the capacity pool
Unsupported features Multi-Attach, Fast Snapshot Restore, CopyVolumes, TRIM, Adaptive Volumes, AWS Fault Injection Service, Auto Scaling groups, Spot Instances Apart from not being usable as a boot disk (the boot disk row above), none among the items in this table. I did not check every FSx for ONTAP feature
DR across Regions AWS Elastic Disaster Recovery supports multi-AZ volumes from 2026-11-30 Replicate to a file system in another Region with SnapMirror
Changing an existing configuration to multi-AZ Cannot be converted in place (the EC2 API rejects it with InvalidParameterValue). Recreate from a Snapshot The deployment type cannot be changed after creation, so a Single-AZ file system cannot become Multi-AZ
Prices in Tokyo gp3 storage $0.192 per GB-month (twice single-AZ). Monthly figures are in "Monthly cost arithmetic" SSD $0.300 per GB-month, throughput capacity $3.148 per MBps-month, capacity pool $0.0476 per GB-month

The criteria for choosing are in "How to choose, by situation" in the Conclusion. Both options have constraints. An EBS multi-AZ volume attaches to one host only, and you run the failover. FSx for ONTAP Multi-AZ has a minimum configuration of 1,024 GiB of SSD and 384 MBps of throughput capacity, and it cannot be a boot disk.

Measurement conditions and scope

Measurement conditions

Item 2026-12-01 2026-12-04
What was measured Behavior of EBS multi-AZ volumes; 4 KiB synchronous writes (dd, three rounds) FSx for ONTAP Single-AZ comparison; IOPS by queue depth (fio); io2 and Adaptive Volumes; round trip between AZs (ping); write stalls during a failover; NVMe/TCP; tiering; NFS mounts from Spot Instances and an Auto Scaling group
Client EC2 t3.small, Amazon Linux 2023, apne1-az4 EC2 t3.medium, Amazon Linux 2023, apne1-az4
EBS gp3, 3,000 IOPS, 125 MiB/s. Single-AZ 13 GiB (apne1-az4); multi-AZ 12 GiB (active apne1-az4, standby apne1-az1) gp3 and io2 created at 3,000 IOPS. gp3a and io2a also measured. Standby apne1-az1 and apne1-az2
FSx for ONTAP MULTI_AZ_2 (second-generation Multi-AZ), one HA pair, 1,024 GiB SSD, 384 MBps throughput capacity. Preferred AZ apne1-az4, standby AZ apne1-az1 Second-generation Multi-AZ and Single-AZ, each with 1,024 GiB SSD and 384 MBps throughput capacity
ONTAP version Not recorded 9.19.1P4D1
Load 3,000 synchronous 4 KiB writes at queue depth 1. Block devices were written directly dd synchronous writes (queue depth 1) and fio 4 KiB random writes (direct=1, queue depth 1, 4, 16, 32)

Details of the 2026-12-01 measurement:

Item Value
Why the EBS volume sizes differ To tell the single-AZ and multi-AZ volumes apart by size inside the instance. Both are set to 3,000 IOPS and 125 MiB/s
FSx for ONTAP over iSCSI A 10 GiB LUN in a 20 GiB volume (no tiering, no deduplication or compression). Logged in to the SVM's two iSCSI endpoints and combined them with dm-multipath into two paths (one preferred, one standby). /etc/multipath.conf was an empty file, so ONTAP's defaults applied
FSx for ONTAP over NFS A separate 20 GiB volume (tiering policy AUTO, cooling period 2 days, no deduplication or compression) mounted with NFSv4.1. Overwrites of a 16 MiB file written beforehand
Repeats Three rounds. Each round measured the four destinations in the same order

Behavior of the EBS multi-AZ volume API

2026-12-01, a 10 GiB gp3 volume. Active apne1-az4, standby apne1-az1.

Behavior I checked Result
FailoverVolumes requirement SourceActiveAvailabilityZone (the current active AZ) is required. I ran it on one volume with the instance still attached
FailoverVolumes time describe-volumes showed the active AZ swapped 2.2 seconds after the call. That value is the API response. It is a different measurement from the 2.8 seconds until B's first successful read on the standby side (the table in design point 3)
Enabling Multi-Attach The EC2 API rejected it (InvalidParameterCombination)
CopyVolumes The EC2 API rejected it (UnsupportedOperation)
In-place conversion of a single-AZ volume The EC2 API rejected it (InvalidParameterValue)
Combining with gp3a The EC2 API rejected the creation (UnknownVolumeType). Creating gp3a as single-AZ succeeded

Scope of the measurements

The following items were not reproduced, or hold only under limited conditions. The category of the reason is attached only to the items I did not measure.

  • AZ failure itself: technically difficult (I cannot cause an AZ failure in a test environment). The FSx for ONTAP failover measurement comes from a throughput capacity change. I did not reproduce a node failure.
  • Standby-side failure and resync (both EBS and FSx for ONTAP): technically difficult (I cannot cause a failure in the standby AZ of a test environment). The rebuild times in design point 4 come from the AWS documentation.
  • One client and two AZ pairs (apne1-az4 to apne1-az1 and apne1-az2): time. For other pairs, I cite another test (the Classmethod post on three AZ pairs).
  • The 2026-12-01 and 2026-12-04 measurements used different file systems: out of scope. Recreating a file system can move a value by about 0.1 ms, even with the same configuration.
  • The EBS queue depth results are for volumes provisioned at 3,000 IOPS: budget. I did not measure a higher provisioned value.
  • NVMe/TCP, which I measured only with ONTAP 9.19.1P4D1 on Amazon Linux 2023: time. I did not measure RHEL 9.3, which the AWS documentation lists.
  • The ONTAP version of the 2026-12-01 measurement was not recorded.
  • An Auto Scaling group that mixes Spot and on-demand instances: time.
  • Tiering with the AUTO policy: time. I did not wait for the data movement to finish.

Steps to check this in your own account

You need an AWS CLI version that includes aws ec2 failover-volumes. Version 2.38.3 does not include it. Check with aws --version and update the AWS CLI if needed.

Use test volumes only. Steps 4 and 6 overwrite the contents of the target device.

  1. Find the AZ IDs you will use (for example apne1-az4) with aws ec2 describe-availability-zones. The mapping between AZ names and AZ IDs differs per account.
  2. Create the multi-AZ volume: aws ec2 create-volume --volume-type gp3 --size 12 --availability-zone-id <active AZ ID> --multi-availability-zone-configuration 'ConfigurationType=multi-az-1,StandbyAvailabilityZones=[{AvailabilityZoneId=<standby AZ ID>}]'
  3. For comparison, create a single-AZ volume of the same type with --size 13.
  4. Launch a Nitro-based EC2 instance in the active AZ that supports multi-AZ volumes, and attach both volumes to it. Write to the multi-AZ volume for a few minutes (for example, repeat dd if=/dev/zero of=/dev/<device> bs=1M count=2048 oflag=direct). The time from creation to in-sync is not constant, so read FailoverReadiness in the next step.
  5. Wait until MultiAvailabilityZoneStatusDetails in aws ec2 describe-volume-status shows in-sync and ready.
  6. On each volume, run dd if=/dev/zero of=/dev/<device> bs=4k count=3000 oflag=direct,dsync. Divide the elapsed time by 3,000 to get the time of one synchronous write. Keep reading describe-volume-status during the run to confirm the state stays in-sync.
  7. Measure IOPS by queue depth with fio, passing --rw=randwrite --bs=4k --direct=1 --iodepth=<1, 4, 16, or 32>.
  8. Run aws ec2 failover-volumes with the current active AZ to switch the multi-AZ volume.
  9. Time how long aws ec2 describe-volumes takes to show the swapped active AZ.
  10. Delete the volumes and the instance when you finish.

The writes and the replication-state sampling in steps 4 to 6 are in scripts in my GitHub repository (examples/ebs-multi-az).

Measuring on FSx for ONTAP

My GitHub repository has scripts that create the LUN and connect with multipath (examples/block-storage).

  1. Create the LUN, igroup, and LUN map with the ONTAP REST API.
  2. Log in from the host over iSCSI, and combine the paths with dm-multipath.
  3. Run the same dd as step 6 against the multipath device (/dev/mapper/<WWID>).

For NFS, mount the volume and run the same dd against a file.

Detailed records

The full tables and records are in my GitHub repository. The notes below are in Japanese.

Sources

Topic Source
Launch of multi-AZ volumes, gp3 and io2, RPO of zero What's New
Behavior, manual failover, write time and IOPS formulas, standby-side failure, multiple volumes, Snapshots, unsupported features (I read the full page on 2026-12-06) EBS User Guide
AWS Elastic Disaster Recovery support AWS DRS documentation
How multi-AZ volumes are priced, the definition of GB Amazon EBS pricing
FSx for ONTAP HA pair, synchronous replication across AZs, automatic failover, keeping the IP for NFS and SMB, iSCSI multipath FSx for ONTAP availability and durability
Tiering policies, cooling period, when data moves to the capacity pool FSx for ONTAP volume storage capacity
S3 Access Points with the S3 API alongside NFS Accessing your data via Amazon S3 access points
S3 features not available through S3 Access Points Access point restrictions and limitations
Second-generation minimum SSD and throughput capacity FSx for ONTAP quotas
Volume Clones AWS: Amazon EBS now supports Volume Clones
Another test: steps from creation to failover, time from creation to in-sync Classmethod: Amazon EBS がサポートした multi-AZ ボリュームを試してみた (in Japanese)
Another test: write time for each AZ pair Classmethod: multi-AZ ボリュームの書き込み遅延を AZ ペアを変えて測ってみた (in Japanese)
Another test: DRS with EBS multi-AZ volumes Classmethod: DRS が EBS Multi-AZ ボリュームをサポートしたので試してみた (in Japanese)
Tokyo prices for FSx for ONTAP and EBS AWS Price List API (both effective 2026-11-01, obtained 2026-12-01)

These measurements and this configuration are my personal testing and do not represent the views of my employer. I used only public documentation and results I confirmed in my own account.

I hope this saves some checking time for solutions architects and infrastructure engineers who design block storage that must survive an AZ failure on AWS.

See you next time.

Yoshiki Fujiwara

Top comments (1)

Collapse
 
zubair933 profile image
Md Zubair •

Comparing cross-AZ write replication latency vs IOPS tradeoffs across EBS multi-AZ volumes and FSx for ONTAP LUNs removes a ton of guesswork before workloads hit live failover tests.