I am trying to mount a nfs share on compactRio-9068 with "mount -t nfs" command but it fails with message: "Connection refused" . Details about the nfs server are as follows:
Linux host "eeiash" running nfs server is running with 64-bit CentOS Linux (Ip Addr: 126.96.36.199). nfs exports on this server are:
[root@eeiash]# cat /etc/exports
/tmp localhost(rw,sync) 188.8.131.52/24(rw,sync,no_root_squash) 10.35.13.0/24(rw,sync,no_root_squash) *(ro,sync)
I could see that /tmp share is exported from server side
[root@eeiash]# showmount -e
Export list for eeiash:
rpcInfo on server host is as follows. Everything sems okay on server side.
[root@eeiash]# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 905 status
100024 1 tcp 908 status
100011 1 udp 1000 rquotad
100011 2 udp 1000 rquotad
100011 1 tcp 1003 rquotad
100011 2 tcp 1003 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 33001 nlockmgr
100021 3 udp 33001 nlockmgr
100021 4 udp 33001 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100021 1 tcp 44065 nlockmgr
100021 3 tcp 44065 nlockmgr
100021 4 tcp 44065 nlockmgr
100005 1 udp 1015 mountd
100005 1 tcp 1018 mountd
100005 2 udp 1015 mountd
100005 2 tcp 1018 mountd
100005 3 udp 1015 mountd
100005 3 tcp 1018 mountd
When tried to mount /tmp share on compactRio-9068 (Ip Addr: 184.108.40.206)
admin@compactRio-9068:# mount -t nfs 220.127.116.11:/tmp /mnt/iasHome
mount: mounting 18.104.22.168:/tmp on /mnt/iasHome failed: Connection refused
I also tried "-v" option with mount command but seems like busybox "mount" on compactRio does not recongnize "-v" option does not provide any details information about failure.
Later, I checked /var/log/messages on server side (on eeiash)
Jul 2 15:31:12 nas mountd: authenticated mount request from 22.214.171.124:846 for /tmp (/tmp)It appears
It appears that server has authinticated the request from compactRio client but somehow compactRio fails to establish connection with nfs share and display the error message. I also tried to mount this share on another linux based host which worked fine. Not sure if compactRio needs any additional settings/packages.
Has somebody come across similar issue in past? How do I debug it?
Solved! Go to Solution.
What login are you logged in as? Are you trying to do this from an SSH prompt, or via the System Exec.vi? Can you supply the exact command you are using?
Can you check to see if there are some NFS utilities that are available that are not currently installed on the target through opkg? Uncomment the feed addresses in /etc/opkg/angstrom-*-feed.conf files (and change the URL to point away from us.feeds.angstrom-distribution.org as that mirror went down, point it to just feeds.angstrom-distribution.org. Sorry if it's not exact, working from memory here), then run the following
opkg list | grep -i nfs
I am logged in to compactRio as admin (root user with uid=0). I am performing this mount operation from ssh prompt. Here is a list of commands I used:
1. ssh to compactRio (126.96.36.199) as admin from other linux host
2. Commands used on ssh shell of compactRio:
# cd /mnt
# mkdir iasHome
# mount -t nfs 188.8.131.52:/tmp /mnt/iasHome
(this commands shows error message: mount: mounting 184.108.40.206:/tmp on /mnt/iasHome failed: Connection refused)
I will check about the nfs packages and update on this thread soon.
I did update the list of packages from opkg repo feed (src/gz angstrom-base http://feeds.angstrom-distribution.org/feeds/next/ipk/eglibc/armv7a/base/).
With "# opkg list | grep -i nfs", I don't see any nfs utilities on updated list. I also tried "opkg list-installed | grep -i nfs" but it returned blank as well.
Thanks, figured there may be some tools that are needed but not installed (as is the case with CIFS/SAMBA). You may want to try installing util-linux-mount to see if the more-fully-featured version of mount works for you. Another thing to check would be to install a tool like tcpdump (on either the 9068 or the server) or wireshark (on the server) to compare and contrast the two mountings: the working mount from another linux machine and the not-so-work-y mount from the 9068.
I did install available "util-linux-ng-mount" but did not help. I had to upgrade "libc6" to get rid of "unsatisfied dependency" for this package. Late, I removed "util-linux-ng-mount" which reverted "mount" link back to busybox.
Do you think there will be some issue for compactRio normal operation due upgraded libc6? Is there a way to downgrade it to previous version ?
Later, I came across following links to get the fix:
Following mount command worked fine and I was able to get the nfs share mounted on compactRio:
# mount -o port=2049,nolock,proto=tcp -t nfs 220.127.116.11:/tmp/ /mnt/iasHome
Thank you or all help.
If you test and find no issues, it is reasonably likely that there will be no issues keeping the updated libc6 on the target. Note however that this library did not get nearly the same level of testing on the 9068 as the older 2.11 libc6 did, so it is advisable that you format and reinstall if it is not too inconvenient to do so.
After getting nfs share mounted through manual shell command, I am trying to mount this nfs share during boot-up time. In order to make that happen, I added following line at the end of the file: "/etc/fstab"
18.104.22.168:/tmp /mnt/iasHome nfs port=2049,nolock,proto=tcp 0 0
I verified the accuracy of line by issuing a mount command : "mount /mnt/iasHome" which worked fine.
However, this mount operation does not work during system start-up. One logical explaination could be that network is not up by the time system tries to mount this share. Is there a way to fix this?
In the options, you need something to tell the system that it should automatically mount the network share.
X.X.X.X:/tmp /mnt/iasHome nfs auto,port=2049,nolock,proto=tcp 0 0
The other entries in the file are either manually mounted by startup scripts or are already mounted by being the rootfs (as configured) of the system.