Chapter 13: Amazon EBS (Elastic Block Store)
Common Mistakes I See Students Make
Friends, I see these EBS mistakes in every batch. Check the Availability Zone, identify the existing data before formatting, and verify the persistent mount. A usable backup may be the only way to recover after a mistaken change.
मित्रांनो, EBS च्या या चुका मी प्रत्येक बॅचमध्ये बघतो. Availability Zone, format आधी existing data आणि persistent mount तपासा. चूक झाल्यावर usable backup वरून restore करावा लागू शकतो.
दोस्तों, EBS की ये गलतियाँ मैं हर बैच में देखता हूँ. Availability Zone, format से पहले existing data और persistent mount जाँचो. ग़लत बदलाव के बाद recovery के लिए usable backup की ज़रूरत पड़ सकती है.
- Choosing a different Availability Zone. The volume and the target instance must be in the same zone for attachment.
- Running
mkfson a volume that already has data (e.g. restored from a snapshot) and wiping it. - Relying on an enumerated device name for a persistent mount. Confirm the filesystem identity and consider duplicate UUIDs after a block copy.
- Assuming one boot policy fits every disk. Choose whether the mount is optional to boot and test the application’s own dependency on the actual data.
- Running
resize2fson an XFS filesystem (usexfs_growfs) or givingxfs_growfsa device instead of the mount point. - Giving growpart the wrong layer. When the actual layout requires a partition grow, pass the confirmed whole-device path and partition number as separate arguments.
- Detaching a data volume before quiescing writers and unmounting. Follow the applicable data-volume procedure. For root volume detachment, plan an instance stop.
- Overlooking storage charges or deleting a needed recovery point. Review the owner, use, retention and dependencies before authorizing cleanup.
Start with the symptom and protect the data
A training lab can make a storage problem look like one incorrect command. In a real service it is often a mistaken assumption carried across several layers. The ticket says the new disk is attached, the path exists and the application shows yesterday's transactions. Each observation can be true even though the application is reading from the wrong storage. An attachment connects cloud storage to a server. A path is a name through which software reaches a directory. The directory can exist before the intended disk is mounted there. An old report can appear in both copies. Before deciding what to change, trace the operation from the desired data to the evidence that identifies it.
Work with a single example called the evening dispatch service. Staff enter delivery orders and generate a completed list for drivers. The service runs on a Linux EC2 instance with a system disk and a separate data disk. The system disk contains Linux, the app and logs. The data filesystem is intended to supply the directory /srv/dispatch. Suppose the operator sees the expected path and the screen opens, but the orders count falls from forty-eight to forty-three after a restart. This discrepancy deserves investigation even though the web page works. One output verifies that the server answered. A second output must establish that the answer includes the intended version of the data.
If another operator asks you to format the additional disk because the five latest orders are missing, suspend that change while you identify the media. Formatting creates a new filesystem, changing metadata that describes where existing data lives. It does not merge two copies or import missing records. Choosing the correct disk and deciding that its existing contents can be overwritten are separate approvals. An attachment list cannot tell you either the business value of its contents or which files the application is currently using. Preserve both possible sources and document the observed actions and timestamps before altering either.
Use the following order when a storage task turns into an investigation. State which application operation should work and choose one read that shows it with minimal side effects. Establish which account, Region, instance and volume the plan names. Map that cloud storage to the observed guest device and filesystem. Check the source currently serving the app's path in its own execution environment. Review snapshot and service conditions before deciding on a change. If you cannot establish the identity of the target, stop the mutation and continue gathering evidence. A successful command applied to the wrong object can make the original problem harder to recover.
Recognize a placement problem before entering the guest
The dispatch instance is in one Availability Zone and a new disk holds a recovered copy of its orders. An Availability Zone is an area within a Region where related resources can be placed. An EBS volume and the EC2 instance to which it attaches must be in the same Availability Zone. If this test volume was created from a snapshot in another zone, the attachment request cannot connect them. Checking partitions, mounting directories or opening inbound security rules cannot change that placement. In an account with similar resource labels, check the recorded instance and volume identifiers as well as their placement and ownership.
Verify the context first. Look at the Region selected in the EC2 console or used by the approved CLI profile, the account for the instance and the resource identifiers from the change approval. Compare the zone of the known instance with the zone on the volume. A Region contains several zones. Seeing the right Region attached to both objects is necessary information, while the zone still determines whether the requested attachment can proceed. Cloud records may show the desired old disk belongs to a different server, so assess every proposed attachment as a relationship between two specific resources.
Plan recovery from a suitable recovery point, using the destination zone for the restored volume. For a recovery in another Region, ensure the target Region has a usable snapshot copy with approved encryption and access. After restore, the new volume has a different EBS ID. Update the change record with its relationship to the source snapshot and verify the intended, approved attach target. This is a fresh, separate storage copy. Changes written to the original volume after the selected recovery point will not arrive automatically in this copy. A migration that requires more recent changes must explicitly preserve or reconcile them.
Check what the snapshot represents before selecting it. If the dispatch database was writing updates and the copy came from an ordinary block-level snapshot, follow the application's recovery procedure and confirm that the data version is safe to use. In the classroom example a restored fixture can be tested with a known order ID. In a real environment application recovery may include a consistency check, logs or a supported backup procedure. The fact that a new volume is now attachable answers the infrastructure placement question. It still leaves the data question to be verified.
Read the parent disk, filesystem and mount as separate identities
Imagine two staff members compare notes after the recovery. The cloud console says the requested volume was attached as /dev/sdf. On the instance the device appears as /dev/nvme2n1. These can describe the same disk at different layers. For a Nitro-based EC2 instance presenting EBS as NVMe, the guest enumerates devices in discovered order. The number can differ after a restart and after other devices are introduced. Record the cloud volume ID and correlate it to the NVMe controller identity or serial. Use the exact supported procedure for the distribution running on the instance.
Then inspect what the device contains. A block disk may contain a partition table separating the device into regions. Within one partition a filesystem organizes named files and directories. A volume can also hold a filesystem on the entire device. Some layouts place additional layers such as encryption or a logical volume between the disk and the filesystem. The parent disk ID, the filesystem UUID and the application path answer three different questions. A useful inventory records the connection from the actual parent device to the filesystem source to the application mount. When a change plan names a partition, ask which confirmed parent device contains it.
In an approved Linux inspection, lsblk reports the block-device tree and values such as the device type, size, filesystem type, serial and observed mount points. The serial on the parent disk is especially useful for mapping EBS on Nitro. Compare it with the expected volume ID, noting that a displayed serial can omit the hyphen. findmnt --target /srv/dispatch identifies the filesystem providing that path if it exists. Its target might be /, which means the path is on the root mount in that context. The target might instead be a separate mount at /srv/dispatch, or an ancestor such as /srv. Read both the target and the source before interpreting the result.
A mounted filesystem with the correct UUID can still come from the wrong EBS volume. A block-level copy can preserve the UUID because that value is part of the filesystem data. Two volumes restored from the same source can therefore compare equal on UUID while holding different later changes. In a planned operation that might bring both into the same system, follow the administration procedure for the actual filesystem and test layout. Some filesystem and mounting tools reject duplicate identities or make source selection ambiguous. Keep the copies separated when their identities conflict, and verify the EBS source before trusting an automatic mount.
Have the trainee read this example aloud. The instance runs a confirmed Nitro type. The target path lives on an XFS filesystem on partition one. The partition appeared beneath the device with serial corresponding to the approved data volume. The root mount belongs to a different parent volume. The selected workbook sample is present. If any part of this report changes after restart, you can repeat the observation from the EBS ID and the application context. The description stays meaningful even if the device number is newly assigned.
Detect a missing mount even when the directory exists
Suppose the team made /srv/dispatch during setup. If the separate data disk is unmounted, Linux can still resolve that directory on the root filesystem. If the dispatch service has permission to create files there, new orders may go inside the underlying directory instead of the intended data filesystem. When the correct filesystem is mounted again over that location, those fallback files are hidden by the new mount. It can seem as if orders appeared and disappeared as the server restarted. A mount changes which filesystem supplies a directory tree. It does not automatically combine the displaced files with those on the separate disk.
When you see this effect, avoid restarting the writer repeatedly to reproduce it. Freeze the operation under the appropriate incident procedure and collect read-only measurements from the affected process environment. Container and service mount namespaces can expose a different path view from the administrator's shell. Check whether the process uses the expected data directory, which filesystem appears under it, and what application's own observation shows. If one copy has received writes during a fallback period, assign someone to reconcile those records through the application's documented process. Simply mounting over it leaves the original independent copies in place.
A persistent mount entry in /etc/fstab describes the planned filesystem and where it should appear. It does not prove the runtime mount succeeded. A device identifier selected for persistence should remain meaningful across enumeration changes, with clones accounted for. A boot policy may allow a machine to continue when an optional mount is unavailable. On systemd-based Linux, a service can separately declare the mounts it requires through a dependency such as RequiresMountsFor=. The appropriate path, exact dependency semantics and failure behavior are part of the approved design. Review owner and distribution documentation before applying boot changes. Bring up the application only when the expected data source is established if it requires that source.
Observe the dispatch service's ready check after an approved boot. A simple HTTP reply from the process can show that the web server started. For a data-sensitive service, a useful ready check also confirms the conditions needed to handle work. It might validate the mounted source as seen by the process and perform an approved small read. Give the operator a way to see that the service intentionally refused to start when the dependency was missing. Choosing the desired degraded mode is part of the design. The same optional archive disk may allow ordinary order work to continue while the service that imports older reports pauses.
Before testing a persistent change, document a recovery path to access the guest if boot fails and identify the owner for the disk and app. Keep the exact prior mount configuration for a narrow revert. Plan the test for a window where a failed mount will not send unintended writes to the system disk. Document which source provided the sample before and after, the desired service state, and the response to a missing dependency. This procedure avoids learning about the missing mount after staff have recorded new work.
Follow free space through the layer that actually limits it
The cloud console now shows 80 GiB for the dispatch volume. The guest path shows about the same space as before. First confirm that it is the right volume and that the modification reached a state where the expanded size is usable. The Linux block device, partition, any management layers and filesystem each expose a particular size. If the raw disk reports 80 GiB while its app partition is still 40 GiB, the filesystem cannot use capacity outside the partition. If the partition is already larger but the filesystem still reports its earlier size, the next reviewed procedure must apply to the right filesystem within it. The tool and argument vary with the actual layout and filesystem.
As an exercise, a colleague reports that growth failed because df -h shows 39 GiB. Ask whether that measurement is the size of the right mount and whether previous results were recorded the same way. Usable filesystem capacity need not equal raw disk capacity because formatting adds overhead. Human-readable output can round values. For a command-based investigation choose units and comparison methods intentionally. With the expected mount confirmed, compare the stages in their order. An unexpected value at the earliest stage is a clue to resolve before acting on a downstream stage.
For a simple Linux layout, growpart takes the confirmed whole-device path and partition number as separate arguments. It applies to a relevant existing partition in a supported layout. It has no partition to extend on a filesystem built directly on a disk. Ext4 and XFS use different grow procedures. In the current AWS Linux instructions the XFS tool works with the confirmed mounted filesystem path. If you see LVM, encryption, RAID or another intermediate mapping, inspect those specific layers and follow their supported runbook. Repeating a copied grow command from another host can target the wrong disk even when it is syntactically valid.
Space for bytes also differs from space for filesystem entries. A filesystem may still have byte capacity but run out of inodes under a workload that creates a very large number of files. An application quota can independently prohibit further writes. Read the actual error, inspect the filesystem relevant to the app, and ask about the growth pattern. Ledger applications may accumulate small outputs, while a scheduled report can require space for a large working copy. Choose a change that addresses the observed limit. An increase intended to fix poor write latency deserves a separate performance investigation instead of being treated as equivalent to new byte capacity.
Avoid buying a faster disk before locating the bottleneck
Consider a dispatch slowdown when staff preview reports while a nightly import writes data. The EBS data disk has enough space. Some operations wait longer, and a colleague proposes a bigger disk. Ask for the application measure, the time period and the dimensions of the storage load. IOPS counts input and output operations per second. Throughput measures how much data moves per second. Latency is how long an operation takes. The amount of data per storage operation helps explain whether throughput or operation count is likely to become a limit. Queue behavior and the relationship between an individual volume and the instance's aggregate EBS performance also matter.
Use some invented evidence. If the workload issues 2,000 storage operations each second and moves 16 KiB per operation, it requests about 31.25 MiB per second. If it moves 128 KiB per operation at the same rate, it requests about 250 MiB per second. The first calculation is 2,000 times 16 divided by 1,024. The second uses the same calculation with 128. The exact EBS operation count can differ from application request count because storage may merge or split requests. Read measured volume and instance metrics before claiming a real limit, and use the arithmetic to explain why IOPS alone cannot predict the demand.
Suppose the individual volume is configured for the desired throughput, but the instance hits its aggregate EBS bandwidth while writing its root logs and reading an additional volume. Volume changes leave the shared instance limit unresolved. Suppose the queue remains small and app traces instead show long waits on the database's own lock. A different volume configuration leaves that application contention unresolved too. Tie the hypothesis to an observed interval and inspect each relevant source. Then propose the smallest approved change with a measurable prediction about the specific user operation.
Compare performance after an approved change against a representative calculation or earlier observation. Account for whether the disk was initialized from a snapshot and whether the relevant test first touched unwarmed blocks. A one-off benchmark result may measure setup effects, a temporary burst, competition with another test or a workload unlike the dispatch process. Record the source, duration, load and state used in the sample. Include the instance's available EBS performance and the actual per-volume settings. The next operator can decide whether the comparison addresses the original symptom with enough evidence.
Verify a recovery point before trusting it with a change
When the team discusses a resize or a migration, someone may say that “we have a snapshot.” Ask which volume it protects, the time it represents and what operation proves it is usable. EBS snapshots capture a point in time for the volume data written to EBS. Software or operating system caches can contain recent changes that have not reached storage. Database state can also include related writes on multiple devices. Follow the application's supported consistency procedure and the AWS snapshot guidance. Pick the recovery point that covers the data needed for this decision.
Suppose a dispatch database commits a transaction at 17:25. The snapshot was taken around 17:00 and became completed at 17:40. Its completion time does not move the point in time forward. That later event means the service finished creating the snapshot. The worker can use the intended recovery item when it is ready under the documented procedure. Validate the restored application and inspect an order known to have existed at the earlier point. In a disaster exercise, record both the age of the available source and how long it takes to restore and operate the service. They quantify different operational constraints.
Distinguish a snapshot from a bootable server plan. A service may need a known machine image, network settings, access roles, secrets, software versions, restored data volumes and a procedure to connect them. A snapshot of the data volume supplies its block contents. A new instance that cannot read its approved key or connect to its configuration service has other gaps. Confirm who can perform the restore in the intended account and Region and who validates the data. Keep details about keys, snapshots and accounts in an authorized handoff instead of copying access material into an exercise.
Retention protects known needs. An old recovery point could be the last version before a damaging operation. A current AMI may reference particular snapshots, and snapshots managed by AWS Backup have their own management path. Checking dependencies and retention explains why an item should stay. Cost review means choosing an approved disposition for each item under its policy. Deleting an earlier incremental snapshot preserves the independent ability to restore from remaining snapshots. It frees data that belongs exclusively to the removed point, so any expected savings must account for shared block references and the billing arrangement.
Get the application and guest ready before an EBS detach
Assume the dispatch team now has an approved plan to retire one old data volume. First establish which instance is actually attached and which volume ID the runbook names. Inventory all known mounts, device layers and active data consumers. Tell the service owner when writes will pause. Follow the application stop or quiesce procedure and verify the intended processes are stopped or redirected as documented. A maintenance page alone does not stop background jobs. Check that backups and recovery ownership are in place before the application and storage are separated.
An unmount can report that the filesystem is busy. A shell working inside the mount can count as a reference, and a background process may retain an open file even after the frontend has stopped. Identify the holders with approved scoped inspection. Select the action with the owner, for example leave the directory in the operator shell or gracefully stop the known process. Recheck the source and all consumers. Avoid force options as an ordinary way to bypass an unexplained holder. A normal unmount helps finish and release the filesystem in its controlled state.
Review the persistent boot settings for the particular data mount. The system should have a deliberate response to the disk's absence when it restarts, including the application's dependency behavior. Verify the unmount of the intended disk in its proper context, then check the exact attachment and carry out the authorized detach. Wait for the relevant cloud state and confirm that the app or replacement remains in its intended condition. EBS requires stopping an instance before detaching its root volume. A root recovery or instance retirement needs its own procedure and verification plan.
Detaching leaves the volume as a resource. Its storage and any retained snapshots might continue to incur charges. A deletion is a different operation that requires ownership, retention and dependency decisions. Some rules may retain a deleted resource temporarily in Recycle Bin. Do not treat that feature as a substitute for the approved recovery point. Close the procedure only after checking whether the intended resource is retained, attached elsewhere as part of an approved plan, or separately authorized for scoped removal.
Lab. Separate service availability from correct data placement
Use Python 3 and a new writable folder for an offline diagnostic. You will simulate four records of the dispatch service. Each record has the ID of the intended EBS volume, the expected mount and evidence about what the writer or reader actually sees. The same sample order can appear on a root fallback and on a copy with the same filesystem UUID. Your aim is to decide which condition warrants a stop before considering a write. The fixture is a decision aid, not a cloud or kernel parser. It requires no disk attachment, privileges or network.
Save the following lines as dispatch-evidence.csv in your scratch folder. These short resource labels are fictional. In a live service you would populate them from authorized inspection of an actual cloud volume ID, guest serial, mount and application sample. The field sample_readable intentionally appears true even in the wrong-disk case. Preserve the field order so your CSV reader can map every value to the expected column.
case,ebs_expected,ebs_observed,mount_expected,mount_observed,uuid_expected,uuid_observed,sample_readable
restart-fallback,dispatch-data,dispatch-root,/srv/dispatch,/,orders-fs,root-fs,yes
stale-clone,dispatch-data,dispatch-recovery,/srv/dispatch,/srv/dispatch,orders-fs,orders-fs,yes
ready-no-record,dispatch-data,dispatch-data,/srv/dispatch,/srv/dispatch,orders-fs,orders-fs,no
ready-current,dispatch-data,dispatch-data,/srv/dispatch,/srv/dispatch,orders-fs,orders-fs,yes
Run the script from that folder. It checks the source relationship before the sample and shows the first layer requiring more evidence. A matching cloud ID with a bad mount would still require review. A matching mount and filesystem UUID with a different parent volume is possible when a clone relabeling procedure is incomplete. The observed sample is deliberately checked last, after the service's data source has been established.
python3 - <<'PY'
from csv import DictReader
from pathlib import Path
def decide(row):
if row["mount_observed"] != row["mount_expected"]:
return "Pause: establish the filesystem actually serving the app path."
if row["ebs_observed"] != row["ebs_expected"]:
return "Pause: establish why the parent volume differs."
if row["uuid_observed"] != row["uuid_expected"]:
return "Pause: verify the filesystem on the approved partition."
if row["sample_readable"] != "yes":
return "Pause: inspect the approved application sample."
return "Observed: placement, filesystem and sample agree for this check."
with Path("dispatch-evidence.csv").open(newline="", encoding="utf-8") as csv:
for row in DictReader(csv):
print(f"{row['case']}: {decide(row)}")
PY
restart-fallback: Pause: establish the filesystem actually serving the app path.
stale-clone: Pause: establish why the parent volume differs.
ready-no-record: Pause: inspect the approved application sample.
ready-current: Observed: placement, filesystem and sample agree for this check.
Diagnose each row before changing it. For the fallback, read the mount observation and name where writes could have landed. For the clone, read the two parent IDs and explain why two matching UUID fields did not settle the question. For the ready-no-record row, give an explanation that would not be solved by attaching another disk, such as use of a stale file or database path in that application environment. The result is an order of investigation, not an instruction to replace a volume. Use independent evidence and the owner's intended design to choose a change.
Copy the final row and alter its observed UUID while leaving the other properties alone. The new result should pause at filesystem identity. Then change only the sample result from no to yes in a copied ready-no-record row. It should produce the same observed condition as the last result. If the script reports that it cannot open the file, confirm your working directory and the CSV filename. If it reports a missing key, examine the first line for a missing comma or renamed field. A copied ID with trailing spaces is different data. Inspect the fixture without trying to change a real attachment. Cleanup consists of removing only your lab's CSV copy from its scratch directory.
Put competing explanations on a single timeline
After the restart, the team reports four times. The volume appeared attached at 18:00. The dispatch process recorded ready at 18:02. It wrote order 46 at 18:04. An operator finally saw the expected data mount at 18:06. A summary that says “the disk was attached and the order was written” obscures the two minutes between the last two events. The mount observation arrived after the write. Mark the interval as unverified and look for service logs or recorded mount state that explain where that write landed. Record whether the timestamps came from different machines and compare their clock basis before treating the ordering as exact.
Explore two explanations. If the filesystem was mounted by 18:01 and the app read a different environment, then checking it from the outside could miss the difference. If the filesystem was absent during the write and appeared at 18:06, then an underlying folder could hold the earlier files. Both scenarios can show the correct mount now. Review historical app paths and selected status rather than inferring past state from the latest console view. If logs can no longer reconstruct the exact source, preserve that uncertainty and have the service owner examine data copies under a safe recovery procedure.
When a block volume is cloned for a restore exercise, record the point in time, creation start, completion and first representative application read separately. One timestamp describes data coverage, another describes how long the copy process took, and the app read describes operational readiness for that test. Suppose this team's claimed restore time is fifteen minutes because the restored disk appeared in the console after fifteen minutes. If the operator only verified the dispatch process thirty minutes later, then the exercise established a different end-to-end result. Do not mark the plan fully checked based on volume availability alone.
End the handoff with the expected next observation and owner. For dispatch, an example is “The app owner is checking whether order 46 exists in the restored copy and whether it was accepted before the mount changed.” Link the agreed records without pasting secrets into the ticket. A useful conclusion says where observations agree, what remains unknown and which action requires fresh approval. This format gives another engineer a way to correct the interpretation if new evidence arrives.
Choose the evidence that rules out a tempting mistake
- The report proves the wrong thing. A staff member shows a screenshot of the expected web page after a maintenance window. Write two checks needed to confirm the application is actually writing its dispatch records on the new data mount. One check should name the guest filesystem source as seen by the process. The other should name the approved data observation that confirms the service is using the correct copy.
- Two identical-looking filesystem IDs. You see two block devices with the same filesystem UUID after copying a snapshot. The original accepted orders after the snapshot was taken. Describe how you would keep the two isolated, distinguish their parent volume identities and verify the point of recovery. Your written answer should account for newer orders before promoting the restore.
- The new disk shows larger, the path stays old. Sketch a disk, an intermediate partition, a filesystem and the path used by the service. Give each a measurement. Put the first unchanged size at the partition to explain why extending the filesystem alone cannot use the entire new area. Revise the example so the app path resolves to root and explain why the change procedure would stop earlier.
- Retiring a resource with an unclear owner. The backup inventory shows a recent completed snapshot and an unattached disk that have similar service tags. Draft a three-line review request asking for the exact source, intended retention and current dependencies. Include explicit responsibility to choose the next approved action. The request leaves both resources available while you assemble the evidence.
Interview questions with explained answers
The application path exists before the data disk arrives. What will you check?
Confirm the runtime mount that supplies the path inside the app's execution context, map that source to the intended disk and verify an approved sample. Linux resolves the underlying directory even when the separate mount is missing. A web server and filesystem may both seem healthy while a process writes to their unintended combination. Pause writes when necessary to avoid widening the gap between copies.
Why did the Nitro device name change after a restart?
The guest names NVMe devices in discovery order. Use the current controller identity or serial to correlate EBS with today's device. Then connect it to the relevant filesystem and mount path. The attachment's slot alias and current Linux device path are useful observations. They cannot serve as the only inventory keys across boot and restore operations.
When a restored volume and original use the same UUID, how will you choose?
Compare the parent EBS IDs and intended roles. They are separate resources, and the UUID retained inside the copy may be identical. Review the filesystem's supported duplicate identity handling before attaching or mounting copies together. Establish which data version and application endpoint should be active before selecting or modifying either copy.
How can the snapshot complete after the write and still omit it?
The snapshot represents the captured point in time. The later completion reports how the snapshot creation progressed, rather than rotating it forward to include subsequent writes. Confirm the captured point, whether relevant changes reached storage and the supported consistency procedure. Verify the required records on an isolated restore.
Can a provisioned volume rate guarantee the application's end-to-end latency?
No. The available instance-level EBS performance, request sizes and access patterns, other volumes, cache or initialization state, application locks and network can affect the timeline. First verify which storage path is involved and compare storage and app measurements from the same period. That enables a limited change with a prediction and a meaningful result.
Quiz. Pick the next observation
1. The approved volume is in a different Availability Zone from the instance. Is the next step to edit fstab, open a security group or plan a suitable restore in the target zone?
Show answer
Plan a suitable restore in the instance's zone. Application and mount settings cannot satisfy the EBS attachment placement check.
2. The EBS ID, runtime mount and sample agree, but the UUID differs from the known filesystem. Should you silently override the record, grow the partition or check the filesystem identity?
Show answer
Check the filesystem identity. A change or unexpected layout can explain the difference. Confirm which filesystem is serving the approved service before updating its record.
3. A disk reads 80 GiB and its intended partition reads 40 GiB. Which size do you investigate next?
Show answer
Investigate the partition. After confirming the disk and layout, determine whether the approved plan needs to extend it before extending the filesystem inside it.
4. A shell still uses the mount as its working directory. Should you erase the folder, force detach or clear and recheck the known reference?
Show answer
Clear and recheck the known reference, such as by leaving the directory. Look for all active consumers and use the approved graceful unmount and detach sequence.
5. An older snapshot is still needed by a registered AMI. Choose immediate cleanup, change its display name or review the AMI dependency with its owner.
Show answer
Review the AMI dependency. Reuse of that image can depend on its retained snapshot. Renaming the item does not alter the dependency.
Revision cards
- Placement
- Compare the target instance and exact volume in their account, Region and Availability Zone. Restore with the right placement when necessary.
- Stable identification
- Correlate a guest device with the EBS ID, then identify the actual filesystem and mount. A newly enumerated NVMe number can differ.
- Fallback writes
- A directory can still resolve on the root filesystem when its intended disk is absent. Check the runtime mount from the app environment.
- Usable growth
- Follow the change from disk through partition or other layers to filesystem and application. Measure the first layer where new space is missing.
- Usable recovery
- Check the source, point in time, consistency, key access and restored data. Completion is one part of the evidence chain.
- Safe retirement
- Quiesce and unmount with the owner, verify the exact detach, then review retention and dependencies for any deletion decision.
Official references
- EBS attachment requirements, creating a destination volume and snapshot copies
- EBS NVMe identity, examining guest storage and the util-linux findmnt manual
- fstab reference, systemd mount dependencies and unmount behavior
- AWS Linux extension procedure, I/O characteristics and EC2 EBS performance
- snapshot capture, snapshot deletion conditions and Recycle Bin
- detaching a volume, deleting a volume and pricing