Skip to main content
NetApp Knowledge Base

NFS remount of a rw qtree to ro makes other qtrees also change to read only

Views:
33
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

Applies to

  • ONTAP
  • NFS

Issue

  • Customer has multiple qtrees (qtree1, qtree2, qtree3) in a volume and all are mounted by nfs client with read-write attributes. 
  • They appear as below:

nfsstat -m
/mnt/qtree1 from 10.10.100.63:unix/qtree1
Flags: rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.10.100.63,mo                         untvers=3,mountport=635,mountproto=udp,local_lock=none,addr=10.10.100.63 

/mnt/qtree2 from 10.10.100.63:unix/qtree2
Flags: rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.10.100.63,mo                         untvers=3,mountport=635,mountproto=udp,local_lock=none,addr=10.10.100.63

/mnt/qtree3 from 10.10.100.63:unix/qtree3
Flags:
rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.10.100.63,mo                         untvers=3,mountport=635,mountproto=udp,local_lock=none,addr=10.10.100.63

  • They remount one of the qtrees  to change it to read-only with  the following command:
 
[root@Centos8]#mount -o ro,remount, /mnt/qtree1
 
  • After this all the mounts for other qtrees, in the same volume. also get changed to read-only

[root@Centos8]#nfsstat -m
/mnt/qtree1 from 10.10.100.63:unix/qtree1
Flags: ro,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.10.100.63,mo                         untvers=3,mountport=635,mountproto=udp,local_lock=none,addr=10.10.100.63

/mnt/qtree2 from 10.10.100.63:unix/qtree2
Flags: ro,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.10.100.63,mo                         untvers=3,mountport=635,mountproto=udp,local_lock=none,addr=10.10.100.63

/mnt/qtree3 from 10.10.100.63:unix/qtree3
Flags: ro,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.10.100.63,mo                         untvers=3,mountport=635,mountproto=udp,local_lock=none,addr=10.10.100.63

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.