Can a NFS mount be shared out via Samba under Red Hat Enterprise Linux?

Solution Verified - Updated -


  • Using CIFS/SMB/Samba to share a directory that is also an NFS mount point results in file corruption, stale file locks, and various file access issues including high cpu usage.

  • Stale locks can be found via smbstatus and lsof after files within the share have been closed.

  • The following errors may appear in /var/log/samba/smbd.log or /var/log/messages:

    [2010/02/09 17:37:19, 0] smbd/dfree.c:sys_disk_free(148) WARNING: dfree is broken on this system
    [2010/02/08 11:56:49, 0] lib/sysquotas.c:sys_get_quota(421) sys_path_to_bdev() failed for path [.]!
  • A tcpdump taken during a file open operation may contain the following Locking AndX Response:

    NT Status: STATUS_FILE_LOCK_CONFLICT (0xc0000054)</code></span>


  • Red Hat Enterprise Linux (all versions)
  • NFS3/NFS4 mountpoint or Samba3/Samba4/SMB/CIFS mountpoint
  • Sharing the mountpoint out via the alternate network filesystem method (ie: NFS shared as CIFS, CIFS shared as NFS)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content