LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mounting NFS (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-nfs-612918/)

crazy8 01-11-2008 01:35 PM

mounting NFS
 
Ok I am running Fedora Core 6 (as per request of my boss) and I am trying to mount one of our servers. He showed me a way that I can add a server as a mount on the machine im putting together. Here is what he gave me for instructions.

I have a directory called "scooter" /scooter
then either I...
mount scooter:/ /scooter or..
mount 192.168.1.20:/ /scooter

Then after its all mounted I can just cp it all over. But when i run "mount 192.168.1.20:/ /scooter" I get an error that says "mount to NFS server '192.168.1.20' failed: RPC Error: Program not registered." If I run this "mount scooter:/ /scooter" I get an error that says "cant get address for scooter."

Any ideas how to fix this?
Thanks alot.

MasterC 01-11-2008 01:42 PM

Looks like a problem with portmap? You typically need to start certain services and depending on what you are doing:
/etc/init.d/nfsd start

might pull in all the required services. In Fedora you could use the service command:
service nfs start
OR
service nfsd start

Off the top of my head I cannot remember which one Fedora uses.

Semi off-topic, you really ought to be able to use any distro you are comfortable with, but if you aren't comfortable with any and your boss is going to be teaching you how to use a particular one I suppose it's his/her choice. But that should also mean they should give you a little bit more information (like which services need to be running).

Cool

Emerson 01-11-2008 01:46 PM

Probably portmap is not running. Start it before mounting NFS volumes.
"mount 192.168.1.20:/ /scooter" I'm not an NFS expert, but this command looks weird, looks like root of that server is exported. Shouldn't be so. You can test what's exported with showmount, 'showmount 192.168.1.20 -e'.

Man, am I slow.

MasterC 01-11-2008 01:52 PM

:D

The command does look odd, but there isn't a restriction on mounting root filesystems. It's just odd, but it should work from a "can I do it" perspective.

-chad

crazy8 01-11-2008 02:46 PM

MasterC: service nfs start is what gets used in fedora core. I tried that and everything checked out "OK". Then i tried to run the mount again and I still get "Program not registered."

As far as my boss and linux go, I do know enough about linux to get around and do some stuff in the shell, he just recomended that I use FC6on this box.

Emerson: When I run 'showmount 192.168.1.20 -e' I get an error that says "clntudp_create: RPC: Program not registered."

Any other ideas?

Thanks guys. :D

Emerson 01-11-2008 03:11 PM

1. Look up what's running on localhost and server with rpcinfo -p hostname.
2. Make sure you do not have anything restrictive in hosts.allow and hosts.deny.
3. :confused:

Emerson 01-11-2008 03:49 PM

Here you can see portmapper running on a client machine. Statd and lockd are also running.

Code:

$ /usr/sbin/rpcinfo -p localhost
  program vers proto  port
    100000    2  tcp    111  portmapper
    100000    2  udp    111  portmapper
    100024    1  udp  32768  status
    100024    1  tcp  43794  status
    100021    1  tcp  32880  nlockmgr
    100021    3  tcp  32880  nlockmgr
    100021    4  tcp  32880  nlockmgr

Here's the server. (Not running Linux but it doesn't matter).
Code:

$ /usr/sbin/rpcinfo -p turtle2
  program vers proto  port
    100000    4  tcp    111  portmapper
    100000    3  tcp    111  portmapper
    100000    2  tcp    111  portmapper
    100000    4  udp    111  portmapper
    100000    3  udp    111  portmapper
    100000    2  udp    111  portmapper
    100000    4    7    111  portmapper
    100000    3    7    111  portmapper
    100000    2    7    111  portmapper
    100005    1  udp    778  mountd
    100005    3  udp    778  mountd
    100005    1  tcp    990  mountd
    100005    3  tcp    990  mountd
    100003    2  udp  2049  nfs
    100003    3  udp  2049  nfs
    100024    1  udp    804  status
    100024    1  tcp    838  status
    100003    2  tcp  2049  nfs
    100003    3  tcp  2049  nfs
    100021    0  udp    873  nlockmgr
    100021    1  udp    873  nlockmgr
    100021    3  udp    873  nlockmgr
    100021    4  udp    873  nlockmgr
    100021    0  tcp    600  nlockmgr
    100021    1  tcp    600  nlockmgr
    100021    3  tcp    600  nlockmgr
    100021    4  tcp    600  nlockmgr



All times are GMT -5. The time now is 11:30 PM.