ONTAP Discussions

how to set a cifs volume/share read only

FelixZhou

We are on ONTAP 9.7 on AFF300, currently we have a need to set a CIFS volume or shares as read only. is there a simple way to do so?

On EMC, we can simply set file system mount option as read only. after migrated to NetApp, we couldn't find same way.

We have growing shares, after certain size, we will run final backup, set it as read only, then create a new share on new volume.

Can you please share if you have experience on this?

thanks. 

1 ACCEPTED SOLUTION

jcolonfzenpr

Export policies and it rules are created at SVM level but can be applied at various levels; SVM, volume or qtree at mount points

 

Look for nfs export policies documentation.

 

I always do this type of experiments with the netapp simulator first.

 

kindly,

Jon.

Jonathan Colón | Blog | Linkedin

View solution in original post

6 REPLIES 6

adimitropoulos

You can simple set the share permissions to "read" to everyone and file level permissions to"read only" to everyone or specifically to the group of users you want to have access on the share.

 

 

FelixZhou

thanks.

that can be an option.

AS SAN team, we are only managing the storage, we thought it is better to limit the volume as read only on storage instead of shares.

in case they can create new shares without noticing SAN team.

FelixZhou

thanks, good information. 

is that possible to apply the export policy roles to volumes instead of SVM?

We have multiple volumes under same SVM but only some of them wanted to set read only.

jcolonfzenpr

Export policies and it rules are created at SVM level but can be applied at various levels; SVM, volume or qtree at mount points

 

Look for nfs export policies documentation.

 

I always do this type of experiments with the netapp simulator first.

 

kindly,

Jon.

Jonathan Colón | Blog | Linkedin

View solution in original post

You can also set the volume itself read only. Unless ONTAP has changed you should be able to still mount a CIFS share.

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.

NetApp Insights to Action
I2A Banner
Public