This guide will help you setup a highly available NFS server on Debian Jessie. This is a relatively battle-tested configuration, and there is plenty information out there on how it works.
This guide will give you a setup as follows:
- One active NFS server with its own public, private and floating IP (VIP)
- One passive hot standby NFS server with its own public and private IP
- Automatic failover when one of the nodes becomes unresponsive or unreachable.
- Unicast cluster syncronization (so it works on Linode and other places where multicast (like corosync) isn’t available).
While writing this guide, I used 2 KVM machine on Proxmox 4.2 (nfsnode01 and nfsnode02). Each VM configured as follows:
- Default Debian Jessie install from a netinst iso
- 512MB RAM
- 1 x 20GB OS disk (all partitions – /dev/sda)
- 1 x 20GB data disk (/dev/sdb)
Each node has 2x NICs (1x on network and