NFS doesn't work

From OpenVZ Wiki

Jump to: navigation, search

Often NFS in container does not work because of misconfiguration. This article contains known reasons of such problems as well as solutions for those.

Contents

[edit] Mount hangs

[edit] Symptoms

mount command hangs or takes a very long time to complete:

# mount <ip address>:/pub /data
(...hangs here...)

[edit] Reasons

  • Lockd is not running on the NFS server
  • Portmap is not running on the NFS client
  • Networking is broken (e.g. scripts brought up default route but not IP address yet)

[edit] Solution

Two options are possible:

  • run lockd on the server
  • mount with nolock option

[edit] Links

Personal tools