SkillSprout
Chapter 10 · Lesson 3
Intermediate
7 min read

Moving and Sharing Data: DataSync, Storage Gateway, FSx, EFS and S3 Transfer

Overview

Operations teams constantly move and share data: migrate a file server to AWS, replicate on-premises backups, give many servers a common file system, or speed up uploads from distant offices. AWS provides purpose-built services for each job. The SOA-C03 guide lists DataSync, Storage Gateway, FSx, EFS and S3 performance features such as Transfer Acceleration and multipart upload, and asks you to evaluate and select shared storage for specific requirements.

Picture a removals company. DataSync is the fast moving van that transfers the contents of one building to another on a schedule and checks nothing was broken. Storage Gateway is a local pantry in your office that quietly stocks itself from a big warehouse (AWS). EFS and FSx are shared filing rooms: a simple Linux one that grows automatically (EFS) and specialised ones for Windows, HPC and enterprise NAS (FSx).

The exam rewards matching the protocol and workload (NFS, SMB, Lustre, iSCSI) to the right service.

Key Concepts

  • AWS DataSync automates and accelerates online transfers between on-premises (NFS, SMB, HDFS, object stores), other clouds and AWS (S3, EFS, FSx); uses an agent on premises, supports scheduling, bandwidth limits, filters and integrity verification.
  • Storage Gateway provides hybrid access: S3 File Gateway (NFS/SMB to S3 with local cache), Volume Gateway (iSCSI, cached or stored volumes with EBS snapshots) and Tape Gateway (virtual tape library to S3/Glacier).
  • Amazon EFS: elastic NFS for Linux, multi-AZ by default; performance modes (General Purpose, Max I/O), throughput modes (Elastic, Provisioned, Bursting) and lifecycle management to Infrequent Access and Archive.
  • Amazon FSx family: Windows File Server (SMB, Active Directory), Lustre (HPC, S3-linked), NetApp ONTAP (multi-protocol, snapshots), OpenZFS (NFS, low latency).
  • S3 performance: multipart upload (recommended above 100 MB, required above 5 GB, up to 10,000 parts), Transfer Acceleration (edge-optimised uploads), byte-range fetches, request-rate scaling with prefixes, Lifecycle rules.
  • Amazon S3 Files (newer feature named in the exam guide) presents S3 data as a shared file system for compute; confirm current capabilities and limits in AWS documentation.
  • AWS Snow family, Transfer Family (SFTP/FTPS into S3/EFS) and DMS (databases) are related options for offline and protocol-specific transfers.
  • Versioning and backup: S3 versioning, FSx daily backups and shadow copies, EFS backups through AWS Backup.

Detailed Notes

Choose the right service

NeedServiceWhy
One-time or scheduled bulk copy NFS/SMB to S3/EFS/FSxDataSyncFast, verified, managed
On-premises apps need local-latency access to S3-backed filesS3 File GatewayCache + NFS/SMB
Block storage backup/DR from on-premises via iSCSIVolume GatewaySnapshots in AWS
Replace physical tapesTape GatewayWorks with backup software
Linux shared POSIX file system for EC2/ECS/LambdaEFSElastic, multi-AZ
Windows shared drive with AD and SMBFSx for WindowsNative Windows features
HPC/ML scratch with high throughputFSx for LustreHundreds of GB/s, S3 link
Existing NetApp workflowsFSx for ONTAPNFS/SMB/iSCSI, snapshots
SFTP partner uploadsTransfer FamilyManaged SFTP endpoint

DataSync workflow

bash
aws datasync create-location-nfs --server-hostname nas.corp.local --subdirectory /export/data \
  --on-prem-config AgentArns=arn:aws:datasync:us-east-1:111122223333:agent/agent-0abc
aws datasync create-location-s3 --s3-bucket-arn arn:aws:s3:::corp-archive --s3-storage-class STANDARD_IA \
  --s3-config BucketAccessRoleArn=arn:aws:iam::111122223333:role/DataSyncS3
aws datasync create-task --source-location-arn <nfs-arn> --destination-location-arn <s3-arn> --name nightly \
  --options VerifyMode=ONLY_FILES_TRANSFERRED,TransferMode=CHANGED,BytesPerSecond=104857600 \
  --schedule ScheduleExpression="cron(0 2 * * ? *)"
aws datasync start-task-execution --task-arn <task-arn>
IssueLikely cause
Agent offline / cannot activateNetwork path to DataSync endpoints (443) or activation Region mismatch
Task slowSingle task limit, bandwidth throttle set, small-file overhead; use more tasks or enhanced mode
Permission denied on destinationRole lacks bucket access or the NFS export squashes root
Files skippedInclude/exclude filters, unsupported file names, changed-only mode

Storage Gateway quick reference

GatewayProtocolData livesUse
S3 FileNFS, SMBS3 objectsFile shares backed by S3, local cache
Volume (cached)iSCSIS3 with local cachePrimary data in cloud, hot set local
Volume (stored)iSCSIOn premises, async snapshots to S3Low-latency full local copy plus DR
TapeiSCSI VTLS3 / GlacierTape backup replacement

Gateways run as VM images (VMware, Hyper-V, KVM), as EC2, or hardware appliances. Monitor CacheHitPercent, CachePercentDirty and UploadBufferPercentUsed in CloudWatch; a full cache or upload buffer slows or blocks writes.

EFS operations

bash
aws efs create-file-system --performance-mode generalPurpose --throughput-mode elastic --encrypted \
  --tags Key=Name,Value=shared-content
aws efs put-lifecycle-configuration --file-system-id fs-0abc --lifecycle-policies \
  TransitionToIA=AFTER_30_DAYS TransitionToPrimaryStorageClass=AFTER_1_ACCESS TransitionToArchive=AFTER_90_DAYS
sudo mount -t efs -o tls fs-0abc:/ /mnt/efs     # uses the amazon-efs-utils mount helper
  • Mount targets are per AZ; the security group must allow TCP 2049 from clients.
  • Elastic throughput suits spiky workloads; Provisioned for steady high throughput; Bursting scales with size.
  • IA and Archive classes with lifecycle policies cut storage cost for cold files; intelligent tiering moves files back on access.
  • Throttling shows in PercentIOLimit (General Purpose) and BurstCreditBalance (Bursting).

FSx notes

FSx typeKey operational points
WindowsJoin AD, Multi-AZ option, shadow copies for versioning and user restores, daily backups, DFS namespaces
LustreScratch (temporary, no replication) vs Persistent; link to S3 and hsm/data repository tasks; size sets throughput
ONTAPSnapMirror, FlexClone, tiering to capacity pool; multi-protocol
OpenZFSNFS, snapshots and clones, very low latency

S3 performance toolbox

bash
aws s3api put-bucket-accelerate-configuration --bucket global-uploads --accelerate-configuration Status=Enabled
aws s3 cp big.iso s3://global-uploads/ --endpoint-url https://global-uploads.s3-accelerate.amazonaws.com
aws configure set default.s3.multipart_threshold 64MB
aws configure set default.s3.max_concurrent_requests 20
aws s3api list-multipart-uploads --bucket global-uploads      # find incomplete uploads that cost money

Add a lifecycle rule with AbortIncompleteMultipartUpload (for example after 7 days). Transfer Acceleration is billed per GB and only helps long-distance transfers; test with the speed comparison tool before enabling. Use S3 Batch Operations and S3 Replication for large re-organisations and copies.

Real World Example

Scenario – file-server migration. A media company has 60 TB on an on-premises NAS shared by editors on Windows and a render farm on Linux. They use DataSync with an on-premises agent to copy to FSx for Windows File Server (editor home drives) and FSx for Lustre (render scratch linked to S3). Nightly incremental tasks run until cutover.

Branch offices keep local access to archives through an S3 File Gateway. Website image uploads from remote photographers use S3 Transfer Acceleration and multipart upload, with a lifecycle rule to abort incomplete uploads. EFS with lifecycle management holds shared configuration for containers, moving cold files to IA after 30 days.

Architecture Diagram

Hybrid data movement and sharing
Architecture
Hybrid storage
On-premises NASNFS / SMB
S3
FSxWindows / Lustre
EFSlifecycle to IA
Storage Gateway
  1. 1Deploy a DataSync agent near the source and create locations and a scheduled task.
  2. 2DataSync copies and verifies data into S3, EFS or FSx.
  3. 3Choose FSx (Windows, Lustre) or EFS for shared access by protocol and workload.
  4. 4Use Storage Gateway where on-premises apps need local-latency access backed by AWS.
  5. 5Apply lifecycle, backup and monitoring to control cost and protect the data.

Best Practices

  • ✓Use DataSync for bulk and scheduled migrations; throttle bandwidth and enable verification.
  • ✓Match protocol to service: NFS/Linux -> EFS, SMB/AD -> FSx Windows, HPC -> Lustre, iSCSI -> Volume Gateway.
  • ✓Enable EFS lifecycle policies and pick the throughput mode that matches the workload; protect with AWS Backup.
  • ✓Add a lifecycle rule to abort incomplete multipart uploads and use Transfer Acceleration only where measurements justify it.
  • ✓Monitor gateway cache and upload buffer metrics and size the local disks properly.

Common Interview Questions

Exam Tips

SOA-C03 focus

  • Online bulk migration NFS/SMB -> S3/EFS/FSx with verification -> DataSync; offline petabytes -> Snow family.
  • On-premises cache to S3 over NFS/SMB -> S3 File Gateway; iSCSI volumes with snapshots -> Volume Gateway.
  • Linux shared POSIX storage -> EFS (TCP 2049); Windows SMB -> FSx for Windows; HPC -> FSx for Lustre.
  • Large objects: multipart upload; distant clients: Transfer Acceleration; cleanup: AbortIncompleteMultipartUpload.

Finished this lesson?

0 of 46 lessons done · 0% of the course