NFS mount option 'noac' allows same file system to be mounted repeatedly

This document (7010210) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11 Service Pack 1
SUSE Linux Enterprise Server 11 Service Pack 2

Situation

The same NFS share can be mounted multiple times on the same mount point when using the "noac" mount option.

Normally, the same mount syntax (same share, same options, same mount point) cannot be used to mount something repeatedly .  For example, without the 'noac' option, a second (and beyond) mount attempt will result in the expected error:

mount.nfs: /mountpoint is busy or already mounted

However, using the "noac" option unexpectedly allows repeated identical mounts:

host:~ # mount -o noac server:/export /mount_point
host:~ # mount -o noac server:/export /mount_point
host:~ # mount -o noac server:/export /mount_point
 
host:~ # mount
server:/export on /mount_point type nfs (rw,noac,addr=IP)
server:/export on /mount_point type nfs (rw,noac,addr=IP)
server:/export on /mount_point type nfs (rw,noac,addr=IP)

Resolution

As a temporary workaround, always specify the "sync" option along with "noac".  Then a second identical mount attempt will fail as expected.  An example mount command would be:
 
mount -o noac,sync server:/export /mount_point

The SUSE Linux Enterprise 11 SP1 kernel 2.6.32.59 released May 2012 and the SUSE Linux Enterprise 11 SP2 kernel 3.0.26-0.7.6 released in April 2012 include the patch to resolve the problem.

Cause


Additional Information

The reason for the unexpected results is that "noac" implies the "sync" flag. The existing mount is known to be using "sync" but the new mount is not explicitly requesting it.  The system incorrectly concludes that the new mount is different and can be allowed.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7010210
  • Creation Date: 23-Feb-2012
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center