Pcornel
Automation · Storage Automation

Mount Automation

Cheat sheet · https://pcornel.dk/topic.php?topic=5746

Back to the Topic

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.

Remember

  • Mount by UUID in fstab.
  • Use correct mount options.
  • Verify with findmnt.

First 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

Commands

findmnt

Verify in this order

filesystem UUID → fstab → mounted

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5746

Confirmation

Confirm action

Continue?