Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to create a fault tolerant, redundant NFS server (e.g. master/slave)?

Several of my web servers mount their WEBroot directories from a single NFS server (which is regularly backed up). Just trying to remove any SPOFs.

share|improve this question
up vote 4 down vote accepted

Yes, it's fairly simple. You just need to have some sort of shared storage (DRBD works well, although on EC2, an EBS could work too), store the NFS lock state on said shared storage (so locks are maintained across failover), and then run something to detect failure and transition resources to the standby node (LinuxHA, in the form of heartbeat, works well for this).

On EC2, though, it's largely unnecessary -- just have something detect that your NFS server instance isn't running right (or has crashed out completely) and fire up a new one from scratch. Much cleaner.

Oh, and mounting roots from NFS in EC2 is a spectacularly bad idea -- far better to use AMIs.

share|improve this answer
Thanks! Yea this is on EC2. My apologies, I meant to write that I'm mounting the "webroots". How do you implement "lock state" storage with NFS? What do you think is the best way to manage launching the new instance + reattaching the EBS volume? Auto-scaling? – Trent Scott Sep 19 '11 at 2:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.