ONTAP Discussions

Set no_root_squash for all volumes in an SVM

Adrian2

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

Adrian2

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

Are you using nfs 3 or 4?

 

nfs 4

hmoubara

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 

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

Public