Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Mount Automation

Direct answer

Mount automation adds file systems to /etc/fstab by UUID with correct options, or uses systemd mount units or Ansible's mount module, then verifies with findmnt.

When to use this

Use this when automating mounts and fstab entries by UUID.

First 30 seconds

1. Mount automation updates fstab and mounts.

2. Use UUIDs.

3. nofail/_netdev where appropriate.

4. Verify with findmnt.

5. Test reboot.

Operational verification

filesystem UUID → fstab → mounted

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
storage automation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformstorage automation · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when automating mounts and fstab entries by UUID.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Device names (/dev/sdb) instead of UUIDs.
  • Missing nofail/_netdev on network mounts, blocking boot.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Mount by UUID in fstab.
  • Use correct mount options.
  • Verify with findmnt.
Key checks
  • ansible <h> -m ansible.posix.mount -a 'path=/data src=UUID=<uuid> fstype=xfs state=mounted' --check — mount module
  • findmnt /data — mounted
  • findmnt --verify — fstab check
ReferenceWhy it matters1 section · depth on demand

What it is

Mount automation creates mount points and persistent entries (/etc/fstab with UUID, or systemd mount units) and verifies with findmnt.

ReferenceImportant terms & boundaries2 sections · depth on demand

How it works

Mounts are defined in /etc/fstab (or systemd .mount units) and activated by systemd at boot. Using UUIDs or labels keeps them stable when device names change; nofail keeps boot going if a data disk is missing.

Example

- ansible.posix.mount:
    path: /data
    src: UUID={{ data_uuid }}
    fstype: xfs
    opts: defaults,nofail
    state: mounted
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docstorage automation current

Authoritative/upstream documentation reviewed for bounded claims in Storage Automation > Mount Automation. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.ansible.com/ansible/latest/collections/community/general/lvol_module.html · confidence 94%
Confirmation

Confirm action

Continue?