1822321 Members
5720 Online
109642 Solutions
New Discussion юеВ

showmount

 
SOLVED
Go to solution
Stefan Schulz
Honored Contributor

showmount

When i use showmount serverA i get a list with a lot different machines. Some of this machines are long gone.

Although the server has recently rebooted showmount shows those old entrys. How do i cleanup this list ?
No Mouse found. System halted. Press Mousebutton to continue.
6 REPLIES 6
CHRIS_ANORUO
Honored Contributor

Re: showmount

Remove the client entries in /etc/rmtab and reboot the server. You can then do umount -a or reboot the server.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Stefan Schulz
Honored Contributor

Re: showmount

I was afraid you'd say to reboot the server. I forgot to mention that i already edited the /etc/rmtab but this didn't have any effect (as you already know).

Rebooting is no option for the next weeks as this is a production system.

After reading the manpages again i couldnt find any disadvantages in this outdated list. Am i right? Is this list just for informational purposes or has this some meaning regarding performance?

But if this list is not reliable, of what use is it then?

Thanks for your reply.
No Mouse found. System halted. Press Mousebutton to continue.
Rainer_1
Honored Contributor
Solution

Re: showmount

as long as rpc.mountd runs the showmount will not change it's output even if /etc/rmtab is changed.
To get a new fresh showmount output you have to edit /etc/rmtab and then stop/restart rpc.mountd

Find the pid with

ps -ef | grep rpc.mountd

Then kill the pid an restart rpc.mountd with

/usr/sbin/rpc.mountd

(i've tested it on a running system and the established NFS connections were not affected)
Dan Hetzel
Honored Contributor

Re: showmount

Hi Stefan,

Rainer is right! As rpc.mountd is the mount request server, it won't break your present NFS mounts.
You can safely issue that command on a production box as long as you restart it immediately.

After the restart, showmount should give you the right info.

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Stefan Schulz
Honored Contributor

Re: showmount

Dan, Rainer thanks for your help. I have been afraid of killing the mountd, but with your assurence that this is ok i solved this issue.

I'm still not sure if this was a problem or just cosmetics but it is solved now.

Thanks a lot.

Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Dan Hetzel
Honored Contributor

Re: showmount

Glad it helped !

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com