Pcornel
Storage · Hypervisor Storage › KVM Storage

NFS

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

Back to the Topic

Answer

NFS for KVM stores qcow2 or raw disk images on a network share mounted on every host, giving simple shared storage for live migration. Use NFSv4.1 or later, a dedicated network and hard mounts.

Remember

  • Mount on every host for migration.
  • Use NFSv4.1+ and hard mounts.
  • Network latency becomes disk latency.

First checks

  • virsh pool-info <nfs-pool> — netfs pool
  • nfsstat -m — mount options
  • findmnt -t nfs4 — mounted

Commands

mount -t nfs
virsh domblkerror <vm>

Verify in this order

VM disk file → NFS → server

Where it usually breaks

First mismatch in provider/pool → virtual/logical disk → host/guest mapping → partition/filesystem → mount/drive → workload; preserve identity/pre-state before mutation.

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

Confirmation

Confirm action

Continue?