NFS remount of a rw qtree to ro makes other qtrees also change to read only
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