Subscribe

NFS default export - can this be changed to a custom setting?

A NFS customer would like to change the default export for when you create a volume from the open setting that comes with a filer to a more locked down custom setting.

The way thery manage their filer means they create new volumes regularly and then have to stop the open export, create their own locked down export and change the export.

I know we can stop the auto export :-)

Re: NFS default export - can this be changed to a custom setting?

Hi

You can just turn off the default export ....

by this options :nfs.export.auto-update off

But change the default settings to this, i have never show this tye of custom ...

sorry

Re: NFS default export - can this be changed to a custom setting?

Probably not exactly what you're after, but a viable option might be;

- turn off that export option you mentioned (options nfs.export.auto-update I believe)

- use a script to provision the volume and export the locked down NFS mount


i.e.

vol create volume1 aggr1 1000g

vol options volume1 no_atime_update on

vol options volume1 convert_ucode on
vol options volume1 create_ucode on
vol options volume1 nosnapdir on
exportfs -io rw="192.168.0.100 255.255.255.0" /vol/volume1
or, if your client uses netgroups to provision NFS access;
exportfs -io ro,root=@trusted,rw@friendly /vol/volume1


Re: NFS default export - can this be changed to a custom setting?

Ross, if you want to export a qtree, instead of the volume, do you need to change the default export? Or just lock it down?

ie create qtree called /vol/volume1/volume1 and then reference /vol/volume1/volume1 instead of /vol/volume1 when accessing the export from hosts.