NFS mount failed RPCPROG_MNT: RPC: Timed out

Status
Not open for further replies.

bforest

Dabbler
Joined
Jun 18, 2011
Messages
10
Hello All,

Any assistance will be greatly appreciated!

I am attempting to mount an NFS share from a PCBSD workstation. [FYI, I have worked on this problem for some time and tried many different things but for simplicity, Here is basically what is happening and I will follow any direction you suggest.

System Information
Hostname homenas2.local
FreeNAS Build FreeNAS-8.0.3-RELEASE-p1-x64 (9591)
Platform AMD Athlon(tm) II X2 255 Processor
Memory 8175MB
System Time Fri Feb 3 07:53:25 2012
Uptime 7:53AM up 1 day, 23:44, 1 user
Load Average 0.00, 0.00, 0.00
OS Version FreeBSD 8.2-RELEASE-p6

# uname -a
FreeBSD workstation5 9.0-RELEASE FreeBSD 9.0-RELEASE #3: Tue Dec 27 21:59:00 UTC 2011 root@build9x64.pcbsd.org:/usr/obj/builds/i386/pcbsd-build90/fbsd-source/9.0/sys/GENERIC i386

FreeNAS NFS share configuration attached: Screenshot-02032012-08:16:30.jpg

Code:
[PCUser@ws5] ~/Desktop> su - root 
Password:
[root@ws5] ~# ls -la /mnt
total 16
drwxr-xr-x   4 root  wheel   512 Jan 30 08:35 .
drwxr-xr-x  21 root  wheel  1024 Feb  2 23:31 ..
drwxr-xr-x   2 root  wheel   512 Jan 30 08:34 nas1
drwxr-xr-x   2 root  wheel   512 Jan 30 08:34 nas2
[root@ws5] ~# cat /etc/fstab
# Device		Mountpoint		FStype		Options	Dump Pass
/dev/label/rootfs0	/		ufs	rw,noatime	1	1
/dev/label/swap0	none		swap	sw	0	0
/dev/label/var0		/var		ufs	rw,noatime	1	1
/dev/label/usr0		/usr		ufs	rw,noatime	1	1
procfs			/proc		procfs	rw		0	0
linprocfs		/compat/linux/proc	linprocfs	rw		00
homenas2:/mnt/dpool1 	/mnt/nas2   	nfs 	rw,rsize=4096,noauto 	0       0
[root@ws5] ~# mount /mnt/nas2
[tcp] homenas2:/mnt/dpool1: RPCPROG_MNT: RPC: Timed out
^C
[root@ws5] ~# mount /mnt/nas2
[tcp] homenas2:/mnt/dpool1: RPCPROG_MNT: RPC: Timed out
^C
[root@ws5] ~#


Code:
[user1@homenas2] /> su - root
Password:
[root@homenas2] ~# tail -f /var/log/messages
Feb  1 09:55:17 homenas2 freenas: Starting statd.
Feb  1 09:55:17 homenas2 freenas[1741]: Executing: /usr/sbin/service lockd quietstart
Feb  1 09:55:17 homenas2 freenas: Starting lockd.
Feb  1 09:55:17 homenas2 freenas[1741]: Executing: /bin/pgrep nfsd
Feb  2 05:14:12 homenas2 ntpd[1494]: kernel time sync status change 6001
Feb  2 05:31:17 homenas2 ntpd[1494]: kernel time sync status change 2001
Feb  2 07:30:57 homenas2 ntpd[1494]: kernel time sync status change 6001
Feb  2 07:39:30 homenas2 ntpd[1494]: kernel time sync status change 2001
Feb  3 07:47:49 homenas2 su: BAD SU user1 to root on /dev/pts/0
Feb  3 07:47:55 homenas2 su: user1 to root on /dev/pts/0
Feb  3 07:52:28 homenas2 mountd[14958]: mount request denied from 192.168.0.202 for /mnt/dpool1
Feb  3 07:54:27 homenas2 freenas[1741]: Executing: /usr/sbin/service ix-nfsd quietstart
Feb  3 07:54:27 homenas2 freenas: vfs.nfsrv.async: 0 -> 0
Feb  3 07:54:27 homenas2 freenas[1741]: Executing: /usr/sbin/service mountd reload
Feb  3 07:54:28 homenas2 freenas[1741]: Executing: /bin/pgrep nfsd


I changed my settings for: 'Authorized network or IP addresses' from 192.168.0.0 (attempt to reference the subnet) to 192.168.0.202 (actual address of my workstation) and that seems to have gotten rid of the: 'mount request denied from 192.168.0.202' at the freenas server but .... still I have the RPC issue and no mounting at the workstation. I also changed the mapalluser to Root and mapallgroup to wheel. see second attachment: Screenshot - 02032012 - 08:31:47.jpg

Code:
[root@ws5] ~# mount /mnt/nas2
[tcp] homenas2:/mnt/dpool1: RPCPROG_MNT: RPC: Timed out
^C
[root@ws5] ~# mount /mnt/nas2
[tcp] homenas2:/mnt/dpool1: RPCPROG_MNT: RPC: Timed out
^C
[root@ws5] ~# date
Fri Feb  3 08:32:56 EST 2012
[root@ws5] ~# mount /mnt/nas2
[tcp] homenas2:/mnt/dpool1: RPCPROG_MNT: RPC: Timed out
[tcp] homenas2:/mnt/dpool1: RPCPROG_MNT: RPC: Timed out
[tcp] homenas2:/mnt/dpool1: RPCPROG_MNT: RPC: Timed out
^C


Code:
[root@homenas2] ~# ps -ax | grep rpc
 1186  ??  Ss     0:00.14 /usr/sbin/rpcbind
15007  ??  Ss     0:00.11 /usr/sbin/rpc.statd
15025  ??  Ss     0:00.21 /usr/sbin/rpc.lockd
38645   0  R+     0:00.00 grep rpc

Code:
[root@ws5] ~# ps -ax | grep rpc
 1833  ??  Is     0:00.01 /usr/sbin/rpcbind
35312   0  S+     0:00.00 grep rpc

[root@ws5] ~# cat /etc/rc.conf | grep nfs
nfs_client_enable="YES"

[root@ws5] ~# ps -ax | grep nfs
35748   0  S+     0:00.00 grep nfs


Thanks in advance for any assistance you can provide.
http://forums.pcbsd.org/showthread.php?t=16152
Ben
 

Attachments

  • Screenshot - 02032012 - 08:16:30.jpg
    Screenshot - 02032012 - 08:16:30.jpg
    11 KB · Views: 450
  • Screenshot - 02032012 - 08:31:47.jpg
    Screenshot - 02032012 - 08:31:47.jpg
    10.8 KB · Views: 450

bforest

Dabbler
Joined
Jun 18, 2011
Messages
10
I changed my settings for: 'Authorized network or IP addresses' from 192.168.0.0 (attempt

Partial SOLU: to the 'Authorized network or IP addresses':
Apparently in FreeNAS v8.0.3 (WebGUI) you can only enter EITHER
* Single network entry [ xx.xx.xx.xx/xx ]
* Single OR multiple IP address entries [ xx.xx.xx.xx xx.xx.xx.xx xx.xx.xx.xx ]
. . . . . . . . . . . #(space delimited)

See: [ _http://support.freenas.org/ticket/1076 ]
I also performed some simple tests using two workstations to verify this.
 

bforest

Dabbler
Joined
Jun 18, 2011
Messages
10
I attempted to connect to the FreeNAS server (mount the same NFS share) on an old laptop but received the same RPCBIND Timeout error.

# uname -a
FreeBSD pcbsd 7.2-STABLE FreeBSD 7.2-STABLE #3: Mon Oct 5 10:30:23 EDT 2009 kris@pcbsd:/usr/obj/usr/src/sys/PCBSD.i386 i386
 

bforest

Dabbler
Joined
Jun 18, 2011
Messages
10
Solved??

Wow...

I believe I have found "a" solution to the "RPCPROG_MNT: RPC: Timed out" issue. I found the following thread:

http://forums.freebsd.org/showthread.php?t=14415

Which basically told me to add the host IP and hostname of my workstation to the /etc/hosts file of the FreeNAS server. I did this and the share mounted immediately upon issuing the mount command.

I am happy to have the share mounting now but... my workstations are DHCP so the address could change.

I was hoping for a better solution. (I still don't completely understand the problem or the "why".) I could just change my DHCP to send specific IP's to specific machines but...

Any thoughts please??
Anyone reading these??

Ben
 

bforest

Dabbler
Joined
Jun 18, 2011
Messages
10
Ok... The above temporary fix is even more temporary because when I reboot the FreeNAS box the /etc/hosts file gets restored to the original version.

Could someone tell me how to make persistent changes to the /etc/hosts file or is there somewhere in the GUI I can add these entries?

My system boots off of a 4Gb USB flash drive.

Code:
:from /var/run/dmesg.boot:
. . .
da0: <hp v165w 1100> Removable Direct Access SCSI-0 device 
da0: 40.000MB/s transfers
da0: 3894MB (7975296 512 byte sectors: 255H 63S/T 496C)
. . .
GEOM: da0s1: geometry does not match label (16h,63s != 255h,63s).
. . .
 
Status
Not open for further replies.
Top