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. |
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 |
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. |
: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 |
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 |
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: |
Here you can see portmapper running on a client machine. Statd and lockd are also running.
Code:
$ /usr/sbin/rpcinfo -p localhost Code:
$ /usr/sbin/rpcinfo -p turtle2 |
All times are GMT -5. The time now is 11:30 PM. |