Linux NFS Server IP address changed
Had to change IP address for NFS Server and clients.
The Server & Client are able to ping each other.
However the mount command times out.
On investigation from client side :
$ showmount -a <nfs-server>
All mount points on <nfs-server>:
<old ip of server>:/backup
have attempted exportfs -ra and restart
but the above old ip remains.
No clue how to update this entry on the nfs-server
Thanks for your help.
What's in your /etc/exports file? If it includes host names rather than IP addresses then what happens if you run
If the name resolution service on your system is configured to use /etc/hosts then the contents of your /etc/hosts file may need updating to match your IP changes.
Thanks for your reply.
/etc/hosts have already been updated.
nslookup fails with "No Answer"
It seems that the NFS Server has memorized the earlier ip
somewhere that needs to be updated.
Updating the /etc/exportfs with new IPs instead of hostname
and doing a "exportfs -r" did not help either.
Hello dsmatharu :)
The persistent IP addresses could be in the kernel tables. Try flushing and reloading by
Possible to reboot?
Update : Done for now
Removed the earlier entry, then added again.
Didn't work imediately
After sometime tried mount and it worked.
Strange thing is that now the "showmount -a <nfs-server>
shows two entries ( old and new ip both )
/var/lib/nfs/rmtab have both entries that i see with "showmount -a <nfs-server>"
Now atleast am able to appreciate where those came from !!!
Is it recommended to edit rmtab ?
Will keep a watch. Hopefully gets updated on nfs restart or a reboot !!!
rmtab easily gets out of date because it relies on the NFS clients to inform the NFS server that they have unmounted the NFS file system. If the NFS server IP was changed while an NFS client had one of its exports mounted then the client would not know about the new IP address and would try to notify the old address.
If you are certain that an entry in rmtab is invalid you can delete it.
|All times are GMT -5. The time now is 06:02 AM.|