Hello,
I was having few issues on my linux box, I am getting this error whenever I tried to mount a share on a client linux host.
# mount -t nfs 10.10.4.150:/data/pops_sva /mnt
mount: mount to NFS server '10.10.4.150' failed: RPC Error: Program not registered.
#
I see the error and I tried to restart portmap but that did not helpful. Running into same issue.
I see the rpc.statd process running and rpc.lockd process not running, how can I start rpc.lockd service
While I was going through couple of online links, mentioned "If you are using a 2.2 or later kernel with the /proc filesystem you can check the latter by reading the file /proc/filesystems and making sure there is a line containing nfs. If not, typing insmod nfs may make it magically appear if NFS has been compiled as a module; otherwise, you will need to build (or download) a kernel that has NFS support built in." -- I did checked in /proc/filesystems I didnot see nfsd entry. So in this case do I need to start nfs serivce on the client, to load nfsd module??
not sure what am I missing here to fix this issue.
# ps -ef |grep rpc.statd
rpcuser 30196 1 0 13:39 ? 00:00:00 rpc.statd
root 32214 30055 0 14:28 pts/1 00:00:00 grep rpc.statd
# ps -ef |grep rpc.lockd
root 32216 30055 0 14:28 pts/1 00:00:00 grep rpc.lockd
# more /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev cpuset
nodev binfmt_misc
nodev debugfs
nodev securityfs
nodev sockfs
nodev usbfs
nodev pipefs
nodev anon_inodefs
nodev futexfs
nodev tmpfs
nodev inotifyfs
nodev eventpollfs
nodev devpts
ext2
nodev ramfs
nodev hugetlbfs
iso9660
nodev mqueue
ext3
nodev rpc_pipefs
nodev autofs
#
Thanks,
I was able to mount the nfs filesystem.
but this is what I noticed, first time when I tired to mount it using fqdn of nfs server, I got this error message.
mount: mount to NFS server 'nfs.lab.com' failed: RPC Error: Program not registered.
Then when I tried to remount with IP address it worked fine.
Not sure why I am getting this error, but when I run nslookup on nfs.lab.com or nfs I got the response, but not sure why mount command is not picking up from DNS. What am I missing any idea ??
Thanks,
On NFS client, what is the output of:
showmount -e <ip of server>
rpcinfo -p <ip of server>
On NFS server, what is the output of:
cat /etc/exports
Here is the o/p
showmount -e <ip of server>
rpcinfo -p <ip of server>
# showmount -e 10.10.4.150
Export list for 10.10.4.150:
/data/pops_sva *
# rpcinfo -p 10.10.4.150
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 762 status
100024 1 tcp 765 status
100011 1 udp 989 rquotad
100011 2 udp 989 rquotad
100011 1 tcp 992 rquotad
100011 2 tcp 992 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 58021 nlockmgr
100021 3 udp 58021 nlockmgr
100021 4 udp 58021 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 tcp 53419 nlockmgr
100021 3 tcp 53419 nlockmgr
100021 4 tcp 53419 nlockmgr
100005 1 udp 1020 mountd
100005 1 tcp 1023 mountd
100005 2 udp 1020 mountd
100005 2 tcp 1023 mountd
100005 3 udp 1020 mountd
100005 3 tcp 1023 mountd
#
On NFS server, what is the output of: cat /etc/exports
# cat /etc/exports
/data/pops_sva *(rw,sync)
#
hello dude,
go to machine 1st (server)and run these command
1-mkdir /share
2-vi /etc/exports
3-/share *(rw,sync)
4-service nfs restart
5-service portmap restart
6-showmount -e 1.2.3.4(your ip address=1.2.3.4 change as per ur req)
you are done on server machine
now go to client machine
1-showmount -e 1.2.3.4
2-mkdir /share2
3-mount -t nfs 1.2.3.4:/share /share2
4-cd /share2
you are done ..(if still have a problem mail me at <removed email address>
note:this is only for the redhat, solaris has different command to mount and share.