ONTAP Discussions

Set no_root_squash for all volumes in an SVM

Adrian2
2,805 Views

New to Ontap.   I have Trident and NetApp configured.  I have an SVM with an export policy that looks like 


svm_nfs_prod prod_root 1 any 10.X.A.0/24 any
svm_nfs_prod prod_root 2 any 10.X.B.0/24 any
svm_nfs_prod prod_root 3 any 10.X.C.0/24 any
svm_nfs_prod prod_root 4 any 10.X.D.0/24 any
svm_nfs_prod prod_root 5 any 10.X.E.0/24 any
svm_nfs_prod prod_root 6 any 10.X.F.0/24 any

 

I want to set no_root_squash but cannot find a KB article that works.  The following link says "How to confiugure" but it does not say how to configure.  Instead it  includes details of how to show existing export policy rules.

 

https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/How_to_configure_no_root_squash_on_Ontap_7mode_and_Clustered_Data_ONTA...

 

Can anyone point me to a one line command that will set no_squash_root for my svm_nfs_prod and for the six  networks in the existing policy?

 

Thanks

6 REPLIES 6

hmoubara
2,772 Views

Hello,

 

The kb listed above provide you different example based on what you have your ro and rw set to. You can check the below documentation for more details regarding each parameter under the export-policy rule create:

https://docs.netapp.com/ontap-9/topic/com.netapp.doc.dot-cm-cmpr-980/vserver__export-policy__rule__create.html

 

Thanks 

Adrian2
2,693 Views

Yes.  Thanks. I have had a read of that article.

Adrian2
2,734 Views

Thanks.  Still not obvious what command is needed to prevent files being created with owner nobody. 

hmoubara
2,709 Views

Are you using nfs 3 or 4?

 

Adrian2
2,688 Views

nfs 4

Public