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.
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.
| Need | Start evaluating | Why |
|---|---|---|
| Boot disk or database on one EC2 host | EBS gp3 or io2 | Block access and tunable performance |
| Shared Linux application files | EFS | Elastic NFS storage across clients |
| Windows shares with Active Directory | FSx for Windows File Server | SMB and Windows access semantics |
| Parallel HPC or training dataset | FSx for Lustre | Parallel file access and S3 integration |
| NFS/SMB/iSCSI with ONTAP features | FSx for NetApp ONTAP | Multiprotocol access, snapshots, tiering |
| NFS applications needing ZFS features | FSx for OpenZFS | ZFS 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.
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.
| Type | Size range | Maximum IOPS per volume | Maximum throughput | Typical fit |
|---|---|---|---|---|
| gp3 | 1 GiB–64 TiB | 80,000 | 2,000 MiB/s | General SSD, boot, many databases |
| gp2 | 1 GiB–16 TiB | 16,000 | 250 MiB/s | Existing capacity-linked SSD workloads |
| io2 Block Express | 4 GiB–64 TiB | 256,000 | 4,000 MiB/s | Demanding transactional databases |
| io1 | 4 GiB–16 TiB | 64,000 | 1,000 MiB/s | Existing provisioned-IOPS deployments |
| st1 | 125 GiB–16 TiB | 500 at 1-MiB I/O | 500 MiB/s burst | Large sequential processing |
| sc1 | 125 GiB–16 TiB | 250 at 1-MiB I/O | 250 MiB/s burst | Infrequently 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.
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
| Setting | Choices | Decision |
|---|---|---|
| Performance mode | General Purpose, Max I/O | AWS recommends General Purpose; Max I/O is an older mode with higher operation latency |
| Throughput mode | Elastic | Pay for workload-driven throughput; useful for variable activity |
| Throughput mode | Provisioned | Reserve throughput independent of stored capacity |
| Throughput mode | Bursting | Baseline 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
| Variant | Client interface | Primary strengths | Availability and storage choices |
|---|---|---|---|
| Windows File Server | SMB | AD integration, NTFS permissions, Windows shares | Single-AZ or Multi-AZ; SSD or HDD |
| Lustre | Lustre client | Parallel HPC, ML, high-throughput analytics | Scratch or persistent; supported SSD, HDD, Intelligent-Tiering combinations vary |
| NetApp ONTAP | NFS, SMB, iSCSI | Multiprotocol enterprise data, SnapMirror, clones | Single-AZ or Multi-AZ; SSD plus capacity-pool tiering |
| OpenZFS | NFS | ZFS snapshots/clones, Linux/Unix migrations | Supported 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
| Workload | Practical starting point | What to validate |
|---|---|---|
| Single-host relational database | EBS gp3; io2 for demanding requirements | Tail latency, queue depth, instance bandwidth, recovery |
| Shared Linux application content | Regional EFS | NFS semantics, metadata load, concurrent access |
| Windows/SMB application | FSx Windows | AD, locks, permissions, failover behavior |
| Enterprise multiprotocol migration | FSx ONTAP | Protocol compatibility, tiering, replication |
| HPC and parallel training | FSx Lustre | Clients, metadata performance, dataset staging |
| NFS workload needing ZFS features | FSx OpenZFS | Cache 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
| Layer | EBS | EFS | FSx |
|---|---|---|---|
| At-rest protection | KMS-encrypted volumes and snapshots | Encryption selected at creation | Managed at-rest encryption using KMS |
| Data access | Attached host and OS/database controls | Network, IAM client authorization, POSIX | Protocol identities, export/share permissions |
| Network boundary | EC2 attachment; no NFS/SMB endpoint | Mount-target security groups | Variant-specific endpoints and security groups |
| In-transit protection | EBS encryption protects instance-to-volume data | EFS helper with TLS | Protocol/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
| Configuration | Assumed rates | Monthly calculation | Total |
|---|---|---|---|
| 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/GiB | 1,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
| Service | Signals | What they help explain |
|---|---|---|
| EBS/EC2 | Read/write operations and bytes, queue length, latency, exceeded checks | Underuse, saturation, instance versus volume bottlenecks |
| EFS | StorageBytes, MeteredIOBytes, PercentIOLimit, BurstCreditBalance where relevant | Growth, metered throughput, limits, credit exhaustion |
| FSx | Capacity utilization, throughput, IOPS, CPU/cache and tiering metrics where supported | Oversizing, 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:
- - Find unattached volumes and verify owners before removing resources.
- - Compare provisioned capacity and performance with peak and sustained demand.
- - Move suitable gp2 workloads to gp3 with explicit performance settings.
- - Check EFS throughput spending, cold-tier accesses, and mount placement.
- - Review FSx throughput capacity, utilization, tiering, and deployment suitability.
- - Reconcile snapshot, backup, clone, and replica retention with recovery requirements.
- - 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
- AWS: EBS volume types and limits
- AWS: gp3 and gp2 performance
- AWS: io2 and io1
- AWS: st1 and sc1
- AWS: EBS Multi-Attach
- AWS: EBS snapshots
- AWS: EBS encryption
- AWS: EBS pricing
- AWS: EFS types and storage classes
- AWS: EFS performance
- AWS: EFS throughput modes
- AWS: EFS lifecycle policies
- AWS: EFS network access
- AWS: IAM authorization for EFS mounts
- AWS: EFS billing dimensions
- AWS: EFS replication
- AWS: EFS pricing
- AWS: FSx for Windows File Server
- AWS: Windows FSx pricing and transfer rules
- AWS: Lustre deployments and storage classes
- AWS: FSx for NetApp ONTAP
- AWS: ONTAP availability and deployment
- AWS: FSx for OpenZFS
- AWS: OpenZFS deployment setup
- AWS: FSx family pricing
- AWS: EBS CloudWatch metrics
- AWS: EFS CloudWatch metrics
- Microsoft: Managed disks
- Microsoft: Azure Managed Lustre
- Microsoft: Azure Files
- Microsoft: Azure NetApp Files
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.