16.8 S3 Glacier: Deep Archive Retrieval Options and Vault Lock

Right, let’s talk about Glacier. You’ve shoved your data into the S3 Glacier Deep Archive, the coldest of cold storage, because it costs about as much as a forgotten can of beans at the back of your pantry. Excellent. But now you need it back. This is where the fun begins, and by “fun” I mean a process designed to make you really question if you need that data after all. Retrieval isn’t like pulling a file from S3 Standard; it’s more like sending a request to a warehouse staffed by a single, very meticulous, and somewhat slow robot.

16.7 FSx for NetApp ONTAP and FSx for OpenZFS

Right, so you’ve decided you need a proper filesystem in AWS, not just the “it’s fine, I guess” of EFS. Good choice. But now you’re staring at the FSx menu, and it’s less “choose your fighter” and more “choose your very specific, expensive, and slightly confusing fighter.” Let’s demystify the two options that look the most like the filesystems you’d run on-prem: FSx for NetApp ONTAP and FSx for OpenZFS.

16.6 FSx for Lustre: High-Performance Parallel File System for HPC and ML

Right, so you need to go fast. Not “my-internet-is-out-and-I’m-trying-to-watch-a-video” fast. We’re talking about the kind of speed that makes physicists nervous. You’re probably here because you’re dabbling in high-performance computing (HPC), machine learning (ML) on a massive dataset, or maybe you’re just a performance junkie. Welcome. FSx for Lustre is your new best friend, a fully managed parallel file system that Amazon basically yanked out of a supercomputing center and shoved into a data center rack for you. It’s obscenely fast, and it’s built for the specific use case where many computers need to read and write to the same storage at the same time without tripping over each other.

16.5 FSx for Windows File Server: SMB Shares for Windows Workloads

Alright, let’s talk about FSx for Windows File Server. You’re here because you need a fully managed, native Windows file share in the cloud, and you don’t want the headache of babysitting a file server VM. I get it. Patching Windows Server is nobody’s idea of a good time. FSx is basically AWS saying, “Fine, we’ll deal with the WSUS updates and DEFRAG.EXE nonsense, you just focus on your application.”

16.4 EFS Access Points: Application-Specific Entry Points with POSIX Identity

Right, so you’ve got your EFS file system mounted. It’s a big, beautiful, shared POSIX file system sitting in your VPC. Wonderful. Now, how do you actually use it? If you let every application and user just run wild on the root of the file system, you’re going to have a bad time. It’s the digital equivalent of a shared house with no room doors—chaos, missing milk, and someone’s weird stuff everywhere.

16.3 EFS Throughput Modes: Bursting, Provisioned, and Elastic

Alright, let’s talk about EFS throughput. This isn’t just some abstract setting you flip on; it’s the fundamental lever you pull to control how your file system breathes. Get it wrong, and you’ll either be paying for a firehose when you need a sippy cup, or you’ll be throttled into the stone age right when your application needs to sprint. We have three modes: Bursting, Provisioned, and Elastic. Let’s break them down like we’re diagnosing a weird performance bug.

16.2 EFS Performance Modes: General Purpose vs Max I/O

Right, so you’ve decided to use Amazon EFS. Good choice. It’s the “just put the files here and stop worrying about which server they’re on” service. But now you’re staring at this “Performance Mode” setting and wondering if this is where they get you. It’s not a trap, but it is a choice that matters. Let’s demystify it. The performance mode isn’t about speed in a “my Lamborghini goes 200 mph” sense. It’s about scalability and latency under a very specific condition: highly parallel operations. You’re choosing the rules of engagement for how the file system handles a torrent of requests. There are two modes, and the difference between them is the single most important thing to get right.

16.1 EFS: Managed NFS for Linux Workloads Across Multiple AZs

Alright, let’s talk about EFS, or Elastic File System. Think of it as the grown-up, cloud-native answer to the classic NFS share you’d cobble together in a server room. You know the one—constantly running out of space, performance is a crapshoot, and its uptime depends on a single physical box and your team’s willingness to answer 3 a.m. pages. EFS takes that concept, throws out the physical hardware, and gives you a managed, highly available, and scaling network file system that can be accessed by thousands of EC2 instances, Lambda functions, and on-prem servers (via Direct Connect or VPN) simultaneously. It’s NFS for the cloud era, and it’s almost magic. Almost.

37.7 smbclient and mount.cifs: Accessing Windows Shares from Linux

Right, so you’ve got a Linux machine and you need to get at files on a Windows share. Welcome to one of the most common, yet perpetually fiddly, tasks in cross-platform sysadmin life. We’re going to bypass the GUI file manager stuff—because you’re not here to click buttons, you’re here to understand—and talk about the two heavy hitters: the nimble smbclient and the steadfast mount.cifs. The Quick and Dirty: smbclient Think of smbclient as the SMB version of an old-school FTP client. It’s your go-to for a quick one-off file transfer, a directory listing, or when you just can’t be bothered to set up a full mount. It’s a Swiss Army knife that’s probably already installed on your system.

37.6 smb.conf: Shares, Workgroup, and Authentication

Right, let’s get our hands dirty with smb.conf. This file is the beating heart of your Samba server, and it’s where you’ll either achieve glorious cross-platform file-sharing nirvana or descend into a frustrating hellscape of authentication errors. I’m here to make sure it’s the former. Think of smb.conf not as a monolithic config, but as a set of Russian nesting dolls. The outermost doll is [global], which sets the rules for the entire server. Inside that, you define your individual share dolls, like [Documents] or [PrinterShare]. A setting in a share can override the global setting, but if you don’t set it there, it inherits from [global]. This structure is your best friend and will keep you from repeating yourself.

37.5 Samba Overview: SMB/CIFS for Windows Interoperability

Alright, let’s talk about Samba. You know that feeling when you’re at a party and two groups of people just can’t seem to talk to each other? That’s your network. Over in the corner, you have the Unix-like systems (Linux, macOS) speaking the native tongue of POSIX permissions and NFS. And then there’s the Windows crowd, holding court in the center of the room, chatting away in a proprietary dialect called SMB. They don’t mean to be difficult; it’s just how they were raised.

37.4 NFS Security: Host-Based Access and Kerberos

Right, let’s talk about securing NFS. The default setup, which relies on hostnames and UID matching, is what I like to call “optimistically insecure.” It trusts the client to tell it who a user is. This is like a nightclub where the bouncer just asks, “You’re on the list, right?” and takes your word for it. It’s fine for a homogenous, trusted network (like a 1995 lab), but in the modern world, it’s a gaping hole. We’re going to fix that by moving from this “host-based” trust to actual user authentication with Kerberos.

37.3 Mounting NFS Shares: mount and /etc/fstab

Alright, let’s get you connected to that NFS share. The mount command is your Swiss Army knife here, but like any good tool, you can use it for quick jobs or set it up for permanent, reliable work. We’re going to cover both: the quick-and-dirty on-the-fly mount and the proper, “I don’t want to do this every reboot” method using /etc/fstab. The On-the-Fly mount Command Think of the mount command as a temporary hookup. It’s great for testing a share or for a one-off data transfer, but it won’t survive a reboot. The basic syntax is deceptively simple, which is where most of the pitfalls hide.

37.2 Setting Up an NFS Server: /etc/exports and exportfs

Alright, let’s get our hands dirty. Setting up an NFS server isn’t rocket science, but it’s one of those tasks where the devil is absolutely in the details. Get one tiny syntax error in the config file and you’ll be staring at Permission denied errors until you question your life choices. I’ve been there. We’re going to avoid that. The heart and soul of your NFS server is the /etc/exports file. This is where you declare which directories on your server you want to share (to “export”) and exactly which clients are allowed to mount them, and with what permissions. The syntax is deceptively simple, which is why it bites so many people.

37.1 NFS Overview: Network File System Versions (v3 vs v4)

Alright, let’s talk about NFS versions. This isn’t just a matter of bigger numbers being better; it’s a fundamental shift in philosophy. The jump from v3 to v4 is like trading in a trusty, greasy socket set for a brand new, all-in-one, computerized tool kit. The old one is simple and you know exactly how it breaks, but the new one can do things the old one could only dream of, provided you read the manual and don’t mind the occasional proprietary bolt.

— joke —

...