Network Storage Protocols Discussions

adding multiple export entries with one exportfs command

KIWIRAIL01

Hi Team

I am trying to add another export entry to existing NFS export. when I run exportfs command with -p  and security permissions and server name it removes the old server name instead of adding to it. is there another switch or command which i need to use where by I can add more than 1 export with single command?

thanks

Aj

1 REPLY 1

ricku

exportfs -p will comment out the existing line in the /etc/exports file then append your command edit as a new line to the end of the file and re-export it. From your description it sounds like you only included your new new server in the permissions list. If so you will need to run the exportfs -p cmd again including the original permissions list and appending the new server to the end of the existing. Be aware that each exportfs -p cmd leaves behind a comment line in the exports file.

rgds,

Rick

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