Re: NFS related Question (111 Views)
Reply
Regular Advisor
Ajin_1
Posts: 200
Registered: ‎06-09-2009
Message 1 of 6 (151 Views)

NFS related Question

[ Edited ]

Hi Experts

 

 

shall I remove the entries in  /etc/exports file while NFS process is running.

 

Primary: cat /etc/exports
/NFStmp -rw=secondry

 

In Secondry Servers fstab the NFS file System commented.

 

 

P.S. This thread has been moved from HP-UX > General to HP-UX > networking - HP Forums Moderator

 

 

 

Thanks & Regards
Ajin.S
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 2 of 6 (149 Views)

Re: NFS related Question

You should probably unexport the currently-exported filesystem first, before removing it from /etc/exports.

If you wish to remove all the currently-exported filesystems, "exportfs -ua" is the easiest way to un-export all of them at once.

 

If you have other /etc/exports entries and don't want to remove all of them, use "exportfs -u /NFStmp".
Then edit /etc/exports.

 

There is no need to stop the NFS daemons.

If you removed the entry from /etc/exports without un-exporting first, the /NFStmp filesystem would still remain as exported until the system was rebooted. This could cause some surprises: "Why can't I unmount /NFStmp??? According to fuser -c, nothing is using it, so it should be free to unmount!"

 

The NFS export is a kernel-level action, so it is not directly associated with any normal process, so the fuser command won't see it. Yet you cannot unmount a filesystem that is still exported.

MK
Regular Advisor
Ajin_1
Posts: 200
Registered: ‎06-09-2009
Message 3 of 6 (147 Views)

Re: NFS related Question

Hi

 

How can i check currently-exported filesystems

 

showmount -e is that correct command ?

Thanks & Regards
Ajin.S
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Acclaimed Contributor
Dennis Handly
Posts: 25,054
Registered: ‎03-06-2006
Message 4 of 6 (141 Views)

Re: NFS related Question

[ Edited ]

>shall I remove the entries in /etc/exports file while NFS process is running.

 

That's just a text file (like fstab), it will only matter when doing exportfs(1m) or share(1m).

 

>How can I check currently-exported filesystems

 

You can also look at /etc/xtab or /etc/dfs/dfstab for 11.31.

Regular Advisor
Ajin_1
Posts: 200
Registered: ‎06-09-2009
Message 5 of 6 (113 Views)

Re: NFS related Question

Hi Experts

 

 

I check the xtab it also having the same entry as /etc/exports file

 

I manually remove the same or exportfs -ua remove the entry form xtab??????

 

 

Thanks In Advance.

Thanks & Regards
Ajin.S
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Acclaimed Contributor
Dennis Handly
Posts: 25,054
Registered: ‎03-06-2006
Message 6 of 6 (111 Views)

Re: NFS related Question

>I manually remove the same or exportfs -ua remove the entry form xtab?

 

/etc/xtab (like /etc/mnttab) is a generated file.  You must use exportfs -u to remove entries.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.