Chapter 13: Amazon EBS (Elastic Block Store)
Common Mistakes I See Students Make
- Creating the volume in a different AZ from the instance — it simply won't appear in the attach list.
- Running
mkfson a volume that already has data (e.g. restored from a snapshot) and wiping it. - Using
/dev/sdfor/dev/nvme1n1in fstab instead of the UUID. - Forgetting
nofailand the instance hangs at boot when the volume is missing. - Running
resize2fson an XFS filesystem (usexfs_growfs) or givingxfs_growfsa device instead of the mount point. - Forgetting the space in
growpart /dev/nvme0n1 1. - Detaching without unmounting, risking data corruption.
- Leaving unattached volumes and old snapshots that keep costing money.