SkillSprout
Chapter 6 · Lesson 4
Intermediate
8 min read

FSx

Overview

Amazon FSx is a family of fully managed file systems built on popular third-party file-system technologies. Instead of running and patching your own Windows file server, Lustre cluster or NetApp appliance on EC2, AWS provisions, patches, backs up and replicates it for you while you keep the protocols and features your applications already depend on.

There are four flavours: FSx for Windows File Server (SMB and Active Directory for Windows workloads), FSx for Lustre (high-performance computing and machine learning), FSx for NetApp ONTAP (multi-protocol enterprise storage) and FSx for OpenZFS (low-latency NFS with snapshots and cloning).

On the exam the skill is matching the keyword in the scenario to the right FSx type. "Windows", "SMB" or "Active Directory" means Windows File Server; "HPC" or "sub-millisecond at hundreds of GB/s" means Lustre; "multi-protocol" or "SnapMirror" points to ONTAP; "migrate ZFS" points to OpenZFS.

Key Concepts

  • FSx for Windows File Server: native SMB, NTFS, Active Directory integration, DFS namespaces, Multi-AZ with automatic failover, and shadow-copy based user restores.
  • FSx for Lustre: parallel file system for HPC, ML and media rendering with sub-millisecond latency, hundreds of GB/s and millions of IOPS; integrates natively with S3.
  • Lustre has Scratch (temporary, fastest, no replication) and Persistent (replicated within an AZ, long-term) deployment types.
  • FSx for NetApp ONTAP supports NFS, SMB and iSCSI at once, with snapshots, SnapMirror replication, deduplication, compression and automatic tiering to a capacity pool.
  • FSx for OpenZFS: NFS (v3, v4.x) with point-in-time snapshots, instant clones and compression; designed to migrate on-premises ZFS or Linux NFS workloads.
  • All FSx types support encryption at rest (KMS) and in transit, automatic daily backups and access from on-premises via VPN or Direct Connect.
  • FSx (except Lustre scratch) offers Single-AZ and Multi-AZ deployment options for high availability.
  • Choose EFS for generic Linux NFS; choose FSx when a specific protocol, performance profile or enterprise feature is required.

Detailed Notes

Choosing the right FSx file system

TypeProtocolsBest forKey features
Windows File ServerSMB, NTFSWindows apps, user home directories, SQL Server, IISActive Directory, DFS, ACLs, shadow copies, Multi-AZ
LustreLustre client (POSIX)HPC, ML training, genomics, financial modellingS3 integration, hundreds of GB/s, millions of IOPS
NetApp ONTAPNFS, SMB, iSCSIMigrating NetApp workloads, multi-protocol, hybridSnapshots, SnapMirror, dedupe, tiering, FlexClone
OpenZFSNFS (3, 4.0-4.2)Migrating ZFS/Linux NFS, dev/test, databasesSnapshots, clones, compression, up to 1 million IOPS at under 0.5 ms

FSx for Windows File Server

  • Fully native Windows file shares reachable over SMB from EC2, on-premises (through Direct Connect or VPN) and other VPCs.
  • Joins an AWS Managed Microsoft AD or your self-managed AD; supports NTFS permissions, user quotas and DFS namespaces to group multiple file systems.
  • Multi-AZ deployment keeps a synchronous standby in a second AZ and fails over automatically.
  • Data deduplication, shadow copies (previous versions) and SSD or HDD storage; storage can be increased but not decreased.
  • Backups are incremental and stored in S3; you can copy them across Regions.

FSx for Lustre

Lustre is a parallel distributed file system where data is striped across many servers for massive throughput.

Deployment typeDurabilityUse
ScratchNo replication; data lost if a file server failsShort-term processing, cost-optimised, best burst throughput
PersistentReplicated within one AZ, failed servers replacedLong-term storage, sensitive workloads

Lustre is commonly linked to an S3 bucket: files appear as a file system, are lazily loaded on first access, and results can be exported back to S3.

bash
# Mount an FSx for Lustre file system on Amazon Linux 2023
sudo dnf install -y lustre-client
sudo mkdir /fsx
sudo mount -t lustre -o relatime,flock fs-0abc123.fsx.us-east-1.amazonaws.com@tcp:/abcdefgh /fsx

FSx for NetApp ONTAP

Provides the full ONTAP data-management stack as a managed service. A single file system exposes NFS, SMB and iSCSI simultaneously, supports thin provisioning, deduplication, compression, FlexClone, and SnapMirror replication from on-premises NetApp systems. Frequently accessed data stays on SSD, while cold data moves automatically to a capacity pool tier with lower cost. Choose it when a scenario mentions NetApp, multi-protocol, or lift-and-shift of existing ONTAP workflows.

FSx for OpenZFS

A managed ZFS file system accessed over NFS. It offers snapshots, instant clones, data compression and very low latency, making it ideal for moving existing ZFS or Linux NFS servers without re-architecting, and for databases and dev/test copies.

FSx vs EFS vs S3

RequirementBest choice
Windows SMB shares with Active DirectoryFSx for Windows
HPC / ML scratch with S3 dataFSx for Lustre
Linux NFS, elastic, multi-AZ, no provisioningEFS
Multi-protocol enterprise (NFS+SMB+iSCSI)FSx for ONTAP
Object storage, any scale, HTTP accessS3

Security and operations

All file systems are placed in your VPC with security groups, are encrypted with KMS, and write automatic daily backups (retained 0-90 days). Use CloudWatch for metrics, CloudTrail for API activity and DataSync or Robocopy for migration.

Real World Example

Scenario — a pharmaceutical company runs genomics pipelines and a Windows-based lab information system.

Genomics researchers launch hundreds of EC2 instances that must read a 500 TB reference dataset and write intermediate results at tens of GB/s for a few hours. The dataset lives in S3 for cheap long-term storage. The team creates an FSx for Lustre scratch file system linked to the S3 bucket; compute nodes mount it, data is lazy-loaded at high speed, and final results are exported back to S3 before the file system is deleted, so they only pay for the hours used.

Separately, the lab information system runs on Windows Server and needs SMB shares with domain permissions. The company deploys FSx for Windows File Server in Multi-AZ joined to its Active Directory, reached from the office over Direct Connect. When the primary AZ has an issue, clients are redirected to the standby automatically with no administrator involvement.

Architecture Diagram

FSx for Lustre linked to S3 and FSx for Windows with Active Directory
Architecture
AWS Cloud
VPC

HPC / ML

Compute cluster100s of instances
FSx for Lustrescratch / persistent

Windows workloads

Windows servers
FSx for WindowsMulti-AZ
S3 data lake
Lustre (linked)
Managed Microsoft ADauthentication

FSx matches the file-system technology to the workload: HPC on the left, Windows shares on the right.

  1. 1Compute instances mount FSx for Lustre and read data lazily loaded from the linked S3 bucket at very high throughput.
  2. 2Results are written to Lustre and exported back to S3 when the job completes; scratch file systems are then deleted.
  3. 3Windows servers and users access FSx for Windows File Server over SMB and authenticate with Active Directory.
  4. 4The Multi-AZ Windows deployment fails over automatically to its standby if the preferred file server is unavailable.

Best Practices

  • ✓Match the FSx type to the protocol: SMB -> Windows File Server, Lustre client -> Lustre, multi-protocol -> ONTAP, ZFS/NFS -> OpenZFS.
  • ✓Use Multi-AZ deployments for production Windows and ONTAP file systems; use Single-AZ only for dev/test or when cost dominates.
  • ✓Use Lustre scratch for temporary, reproducible compute jobs and persistent for data that must survive file-server failures.
  • ✓Link Lustre to S3 so that S3 remains the cheap system of record and Lustre is the high-speed working copy.
  • ✓Join Windows file systems to AWS Managed Microsoft AD or your self-managed AD and use DFS namespaces to scale out shares.
  • ✓Restrict access with security groups, enable KMS encryption and use in-transit encryption (SMB encryption, Kerberos).
  • ✓Enable automatic daily backups and test restores; copy backups cross-Region for disaster recovery.
  • ✓Use data deduplication, compression and tiering features to reduce cost, and monitor capacity because storage cannot be reduced later.

Common Interview Questions

Exam Tips

SAA-C03 focus

  • Key word map: Windows / SMB / Active Directory -> FSx for Windows; HPC / ML / S3 integration / sub-ms -> Lustre; NetApp / multi-protocol / iSCSI -> ONTAP; ZFS -> OpenZFS.
  • Lustre scratch = temporary, highest burst throughput, no replication. Persistent = long-term and replicated within the AZ.
  • FSx for Windows Multi-AZ gives automatic failover across AZs; Lustre is deployed in a single AZ.
  • Linux, elastic, no capacity planning, thousands of clients -> EFS; high-performance parallel processing -> FSx for Lustre.
  • On-premises Windows clients can reach FSx over Direct Connect or VPN; DataSync is the migration tool for file data.
  • FSx for ONTAP is the only FSx option offering iSCSI block access and multi-protocol NFS+SMB simultaneously.
  • All FSx file systems encrypt at rest with KMS and take automatic backups to S3.

Chapter quiz

Storage Services · 5 questions

  1. 1.A company stores compliance records in S3. Regulations require that records cannot be deleted or overwritten by anyone, including the root user, for 7 years. Which configuration meets this requirement?

  2. 2.An application writes log files to S3. Logs are read frequently for 30 days, rarely afterwards, and must be kept for 7 years at the lowest cost; retrieval within 12 hours is acceptable. What is the MOST cost-effective approach?

  3. 3.A database on EC2 needs sustained 50,000 IOPS with consistently low latency. Which EBS volume type should be used?

  4. 4.A fleet of Linux web servers spread across three Availability Zones must share the same content directory, and capacity should grow automatically without provisioning. Which solution is MOST appropriate?

  5. 5.A research team needs a high-performance file system for a short-lived machine learning job. Training data sits in S3 and must be processed at hundreds of GB/s, with results written back to S3. Which service fits best?

0 of 5 answered

Finished this lesson?

0 of 64 lessons done · 0% of the course