NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

exportfs -w /etc/exports - safe way to clean up NFS exports?

jhubert
6,449 Views

Is exportfs -w /etc/exports a safe way to clean up NFS exports when a customer has options nfs.exports.auto-update off?  Are there any scenarios where this would not be a good idea?

For instance, if the auto-update option is off then when a flexclone/SFR in SMVI is removed the export stays in the /etc/exports file but not in memory.  So running the exportfs -w to update the exports file with what is active in memory seems like it will do the trick to clean out the old entries. 

2 REPLIES 2

aborzenkov
6,449 Views

Personally I’d consider this a bug in SMVI; it should not rely on nfs.exports.auto-update but manage /etc/exports itself. Did you report it? What was the answer?

jhubert
6,449 Views

Per BURT 518520, it seems SMVI expects the option to be on, or the recommended fix is to "scripted clean-ups of /etc/exports from a client may need to be scheduled if restores/mounts are done often."

http://support.netapp.com/NOW/cgi-bin/bol?Type=Detail&Display=518520

I would also consider this bug, SMVI should be doing the clean-up and not depend on the auto-update option.

Public