LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-06-2011, 07:27 AM   #1
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
showmount not working?


Hi all

I'm trying to use this command

Code:
# showmount -e host 2>&1
mount clntudp_create: RPC: Program not registered
but as you can see, i'm getting an error. How can i solve this?

thx
 
Old 05-06-2011, 07:54 AM   #2
Sjonnie48
Member
 
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308

Rep: Reputation: 43
Sometimes Google is your best friend: http://www.google.com/search?client=...utf-8&oe=utf-8
 
Old 05-06-2011, 08:20 AM   #3
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Original Poster
Rep: Reputation: 12
sometimes but not always
 
Old 05-07-2011, 03:04 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by Sjonnie48 View Post
Sometimes Google is your best friend: http://www.google.com/search?client=...utf-8&oe=utf-8
What is the purpose/effect of the &ie=utf-8&oe=utf-8 in that link?

EDIT: and of the client=ubuntu?

Last edited by catkin; 05-07-2011 at 03:08 AM.
 
Old 05-07-2011, 03:10 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
@brownie_cookie: this Google search lists many pages with your error message. Have you tried re-starting the NFS daemons? If so how and what was the output/effect?
 
1 members found this post helpful.
Old 05-09-2011, 03:23 AM   #6
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Original Poster
Rep: Reputation: 12
Code:
# service nfs restart
Shutting down NFS mountd:                                  [FAILED]
Shutting down NFS daemon:                                  [FAILED]
Shutting down NFS quotas:                                  [FAILED]
Shutting down NFS services:                                [FAILED]
Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]
# showmount
Hosts on hostname:
that's all i got... so does that mean there aren't any mounts on this host?
 
Old 05-09-2011, 06:10 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by brownie_cookie View Post
does that mean there aren't any mounts on this host?
It looks as if the NFS daemons were not running. What happens if you run showmount after re-starting the NFS daemons like that?
 
Old 05-09-2011, 06:16 AM   #8
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Original Poster
Rep: Reputation: 12
Code:
# service nfs restart
Shutting down NFS mountd:                                  [  OK  ]
Shutting down NFS daemon:                                  [  OK  ]
Shutting down NFS quotas:                                  [  OK  ]
Shutting down NFS services:                                [FAILED]
Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]
# showmount
Hosts on hostname:
#
this is what i get.. after
Quote:
Hosts on hostname:
i get nothing
 
Old 05-10-2011, 01:02 AM   #9
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Original Poster
Rep: Reputation: 12
can someone pls help me?
 
Old 05-11-2011, 02:13 AM   #10
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
AFAIK showmount gets its data from /var/lib/nfs/rmtab. Do you have anything in that file? BTW, the rpc.mountd man page says this about it:
Code:
   The rmtab File
       For  every  mount  request  received from an NFS client, rpc.mountd adds an entry to the /var/lib/nfs/rmtab file. When
       receiving an unmount request, that entry is removed.

       However, this file is mostly ornamental. One, the client can continue to  use  the  file  handle  even  after  calling
       rpc.mountd's UMOUNT procedure. And two, if a client reboots without notifying rpc.mountd , a stale entry will remain
       in rmtab.
 
Old 05-11-2011, 02:34 AM   #11
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Original Poster
Rep: Reputation: 12
no, i have nothing in those files. So that's why he doesn't show anything..
hmmm

i'm confused, i KNOW that i have NFS mounts, becuase when i do
Code:
mount
i get a lot of feedback
Code:
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/cciss/c0d0p1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
ip:/CVBDISK on /CVBDISK type nfs (rw,addr=ip)
hostname:/VOLUME1/PUBLIC on /nasdisk4 type nfs (rw,addr=ip)
/dev/ram0 on /ramdisk type ext2 (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
i just need to know WHAT my mount (or mountpoints) ARE
i DON'T need to know what size they are and all that stuff, i just need to know the names
 
Old 05-11-2011, 03:49 AM   #12
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by brownie_cookie View Post
i just need to know the names
Do you mean you want to know the device file names for NFS file systems that your computer has mounted as an NFS client from NFS servers? If so, showmount is the wrong command because it shows the NFS clients of your computer's NFS service. One way would be to run df --type=NFS and parse the output.
 
Old 05-11-2011, 04:28 AM   #13
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Original Poster
Rep: Reputation: 12
okay, i do this

Code:
# df --type=nfs
Filesystem             1K-blocks      Used Available Use% Mounted on
ip:/CVBDISK            143364032 132783712  10580320  93% /CVBDISK
host:/VOLUME1/PUBLIC   1452397728 1111896352 340501376  77% /nasdisk4
so this means, those 2 are the mounts for my server?
and with mounts i mean links with another server
 
Old 05-11-2011, 01:04 PM   #14
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by brownie_cookie View Post
so this means, those 2 are the mounts for my server?
and with mounts i mean links with another server
Yes -- your computer, as an NFS client, has mounted those NFS file systems from those NFS servers (I presume you have changed the actual hostname to host and the actual IP address to ip).
 
Old 05-11-2011, 07:01 PM   #15
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
Those are NFS mounts where this system is an NFS client.
The prev NFS start/stop/showmount cmds should only be run on an NFSserver.
You should shutdown those NFS services again unless you intend to be a server.

You should find this well explained here http://www.linuxtopia.org/online_boo...ion/index.html.
Please add your distro to your profile for more accurate help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
showmount strange behaviour manyrootsofallevil Red Hat 2 12-12-2010 04:02 AM
I am unable to use showmount ram_rajavarapu Linux - Enterprise 3 09-25-2009 10:20 AM
showmount -e : everyone vs. asterisk tibbitts Linux - Networking 1 06-12-2008 02:34 PM
(ftp server) showmount error greeeeb Slackware 2 09-18-2007 06:10 AM
no showmount vvuiverine Linux - Networking 1 03-28-2004 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration