Start a Conversation

Unsolved

N

4 Posts

1546

December 7th, 2020 04:00

NFS export update

I need to add IP's to a number of existing NFS mount exports. I only have access through CLI.

does anyone know the commands i need to use to accomplish this. all help appreciated.

Moderator

 • 

6.9K Posts

December 7th, 2020 14:00

Hello noeley,

I am not seeing anyway to do this via CLI.

Moderator

 • 

284 Posts

July 30th, 2021 13:00

Sorry for my delay.

The right way to do this is to capture a current list of IPs in your server_export output, unexport the export, and then re-export it with the new list of IP addresses.

Do note that this is disruptive to end users of the export; do this in a downtime window or a low IO window.

To get the list of current exports:

server_export server_X

To unexport:

server_export server_X -u -p

To re-export with a new IP list:

server_export server_2 -o

So let's say you have fs1 with an access= list which has 1.1.1.1 on it and you want to add 2.2.2.2 to it:

server_export server_2 -u -p /fs1
server_export server_2 -o access=1.1.1.1:2.2.2.2 /fs1

No Events found!

Top