CloudVectra Logo CloudVectra
CloudVectra Knowledge Hub

AWS Storage Services Explained: EBS vs. EFS vs. FSx (Architecture, Performance, Security and Costs)

Compare EBS volume types, EFS modes and all four FSx variants with architecture guidance, security controls, CLI examples and practical cost calculations.

16 min read

A database disk, a shared Linux directory, and a Windows departmental share all hold files, but they need different storage architectures. Choosing by capacity price alone can produce poor latency, broken sharing, or a recovery plan that fails during an Availability Zone outage.

This guide compares the services first, then goes deeper into EBS volume types and the four FSx variants. Capabilities were checked against official documentation on November 23, 2026. Pricing examples use explicit assumptions; validate current regional rates before budgeting.

1. Introduction: block storage versus shared file storage

EBS provides block devices for EC2. The operating system formats the volume and manages its filesystem, or a database uses it directly. A normal volume belongs to one Availability Zone and attaches to one instance at a time.

EFS provides shared NFS file storage. Multiple Linux clients mount the same filesystem, useful for shared application content, home directories, and container workloads.

FSx provides managed file systems with specific protocols and capabilities. Windows File Server, Lustre, NetApp ONTAP, and OpenZFS are distinct choices, not interchangeable performance tiers.

NeedStart evaluatingWhy
Boot disk or database on one EC2 hostEBS gp3 or io2Block access and tunable performance
Shared Linux application filesEFSElastic NFS storage across clients
Windows shares with Active DirectoryFSx for Windows File ServerSMB and Windows access semantics
Parallel HPC or training datasetFSx for LustreParallel file access and S3 integration
NFS/SMB/iSCSI with ONTAP featuresFSx for NetApp ONTAPMultiprotocol access, snapshots, tiering
NFS applications needing ZFS featuresFSx for OpenZFSZFS snapshots, clones, and managed NFS

Shared access is an application requirement, not a synonym for high availability. Many clients sharing one filesystem also share its failure and authorization boundaries.

Original pencil-style diagram choosing EBS for block devices, EFS for shared NFS and the appropriate FSx variant by protocol and workload

Figure 1 — Choose the access model and protocol before comparing storage prices.

2. Amazon EBS: dedicated block storage with explicit performance

Volume types, sizes, and performance

EBS replicates a volume within its Availability Zone. The EC2 instance must be in that AZ. A snapshot can create a new volume in another AZ; attaching the original volume across AZs is not supported.

TypeSize rangeMaximum IOPS per volumeMaximum throughputTypical fit
gp31 GiB–64 TiB80,0002,000 MiB/sGeneral SSD, boot, many databases
gp21 GiB–16 TiB16,000250 MiB/sExisting capacity-linked SSD workloads
io2 Block Express4 GiB–64 TiB256,0004,000 MiB/sDemanding transactional databases
io14 GiB–16 TiB64,0001,000 MiB/sExisting provisioned-IOPS deployments
st1125 GiB–16 TiB500 at 1-MiB I/O500 MiB/s burstLarge sequential processing
sc1125 GiB–16 TiB250 at 1-MiB I/O250 MiB/s burstInfrequently accessed sequential data

These are ceilings, not performance available at every size. SSD and HDD IOPS use different reference I/O sizes; comparing their IOPS numbers directly is misleading. Instance support, volume sizing, I/O size, and account quotas still apply. st1 and sc1 cannot be boot volumes.

gp3 is the usual starting point. It includes 3,000 IOPS and 125 MiB/s, with capacity, additional IOPS, and throughput provisioned separately. It does not use burst credits. Additional performance is constrained by ratios: up to 500 IOPS per GiB and 0.25 MiB/s per provisioned IOPS, subject to the included baseline. Reaching 80,000 IOPS requires at least 160 GiB; reaching 2,000 MiB/s requires at least 8,000 IOPS and 16 GiB.

gp2 links performance to size. Baseline IOPS scales at 3 IOPS/GiB, subject to its floor and ceiling; smaller volumes use credits to burst. Increasing capacity only to gain performance can waste money. A gp2-to-gp3 migration should preserve required throughput and IOPS, not blindly accept gp3 defaults.

io2 targets demanding latency and durability needs. AWS designs it for average latency under 500 microseconds at 16-KiB I/O and 99.999% volume durability. Those design characteristics are not an application latency SLA. New and existing io2 volumes now use Block Express; capable Nitro instances are needed for the highest limits. io1 remains relevant for existing systems, but compare io2 for new provisioned-IOPS designs.

st1 and sc1 prioritize sequential throughput. Their burst behavior depends on capacity and credits. A 1-TiB st1 volume has a 40-MiB/s baseline and can burst to 250 MiB/s with credits. The low capacity rate is attractive for scans, but small random database I/O can make HDD a costly performance mistake.

IOPS and throughput are different constraints

At 8,000 operations/second and 16 KiB per operation, payload throughput is about 125 MiB/s. At the same IOPS with 256-KiB operations, it is about 2,000 MiB/s. Provisioning IOPS alone does not guarantee either result: both volume and instance bandwidth must support the workload.

Original pencil-style diagram showing application I/O passing through client, EC2, volume and filesystem limits, with the smallest limit determining observed performance

Figure 2 — An expensive volume cannot overcome a smaller instance or client limit.

Attachments, Multi-Attach, and recovery

Attachment counts depend on the instance family and size. Multi-Attach supports eligible io1/io2 volumes and up to 16 Nitro instances in the same AZ. Linux supports both types; Windows supports io2 Multi-Attach. It does not make ordinary ext4 or XFS safe for simultaneous writers: use a supported clustered filesystem or application with coordination and fencing. A volume-layer failure still affects every attached host.

Snapshots are incremental block backups. Coordinate database checkpoints or application-consistent backup tooling; an uncoordinated snapshot is not automatically a clean database backup. Restores can experience first-read initialization latency unless you use an appropriate initialization strategy or paid Fast Snapshot Restore.

Use Data Lifecycle Manager or AWS Backup for retention and tested recovery. Cross-Region copies support regional recovery, but require copy completion, compatible keys, and a deployment plan. Retained snapshots, snapshot archives, cross-Region copies, and recovery features have separate charges.

3. Amazon EFS: shared NFS without fixed capacity provisioning

Regional versus One Zone, and storage classes

Regional EFS stores data across multiple AZs. One Zone stores it in one AZ, trading resilience for lower cost; backups do not provide live failover.

Standard serves active files. Infrequent Access and Archive reduce storage cost for colder files with higher access latency and additional access or tiering charges. Archive is an online NFS tier, not an S3 Glacier restore workflow. It requires Regional EFS with Elastic throughput and has a 90-day minimum storage duration.

Lifecycle policies move eligible files based on time since access. Configure return-to-Standard behavior explicitly; do not assume a read permanently promotes every cold file. IA and Archive have 128-KiB minimum billable file sizes. Millions of tiny files can undermine a capacity-only estimate.

Performance mode versus throughput mode

SettingChoicesDecision
Performance modeGeneral Purpose, Max I/OAWS recommends General Purpose; Max I/O is an older mode with higher operation latency
Throughput modeElasticPay for workload-driven throughput; useful for variable activity
Throughput modeProvisionedReserve throughput independent of stored capacity
Throughput modeBurstingBaseline depends on Standard storage; sustained bursts consume credits

Max I/O is incompatible with One Zone and Elastic throughput. Do not select it just because its name sounds faster. Performance mode is chosen at creation, while throughput changes have their own restrictions and cooldowns.

Metadata-heavy workloads deserve a separate test. Traversing directories and opening many tiny files may generate substantial metered I/O even when useful payload is small. Measure file operations and concurrency, not only streaming bandwidth.

Use AWS Backup for retained recovery points and evaluate EFS replication for an asynchronous secondary filesystem where supported. Replication is not a substitute for historical backup: application mistakes can propagate. Test destination promotion, client remounting, permissions, and recovery time rather than assuming a replica means automatic failover.

Mount targets, networking, and authorization

Create a Regional filesystem mount target in each client AZ to avoid unnecessary cross-AZ access. One Zone has a mount target in its own AZ. Clients need working VPC routing and DNS; mount-target security groups allow TCP 2049 from the intended client security group. Avoid granting NFS access to every host in the VPC.

On an authorized Linux EC2 instance with the EFS mount helper installed, use TLS and IAM authorization. Replace the example ID; the role needs the relevant client permissions and POSIX access. This mounts an existing filesystem rather than creating one.

sudo mkdir -p /mnt/shared
sudo mount -t efs -o tls,iam fs-0123456789abcdef0:/ /mnt/shared

EFS access points can enforce a root directory and POSIX identity for an application. IAM client permissions and filesystem policies complement Unix UID/GID and mode bits; they do not replace them. A network-only NFS mount does not automatically authenticate with IAM.

4. Amazon FSx: four different filesystem architectures

VariantClient interfacePrimary strengthsAvailability and storage choices
Windows File ServerSMBAD integration, NTFS permissions, Windows sharesSingle-AZ or Multi-AZ; SSD or HDD
LustreLustre clientParallel HPC, ML, high-throughput analyticsScratch or persistent; supported SSD, HDD, Intelligent-Tiering combinations vary
NetApp ONTAPNFS, SMB, iSCSIMultiprotocol enterprise data, SnapMirror, clonesSingle-AZ or Multi-AZ; SSD plus capacity-pool tiering
OpenZFSNFSZFS snapshots/clones, Linux/Unix migrationsSupported Single-AZ/Multi-AZ options; SSD or eligible Intelligent-Tiering

FSx for Windows File Server

Choose it for SMB applications, departmental shares, Windows home directories, and supported Windows workloads needing native file semantics. Plan Active Directory, DNS, identity connectivity, and NTFS permissions as part of deployment.

Multi-AZ adds managed failover across AZs; clients still need compatible retry behavior. Throughput capacity affects service performance independently of storage size. HDD can suit capacity-oriented shares, while SSD better fits latency-sensitive random I/O. Include backup retention and AD-related infrastructure in the operating cost.

FSx for Lustre

Choose Lustre for parallel reads and writes from many workers. It requires compatible Lustre clients; it is not an NFS or SMB endpoint. S3 data repository integration can stage datasets and export results, but configure import/export policies deliberately rather than assuming every write is immediately durable in S3.

Scratch suits reproducible temporary processing and does not provide the same data protection as persistent deployments. Persistent SSD/HDD stores replicas within its AZ. Current Intelligent-Tiering persistent storage replicates data across multiple AZs; that does not make every Lustre deployment a Multi-AZ failover service. Check filesystem-server availability separately from data durability.

FSx for NetApp ONTAP

Choose ONTAP for existing NetApp environments or applications needing NFS, SMB, iSCSI, storage virtual machines, snapshots, clones, and replication workflows. Capacity-pool tiering can lower the cost of cold blocks, but retrieval behavior and performance still matter.

Single-AZ and Multi-AZ options differ from filesystem generation and HA-pair scaling. They affect placement, supported throughput, and recovery. SnapMirror can support replication designs; local snapshots alone do not protect against every filesystem or regional failure.

FSx for OpenZFS

Choose OpenZFS for NFS-based applications benefiting from ZFS snapshots, clones, compression, and familiar file semantics. It is not an SMB replacement for Windows File Server.

Current options include Multi-AZ and Single-AZ HA configurations, with SSD and eligible Intelligent-Tiering choices. Availability, cache behavior, and provisioned throughput vary by deployment. Validate the exact configuration instead of carrying over an assumption from another FSx variant.

Across FSx, backing up and replicating are variant-specific operations. Verify AWS Backup/native backup support, exclusions, retention, and cross-Region recovery for the selected deployment. A local snapshot, a backup, and a replica solve different recovery problems.

5. Architecture and performance comparison: choose by workload

WorkloadPractical starting pointWhat to validate
Single-host relational databaseEBS gp3; io2 for demanding requirementsTail latency, queue depth, instance bandwidth, recovery
Shared Linux application contentRegional EFSNFS semantics, metadata load, concurrent access
Windows/SMB applicationFSx WindowsAD, locks, permissions, failover behavior
Enterprise multiprotocol migrationFSx ONTAPProtocol compatibility, tiering, replication
HPC and parallel trainingFSx LustreClients, metadata performance, dataset staging
NFS workload needing ZFS featuresFSx OpenZFSCache behavior, throughput, clone/snapshot lifecycle

Avoid placing a database on a shared filesystem solely to make it highly available. Confirm vendor support, locking, synchronous-write behavior, and failure handling. EBS plus application-level replication across AZs is often a different design from shared storage with managed failover.

Availability describes whether data can be accessed now; durability describes protection against loss. EBS intra-AZ replication, Regional EFS, and FSx Multi-AZ have different failure scopes. Define recovery point and recovery time objectives, then test host loss, AZ loss, and restoration independently.

AWS/Azure comparison

Azure Managed Disks are the closest EBS counterpart. Azure Files provides managed SMB/NFS shares, while Azure NetApp Files addresses enterprise NFS/SMB requirements. Azure Managed Lustre is relevant for parallel HPC. Compare protocol, redundancy, identity, and throughput configuration rather than treating product names as one-to-one equivalents.

6. Security and governance: management access is not file access

LayerEBSEFSFSx
At-rest protectionKMS-encrypted volumes and snapshotsEncryption selected at creationManaged at-rest encryption using KMS
Data accessAttached host and OS/database controlsNetwork, IAM client authorization, POSIXProtocol identities, export/share permissions
Network boundaryEC2 attachment; no NFS/SMB endpointMount-target security groupsVariant-specific endpoints and security groups
In-transit protectionEBS encryption protects instance-to-volume dataEFS helper with TLSProtocol/deployment/client dependent

Encrypting EBS does not encrypt an application’s separate network connection. For FSx, validate SMB encryption, supported NFS protections, or Lustre client/instance encryption requirements for the chosen variant; do not assume a blanket TLS mount option works everywhere.

Separate backup/key administrators from application roles where recovery requirements justify it. Restrict snapshot sharing, backup deletion, filesystem changes, and KMS administration. A deleted or disabled key can defeat an otherwise healthy restore.

Use CloudTrail for supported management activity and service-specific audit facilities for file access. EBS API history is not a record of every block read. Windows file auditing requires configuration; EFS management logs do not automatically provide a complete per-file access trail.

7. Pricing and hidden costs: compare equivalent outcomes

All figures below are illustrative US East planning inputs, in USD for a full month. Capacity is stated as billable GiB; providers may label binary units as GB. Exclude tax, discounts, compute, KMS, backup, and transfer unless listed. Actual rates vary by Region and configuration.

EBS: gp3 versus io2 versus st1

ConfigurationAssumed ratesMonthly calculationTotal
gp3: 1,024 GiB, 8,000 IOPS, 500 MiB/s$0.08/GiB; $0.005/additional IOPS; $0.04/additional MiB/s$81.92 + $25 + $15$121.92
io2: 1,024 GiB, 8,000 IOPS$0.125/GiB; $0.065/IOPS in first tier$128 + $520$648.00
st1: 1,024 GiB$0.045/GiB1,024 × $0.045$46.08

These are not equivalent performance configurations. gp3 pricing subtracts its included 3,000 IOPS and 125 MiB/s. io2 bills provisioned IOPS from the first IOP, with volume-level pricing tiers at higher provisioning. The st1 row buys credit-based sequential performance, not 8,000 random IOPS or sustained 500 MiB/s.

For comparison, 1,024 GiB of gp2 at an assumed $0.10/GiB costs $102.40 and has a capacity-linked baseline near 3,072 IOPS. Comparing it with tuned gp3 requires matching the workload’s actual requirements.

One hundred detached 100-GiB gp3 volumes at $0.08/GiB-month cost $800 monthly even with no I/O. Stopping EC2 does not stop EBS capacity charges. Snapshots remain after volume deletion unless separately removed; incremental retention, archive rules, Fast Snapshot Restore, and cross-Region copies affect their cost.

EFS: storage savings versus access costs

Suppose 1,024 billable GiB stays in Standard at an assumed $0.30/GiB-month: storage is $307.20. If 20% remains Standard and 80% moves to IA at $0.025/GiB-month, storage becomes $61.44 + $20.48 = $81.92.

The apparent $225.28 saving must cover tiering, cold-file access, throughput, and other charges. For example, at assumed Elastic read/write prices of $0.03/$0.06 per billable GB, 1,000 GB read plus 100 GB written adds $36. Do not add Provisioned throughput charges to an Elastic-mode estimate; model the selected mode.

Cross-AZ mount traffic can add EC2 transfer charges. Lifecycle churn and tiny-file billing minimums can also erase savings. A scanner that repeatedly reads the entire archive changes both the access bill and the value of cold tiering.

FSx: capacity is only one component

For an illustrative Windows Multi-AZ HDD deployment, assume 2,048 GiB at $0.025/GiB-month, 32 MB/s of throughput capacity at $4.50/MB/s-month, and 1,024 GiB of average backup storage at $0.05/GiB-month.

Storage:    2,048 × $0.025 =  $51.20
Throughput:    32 × $4.50  = $144.00
Backups:    1,024 × $0.05  =  $51.20
Illustrative monthly total = $246.40

This is a Windows-specific example. ONTAP adds SSD/capacity-pool, throughput, and potentially provisioned IOPS dimensions; Lustre and OpenZFS also have deployment-specific performance, tiering, or cache charges. Do not reuse one FSx variant’s unit price for another.

Data transfer is service-specific. Current Windows Multi-AZ pricing includes certain cross-AZ traffic for newer filesystems; EFS mount access and other FSx deployments have different rules. Cross-Region backup or replication can add transfer and destination storage. Check both ends of the path before quoting a universal per-GB surcharge.

8. Monitoring, optimization and common mistakes

Find detached EBS volumes without deleting them

Use AWS CLI v2 with a read-only inventory role. The following Bash-compatible query checks one Region; repeat across relevant accounts and Regions.

aws ec2 describe-volumes --region us-east-1 --filters Name=status,Values=available --query 'Volumes[].{ID:VolumeId,GiB:Size,Type:VolumeType,IOPS:Iops,Throughput:Throughput,Created:CreateTime,Tags:Tags}' --output json

An available volume may be deliberately retained for recovery. Confirm ownership, backup status, and retention before cleanup. An old snapshot is not automatically orphaned: it may support an AMI, backup plan, or recovery requirement.

Review useful signals together

ServiceSignalsWhat they help explain
EBS/EC2Read/write operations and bytes, queue length, latency, exceeded checksUnderuse, saturation, instance versus volume bottlenecks
EFSStorageBytes, MeteredIOBytes, PercentIOLimit, BurstCreditBalance where relevantGrowth, metered throughput, limits, credit exhaustion
FSxCapacity utilization, throughput, IOPS, CPU/cache and tiering metrics where supportedOversizing, cache misses, performance headroom

Metric availability differs by instance, filesystem variant, and throughput mode. EBS metrics do not reveal used space inside a guest filesystem; collect OS metrics or a CloudWatch agent to distinguish empty capacity from quiet-but-full storage.

Inspect EFS and FSx configuration with read-only commands:

aws efs describe-file-systems --region us-east-1 --query 'FileSystems[].{ID:FileSystemId,Bytes:SizeInBytes.Value,Mode:ThroughputMode,Encrypted:Encrypted}'
aws efs describe-mount-targets --file-system-id fs-0123456789abcdef0 --region us-east-1
aws fsx describe-file-systems --region us-east-1 --query 'FileSystems[].{ID:FileSystemId,Type:FileSystemType,GiB:StorageCapacity,Storage:StorageType,Lifecycle:Lifecycle}'

The inventory is a starting point; expand the variant-specific FSx configuration to inspect throughput and deployment. Usage-based storage may not have the same fixed-capacity fields as provisioned storage.

A practical monthly review should cover these decisions:

  1. - Find unattached volumes and verify owners before removing resources.
  2. - Compare provisioned capacity and performance with peak and sustained demand.
  3. - Move suitable gp2 workloads to gp3 with explicit performance settings.
  4. - Check EFS throughput spending, cold-tier accesses, and mount placement.
  5. - Review FSx throughput capacity, utilization, tiering, and deployment suitability.
  6. - Reconcile snapshot, backup, clone, and replica retention with recovery requirements.
  7. - Set workload budgets, anomaly alerts, and ownership tags; test restoration periodically.

EBS volumes can grow, but shrinking usually means migrating to a smaller volume; resizing also requires filesystem or partition work where applicable. FSx capacity and performance changes have variant-specific limits. Plan changes around supported operations, workload tests, and rollback.

CloudVectra can fit the ongoing inventory, cost, and governance review where the relevant AWS resources and billing signals are connected. Validate service coverage and combine cloud metrics with application and guest filesystem evidence before accepting a sizing recommendation.

Sources and further reading

Review your AWS storage costs and recovery design

CloudVectra Professional Services can help assess EBS sizing, shared filesystem choices, backup retention, and storage governance against your workload and recovery requirements.

Choose whether CloudVectra may load optional analytics. You can change this at any time.

Cookie names, providers, and retention