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:

  1. 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.
  2. 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.
  3. 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:

  1. 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.
  2. Do you need instant snapshots or clones without data copy? → Use FSx for OpenZFS. EFS has no native clone primitive.
  3. Do you need SMB or iSCSI? → Use FSx for ONTAP (NFS+SMB) or FSx for Windows (SMB only).
  4. Do you need cross-region block-level file replication with RPO <15 min? → Use FSx for ONTAP with SnapMirror. EFS replication has RPO ~hours.
  5. 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 VariantProtocolPort(s)Direction on client SG
LustreLustre LNET988 (TCP + UDP), 1018–1023 (TCP)Outbound to FSx ENI SG
OpenZFSNFS v3 / v4.12049 (TCP), 111 (TCP/UDP for portmapper v3)Outbound to FSx ENI SG
ONTAPNFS + SMB + iSCSI2049 (NFS), 445 (SMB), 3260 (iSCSI)Outbound to FSx SVM ENI SG
WindowsSMB445 (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:

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:

VariantSingle-AZMulti-AZNotes
Lustre ScratchYes (only option)NoTemporary; data not replicated; data loss if AZ fails
Lustre Persistent-1 / -2Yes (only option)NoData replicated within AZ; survives hardware failure, not AZ failure
OpenZFS Single-AZYesNo (as of 2026)Replication within AZ; data persists across instance failures
ONTAP Single-AZYesNoPair of ONTAP nodes in same AZ; HA but not AZ-resilient
ONTAP Multi-AZNoYesActive/standby nodes across two AZs; automatic failover <30s
Windows Single-AZYesNo—
Windows Multi-AZNoYesActive/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:

MetricVariantsWhat to alarm on
DataReadBytes / DataWriteBytesAllAlert if read throughput drops to zero unexpectedly (mount disconnected)
StorageCapacityUtilizationAllAlert at >80% — FSx does not auto-expand like EFS; you must resize manually
FileServerDiskThroughputUtilizationWindows, ONTAPAlert at >90% sustained — indicates throughput saturation
ClientConnectionsWindows, ONTAPUseful for capacity planning; alert if it drops to 0 unexpectedly
FreeDataStorageCapacityLustreAlert 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:

See the EFS guide at Amazon EFS for MCP Servers for the simpler default setup.

Related guides