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.

Network and Storage Protocols

adding entries to a /etc/export file

GUVNIJJAR
6,233 Views

I need advise on how you would amend entries on a /etc/exports file via command line.   When i had an entry via using the exportfs -p, it overrides my entry, such as i have added the below entry :

exportfs -p rw=10.25.4.151:10.25.4.150:10.24.152:10.25.4.161:10.25.4.162:10.25.4.163,root=10.25.4.151:10.25.4.150:10.25.4.152:10.25.4.161:10.25.4.162:102.25.4.163

I Know want to remove the ip address 102.25.4.163 from the root access, and add an IP 10.25.4.163.   How can i write this without writing the whole command again.

Also after adding, do i need to run the exportfs -a command .

1 REPLY 1

aborzenkov
6,233 Views

You can't. You will have to use some external processing to extract information, change it and replace the line again.

And yes, if you changed just /etc/exports, you will need to run "exportfs -a" (or just for this entry) to activate it.

Public