Difference between revisions of "Test if an NFS server is accessible"

From Linuxintro
imported>ThorstenStaerk
(Created page with "To test if an NFS server is accessible, use the command showmount. To do this, open a console and enter # showmount -e ''localhost'' in this case ''localhost'' w...")
 
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
To test if an [[NFS]] server is accessible, use the [[command]] [[showmount]]. To do this, [[open a console]] and enter
+
To test if an [[NFS]] server is accessible, use the [[command]] showmount. To do this, [[open a console]] and enter
 
  # showmount -e ''localhost''
 
  # showmount -e ''localhost''
 
in this case ''localhost'' will be queried for NFS shares ("''exports''") that it provides.
 
in this case ''localhost'' will be queried for NFS shares ("''exports''") that it provides.
Line 6: Line 6:
 
  clnt_create: RPC: Program not registered
 
  clnt_create: RPC: Program not registered
  
Stupid error message, right? Anyway after starting the NFS service, you will find an output telling you what is available via NFS like this:
+
Stupid error message, right? Anyway after starting the NFS service using the command
 +
/etc/init.d/nfs-user-server start || /etc/init.d/nfsserver start
 +
you will find an output telling you what is available via NFS like this:
 
  # showmount -e localhost
 
  # showmount -e localhost
 
  Export list for localhost:
 
  Export list for localhost:
 
  /public *
 
  /public *
 +
 +
That means you can [[mount]] the following:
 +
mount localhost:/public /mnt
 +
 +
If you get an error message
 +
portmapper not running
 +
 +
Start the following service:
 +
/etc/init.d/rpcbind start
  
 
= See also =
 
= See also =
 
* [[nfs]]
 
* [[nfs]]

Latest revision as of 09:07, 17 October 2013

To test if an NFS server is accessible, use the command showmount. To do this, open a console and enter

# showmount -e localhost

in this case localhost will be queried for NFS shares ("exports") that it provides.

In case the nfs service is not started you might get the following error message:

clnt_create: RPC: Program not registered

Stupid error message, right? Anyway after starting the NFS service using the command

/etc/init.d/nfs-user-server start || /etc/init.d/nfsserver start

you will find an output telling you what is available via NFS like this:

# showmount -e localhost
Export list for localhost:
/public *

That means you can mount the following:

mount localhost:/public /mnt

If you get an error message

portmapper not running 

Start the following service:

/etc/init.d/rpcbind start

See also