Guide · Amazon FSx · File Storage
Amazon FSx for MCP Servers — Choosing Between Lustre, OpenZFS, ONTAP, and Windows File Server
Amazon FSx is a family of fully managed file systems, each built on a battle-tested file system engine: Lustre for HPC and ML, OpenZFS for POSIX snapshots and clones, NetApp ONTAP for multi-protocol hybrid cloud, and Windows File Server for SMB workloads. Unlike Amazon EFS — which provides a single NFS implementation suitable for most shared-storage use cases — FSx gives you specialized engines when EFS's general-purpose profile is not fast enough, doesn't support your protocol, or lacks capabilities like instant clones or cross-region block-level replication. This guide explains when each FSx variant makes sense for MCP server deployments, how the pricing and performance profiles compare to EFS, and the minimal bootstrapping steps for each type.
TL;DR
Use FSx for Lustre when your MCP server needs to load multi-gigabyte ML models at >1 GB/s, or runs batch analytics pipelines fed from S3. Use FSx for OpenZFS when you want EFS-like NFS semantics but also need instant point-in-time snapshots or writable clones for environment isolation. Use FSx for ONTAP when you need the same volume accessible via NFS from Linux containers and SMB from Windows clients simultaneously, or when you need cross-region SnapMirror replication for DR. Use FSx for Windows File Server only if you are integrating with an existing Active Directory environment that requires SMB (Kerberos auth, Windows ACLs, VSS shadow copies). For the majority of MCP server use cases — shared model caches, shared tool artifacts, session state blobs — Amazon EFS is simpler, cheaper, and sufficient.
Why not just use EFS?
EFS's elastic NFS file system handles most MCP server storage patterns well: it scales automatically, charges per GB stored, and supports IAM-based authorization. However, EFS has three key limitations that make FSx the right choice in specific scenarios:
- Throughput ceiling — EFS Elastic throughput mode scales up to ~3 GB/s read per file system, but burst behavior depends on your stored data volume. If you need sustained multi-GB/s throughput for loading large ONNX or GGUF models from dozens of containers in parallel, FSx for Lustre offers up to 1,000 MB/s per TiB of storage with consistent, predictable performance — the defining characteristic of a parallel file system.
- Snapshot and clone gap — EFS has no native snapshot feature as of 2026. AWS Backup can create EFS recovery points, but they restore to a new file system (minutes to hours), not an instant writable clone. FSx for OpenZFS creates instant snapshots and writable clones in milliseconds regardless of data volume, making it ideal for per-developer ephemeral environments that need isolated copies of a 50 GB model cache without copying the data.
- Protocol requirements — EFS speaks NFS v4.1 only. If your workload requires SMB (Windows file shares), iSCSI (block storage for databases), or simultaneous NFS + SMB access to the same data, FSx for ONTAP or FSx for Windows File Server is the only managed option on AWS.
FSx variant comparison
| FSx Variant | File System Engine | Protocols | Typical MCP Use Case | Approx. Storage Price | Complexity |
|---|---|---|---|---|---|
| EFS (baseline) | AWS-proprietary NFS | NFS v4.1 | Shared model caches, session state files, artifacts | $0.30/GB-mo (Standard), $0.016/GB-mo (IA) | Low |
| FSx for Lustre | Lustre 2.x (open-source HPC) | Lustre POSIX (Linux only) | Large ML model loading at >1 GB/s, batch data pipelines | $0.145/GB-mo (Persistent-2), $0.073/GB-mo (Scratch) | Medium |
| FSx for OpenZFS | OpenZFS | NFS v3 / v4.1 | Shared caches with instant snapshots and dev/test clones | $0.09/GB-mo (SSD) | Medium |
| FSx for ONTAP | NetApp ONTAP | NFS + SMB + iSCSI + NVMe-oF | Hybrid cloud multi-protocol, cross-region SnapMirror DR | $0.125/GB-mo (SSD), $0.025/GB-mo (capacity pool) | High |
| FSx for Windows | Windows Server 2019 | SMB v2 / v3, DFS Namespaces | Legacy Windows workloads, AD-integrated file shares | $0.23/GB-mo (SSD), $0.013/GB-mo (HDD) | High |
Note: prices are approximate us-east-1 on-demand rates. Check the AWS FSx pricing page for current per-region rates.
FSx vs EFS: choosing for MCP server storage
The decision tree for most MCP server teams:
- Do you need sustained >500 MB/s throughput to a single file system? → Use FSx for Lustre Persistent-2. EFS Elastic can burst to 3 GB/s but averages lower for small file systems.
- Do you need instant snapshots or clones without data copy? → Use FSx for OpenZFS. EFS has no native clone primitive.
- Do you need SMB or iSCSI? → Use FSx for ONTAP (NFS+SMB) or FSx for Windows (SMB only).
- Do you need cross-region block-level file replication with RPO <15 min? → Use FSx for ONTAP with SnapMirror. EFS replication has RPO ~hours.
- None of the above? → Use Amazon EFS. It is cheaper per GB (Standard tier $0.30 vs Lustre $0.145 per GB-month), serverless (no idle capacity charges), and simpler to operate.
Common infrastructure layout: FSx alongside ECS
The most common FSx pattern in MCP server deployments is a Persistent-2 FSx for Lustre file system pre-loaded with large model files from S3, shared across a fleet of ECS Fargate tasks. Each task mounts the same Lustre file system read-only and benefits from the shared page cache — subsequent reads after the first container's warm-up hit the Lustre cache rather than fetching from S3 again.
# High-level FSx for Lustre setup for model sharing
# 1. Create Persistent-2 file system (us-east-1a, 2.4 TiB, 500 MB/s/TiB)
aws fsx create-file-system \
--file-system-type LUSTRE \
--storage-capacity 2400 \
--subnet-ids subnet-aaa111 \
--security-group-ids sg-fsx \
--lustre-configuration '{
"DeploymentType": "PERSISTENT_2",
"PerUnitStorageThroughput": 500,
"DataCompressionType": "LZ4",
"ImportedFileChunkSize": 1024,
"AutoImportPolicy": "NEW_CHANGED_DELETED",
"DataRepositoryPath": "s3://my-models-bucket/"
}' \
--tags Key=Name,Value=mcp-model-cache
When AutoImportPolicy: NEW_CHANGED_DELETED is set with a data repository association, Lustre uses lazy import (HSM): the metadata is immediately visible via ls but the data blocks are fetched from S3 on first read. This means you do not pay for the full data transfer up front — only the models actually loaded incur S3 GET costs. See the FSx for Lustre deep dive for the full setup including security groups, Fargate task definition volumes, and Node.js client patterns.
Security group requirements for FSx
All FSx file systems live inside your VPC. Each variant uses a different port:
| FSx Variant | Protocol | Port(s) | Direction on client SG |
|---|---|---|---|
| Lustre | Lustre LNET | 988 (TCP + UDP), 1018–1023 (TCP) | Outbound to FSx ENI SG |
| OpenZFS | NFS v3 / v4.1 | 2049 (TCP), 111 (TCP/UDP for portmapper v3) | Outbound to FSx ENI SG |
| ONTAP | NFS + SMB + iSCSI | 2049 (NFS), 445 (SMB), 3260 (iSCSI) | Outbound to FSx SVM ENI SG |
| Windows | SMB | 445 (TCP), 5985 (WinRM for management) | Outbound to FSx ENI SG |
For Lustre, the FSx security group must also allow inbound traffic on ports 988 and 1018–1023 from itself (self-referencing SG rule) because Lustre metadata and storage nodes communicate with each other. If you omit this self-referencing rule, the Lustre file system will fail to initialize.
# Lustre SG: allow inbound from itself (required for internal Lustre communication)
aws ec2 authorize-security-group-ingress \
--group-id sg-fsx-lustre \
--ip-permissions '[
{"IpProtocol":"tcp","FromPort":988,"ToPort":988,"UserIdGroupPairs":[{"GroupId":"sg-fsx-lustre"}]},
{"IpProtocol":"tcp","FromPort":1018,"ToPort":1023,"UserIdGroupPairs":[{"GroupId":"sg-fsx-lustre"}]},
{"IpProtocol":"udp","FromPort":988,"ToPort":988,"UserIdGroupPairs":[{"GroupId":"sg-fsx-lustre"}]}
]'
# Lustre SG: allow inbound from MCP server SG (clients)
aws ec2 authorize-security-group-ingress \
--group-id sg-fsx-lustre \
--ip-permissions '[
{"IpProtocol":"tcp","FromPort":988,"ToPort":988,"UserIdGroupPairs":[{"GroupId":"sg-mcp-server"}]},
{"IpProtocol":"tcp","FromPort":1018,"ToPort":1023,"UserIdGroupPairs":[{"GroupId":"sg-mcp-server"}]}
]'
IAM and resource-based access control
Unlike EFS, FSx file systems do not natively integrate IAM authorization at the mount level for most variants. Access control is handled differently per variant:
- FSx for Lustre — IAM controls who can call the FSx API (create/describe/delete file systems) but not who can read/write files. File access is controlled by standard POSIX permissions and Lustre client authentication based on the VPC security group. Restrict access via SG rules (only trusted instances/tasks in the FSx SG can mount).
- FSx for OpenZFS — Same as Lustre: IAM for API, SG for network access, NFS export policies for client IP-based access. OpenZFS volumes can restrict NFS exports to specific CIDR blocks.
- FSx for ONTAP — ONTAP has its own access control layer: export policies for NFS (similar to NFS server exports), CIFS share ACLs for SMB, and iSCSI LUN masking. IAM controls the FSx API layer. For NFS, the ONTAP export policy restricts by client IP; combine with SG rules for defense in depth.
- FSx for Windows — Uses Windows ACLs (NTFS permissions) and Active Directory for authentication. Every client must be domain-joined (or use AD credentials). IAM controls the API layer only.
For all FSx variants, the minimum IAM policy needed to create and manage file systems (not to mount them) is:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"fsx:CreateFileSystem",
"fsx:DescribeFileSystems",
"fsx:DeleteFileSystem",
"fsx:CreateDataRepositoryAssociation",
"fsx:DescribeDataRepositoryAssociations",
"fsx:CreateVolume",
"fsx:DescribeVolumes",
"fsx:CreateSnapshot",
"fsx:DescribeSnapshots"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"ec2:DescribeSubnets",
"ec2:DescribeSecurityGroups",
"ec2:DescribeVpcs",
"ec2:CreateNetworkInterface",
"ec2:DeleteNetworkInterface",
"ec2:DescribeNetworkInterfaces"
],
"Resource": "*"
}
]
}
Deployment patterns: single-AZ vs multi-AZ
FSx file system availability depends on the deployment type:
| Variant | Single-AZ | Multi-AZ | Notes |
|---|---|---|---|
| Lustre Scratch | Yes (only option) | No | Temporary; data not replicated; data loss if AZ fails |
| Lustre Persistent-1 / -2 | Yes (only option) | No | Data replicated within AZ; survives hardware failure, not AZ failure |
| OpenZFS Single-AZ | Yes | No (as of 2026) | Replication within AZ; data persists across instance failures |
| ONTAP Single-AZ | Yes | No | Pair of ONTAP nodes in same AZ; HA but not AZ-resilient |
| ONTAP Multi-AZ | No | Yes | Active/standby nodes across two AZs; automatic failover <30s |
| Windows Single-AZ | Yes | No | — |
| Windows Multi-AZ | No | Yes | Active/standby; automatic failover <30s |
For MCP server deployments that need high availability, the FSx for ONTAP Multi-AZ deployment is the only FSx option that provides AZ-level resilience. All Lustre and OpenZFS deployments are single-AZ — if the AZ goes down, your file system is unavailable until AWS restores it. Mitigate this for Lustre by using S3 data repository associations so your data always has a durable copy in S3; the file system itself is a cache layer.
Monitoring FSx with CloudWatch
All FSx variants emit metrics to CloudWatch. The most useful ones for MCP servers:
| Metric | Variants | What to alarm on |
|---|---|---|
DataReadBytes / DataWriteBytes | All | Alert if read throughput drops to zero unexpectedly (mount disconnected) |
StorageCapacityUtilization | All | Alert at >80% — FSx does not auto-expand like EFS; you must resize manually |
FileServerDiskThroughputUtilization | Windows, ONTAP | Alert at >90% sustained — indicates throughput saturation |
ClientConnections | Windows, ONTAP | Useful for capacity planning; alert if it drops to 0 unexpectedly |
FreeDataStorageCapacity | Lustre | Alert at <500 GB — Lustre Scratch cannot be expanded after creation |
import { CloudWatchClient, PutMetricAlarmCommand } from "@aws-sdk/client-cloudwatch";
const cw = new CloudWatchClient({ region: "us-east-1" });
// Alert when FSx Lustre storage is 80% full
await cw.send(new PutMetricAlarmCommand({
AlarmName: "fsx-lustre-storage-80pct",
Namespace: "AWS/FSx",
MetricName: "StorageCapacityUtilization",
Dimensions: [{ Name: "FileSystemId", Value: "fs-0abc123def456" }],
Statistic: "Average",
Period: 300,
EvaluationPeriods: 2,
Threshold: 80,
ComparisonOperator: "GreaterThanOrEqualToThreshold",
AlarmActions: ["arn:aws:sns:us-east-1:123456789012:ops-alerts"],
TreatMissingData: "notBreaching",
}));
When to stay on EFS
FSx variants carry operational overhead that EFS does not: you must provision a fixed storage capacity, monitor utilization, and resize manually (Lustre Scratch cannot be resized at all). EFS charges per GB stored with no provisioned capacity, and Elastic throughput mode eliminates the need to predict peak throughput. For typical MCP server workloads — a 2–10 GB shared model cache, shared session blobs under a few hundred MB, shared report artifacts — EFS is the right default. The FSx upgrade path only makes sense when:
- You have measured EFS latency or throughput as an actual bottleneck, not a theoretical concern.
- You need snapshot/clone semantics that AWS Backup cannot provide fast enough for your workflow.
- You have an existing ONTAP or Windows Server infrastructure that you are lifting into AWS.
See the EFS guide at Amazon EFS for MCP Servers for the simpler default setup.
Related guides
- FSx for Lustre: high-performance ML model loading and S3 data repositories
- FSx for OpenZFS: POSIX snapshots and clones for MCP server dev/test isolation
- FSx for ONTAP: multi-protocol NFS+SMB and SnapMirror cross-region replication
- Amazon EFS for MCP Servers: shared persistent storage, mount targets, and access points
- EFS performance modes: Bursting, Elastic, and Provisioned throughput
- Running MCP servers on EC2: instance profiles, IMDSv2, security groups
- MCP server uptime monitoring