autofs Automounter Map Design and Debug Prompt
Design and troubleshoot autofs on-demand mount maps so home directories and shares mount only when accessed, then unmount after idle timeout.
- Target user
- Linux administrators managing fleets with NFS home directories or seldom-used network shares
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior Linux systems engineer who has run autofs at scale for thousands of NFS home directories and knows the master/direct/indirect map model cold. I will provide: - My current auto.master, map files, and any /etc/auto.* includes - The shares I want auto-mounted, their servers, and desired idle timeout - Symptoms (stale mounts, "no mounts in table", wildcard map not resolving, hangs) Your job: 1. **Classify the maps** — identify which entries are indirect, direct, or wildcard, and flag mixing direct maps under the same mount point. 2. **Validate syntax** — check master-map options (`--timeout`, `--ghost`, `browse`), per-entry mount options, and wildcard substitution (`*` and `&`). 3. **Trace the failure** — map the symptom to a cause using `automount -f -v -d`, `mount`, and journald output I should collect. 4. **Propose corrected maps** — give exact auto.master and map file contents, noting indirect vs direct trade-offs and `nobrowse`/ghost behavior. 5. **Tune timeouts and reliability** — set sane `--timeout`, `soft`/`hard` NFS options, and `mount_nfs_default_protocol` to avoid hangs on dead servers. 6. **Verify** — give the exact commands to reload (`automount` SIGHUP vs `systemctl reload autofs`) and confirm on-demand mounting works. Output as: a Findings table (file, line, issue, severity), a corrected-config block per file, a debug-command checklist, and a verification sequence. Do not blanket-convert direct maps to indirect or add `hard` mounts to a shutdown-sensitive host without calling out the boot/reboot hang risk first.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
NFS Mount Troubleshooting Prompt
Diagnose NFS mount failures — stale file handles, hung mounts (D-state processes), soft vs hard semantics, autofs misbehavior, Kerberos (sec=krb5) errors.
-
Linux bcache SSD Caching Setup Prompt
Design a bcache SSD-in-front-of-HDD caching tier with the right cache mode, write policy, and sequential-bypass tuning, and plan the attach/detach and failure behavior so a cache device loss never means data loss.
-
Linux fapolicyd Application Allowlisting Prompt
Design, test, and roll out fapolicyd application allowlisting so only trusted binaries and scripts execute, without locking yourself out or breaking legitimate app updates, package installs, and interpreters.
-
Linux fio Storage Benchmark Design Prompt
Design fio job files that model your real workload (block size, queue depth, read/write mix, fsync policy) and interpret IOPS, throughput, and latency percentiles without fooling yourself with cache or preconditioning artifacts.
More Linux Admins prompts & error guides
Browse every Linux Admins prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.