I have NFSv4 Server (on RHELv6.4) and NFS Clients on (CentOSv6.4). Let's say in /etc/exports
:
/shares/website1 <ip-client-1>(rw,sync,no_subtree_check,no_root_squash)
/shares/website2 <ip-client-2>(rw,sync,no_subtree_check,no_root_squash)
Then whenever i made some changes in that (let's say the changes ONLY for client-2
), e.g:
/shares/website1 <ip-client-1>(rw,sync,no_subtree_check,no_root_squash)
/shares/xxxxxxxx <ip-client-2>(rw,sync,no_subtree_check,no_root_squash)
Then i always service nfs restart
. And then eventually .. the mount-point on client-1
got unresponsive (Can't open its files, etc). (Why? Because of RESTART?)
But as described, i only modified the line for client-2
only. Everything for the client-1
are still untouched.
So my questions here are:
- Whenever i modify the
/etc/exports
, should irestart
the service or what? - If i
service nfs restart
, why the Mount-Point on other Clients are eventually affected? (For those Client Machines with NO changes made in/etc/exports
for them.)
That means, whenever i make the changes in /etc/exports
and restart
the service, i will need to go RE-MOUNT the directories on EVERY CLIENTS in the export list, in order to have the mount-points working again.
Any idea, please?
/etc/exports
, try just running, as root,exportfs -ra
. Seeman exportfs
for details.nfs restart
anymore?