Backup allocation — practice with worked answers

Find the first failed operation

Measurements from a controlled Linux tmpfs exercise. The same controls gave identical results in two independent private Linux user/mount namespaces. Each run used separate staging and repository mounts, each limited to 1 MiB (1,048,576 bytes). Inode counts came from df -Pi. Space readings came from df -Pk in KiB.

A. Create in staging. The mount root already used one of eight inodes. After creating seven zero-byte files, staging had 0 free inodes and 1024 KiB available. Creating an eighth file returned ENOSPC (Linux errno 28). At that point the separate repository still had 31 free inodes and 1024 KiB available.

B. Append in the repository. After writing one non-sparse 1,048,576-byte payload, the repository showed 30 free inodes and 0 KiB available. Appending one byte to that existing file also returned ENOSPC.

For each case, record the operation ___  path role ___  unavailable resource ___  counter that supports your answer ___. Which reading would mislead you if you looked at it alone?

Worked answer — A ran out of staging inodes. A new file needed one, and none were free. Neither staging’s spare space nor the repository’s free inodes could help. B ran out of repository space. The append needed room for data, not a new file inode. If both counters show headroom on the failed path, ask the responsible administrator to check applicable quotas for the job identity.

Correction task — “The repository has 30 free inodes, so retrying the append should work.” Rewrite this using the measured evidence.

Correction answer — The repository had 30 free inodes but 0 KiB available. The one-byte append already failed on that mount. Verify byte headroom on the intended repository before retrying.

When the counters point elsewhere

C. Hypothetical repository case. On the expected mount, creating a file fails under the backup service identity. Both filesystem counters show headroom, but the raw error is EDQUOT.

D. Hypothetical repository path. A write reports ENOSPC. The path exists, but it resolves to the system volume rather than the expected separate repository mount. The dashboard shows free space on the intended repository.

Record the evidence that changes your next action in each scenario. What remains unknown? What would have to be verified before retrying?

C. Ask the quota administrator to check limits for the effective service user, group or project. Identify whether bytes or file count is constrained. An administrator’s successful write from a different account leaves this question open.

D. Suspend the retry until the original repository source is restored and verified from the job’s mount namespace. The unexpected mount explains why the dashboard reading is irrelevant. The remaining bytes and inodes on the fallback filesystem at the time of failure are unknown.

Write a shift handoff

Use field-notes-en.txt to hand off cases A and B. Identify the person who owns each change, the observation that justifies it, and one fact the incoming shift still needs.

Worked answer. A goes to the owner of the temporary workspace. Ask them to assess the job’s peak temporary entries or approve an alternate staging mount with inode headroom. B goes to the repository owner, who can assess byte capacity and retention dependencies while preserving the last verified recovery point. Neither case supplies a production pathname or a retention policy. Mark those fields unknown.

Correction task — Rewrite the following handoff. “The retry finished, so the backup is fixed. The repository directory exists, but we didn’t check its mount.”

Suggested handoff. The retry completed, but we have not verified the repository source. Hold further runs until the mount matches the configuration from the job’s environment. Then the job owner can run the agreed harmless backup. Record the complete new point on that repository, restore a known item separately and compare its contents.
