LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   showmount not working? (https://www.linuxquestions.org/questions/linux-newbie-8/showmount-not-working-879178/)

brownie_cookie 05-06-2011 07:27 AM

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

Sjonnie48 05-06-2011 07:54 AM

Sometimes Google is your best friend: http://www.google.com/search?client=...utf-8&oe=utf-8

brownie_cookie 05-06-2011 08:20 AM

sometimes :) but not always :)

catkin 05-07-2011 03:04 AM

Quote:

Originally Posted by Sjonnie48 (Post 4348331)
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?

catkin 05-07-2011 03:10 AM

@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?

brownie_cookie 05-09-2011 03:23 AM

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?

catkin 05-09-2011 06:10 AM

Quote:

Originally Posted by brownie_cookie (Post 4350671)
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?

brownie_cookie 05-09-2011 06:16 AM

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

brownie_cookie 05-10-2011 01:02 AM

can someone pls help me?

catkin 05-11-2011 02:13 AM

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.


brownie_cookie 05-11-2011 02:34 AM

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

catkin 05-11-2011 03:49 AM

Quote:

Originally Posted by brownie_cookie (Post 4352865)
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.

brownie_cookie 05-11-2011 04:28 AM

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

catkin 05-11-2011 01:04 PM

Quote:

Originally Posted by brownie_cookie (Post 4352949)
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).

chrism01 05-11-2011 07:01 PM

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
:)


All times are GMT -5. The time now is 12:16 PM.