Can't connect to NFS share

NAS4Free & Network filesystems
Forum rules
Set-Up GuideFAQsForum Rules
anp66
NewUser
NewUser
Posts: 1
Joined: 27 Aug 2012 08:23

Can't connect to NFS share

Postby anp66 » 30 Aug 2012 04:49

I have problem connecting from my linux server to the NAS4Free NFS share.

I can't se if the problem is on the linux server or the NAS4Free server.

I have, for now, disabled firewall on both servers.

This is what I have on the NAS4Free server:

Mointpoint:
Partition type : MBR
Filesystem : ufs
Mount point name : linux
Description : UFS filesystem
Read only : Mount the file system read-only (even the super-user may not write it). = no
File system check : Enable foreground/background file system consistency check during boot process. = yes
Owner : root
Group : wheel
mode
Owner : Read = yes, Write = yes, Execute = yes
Group : Read = yes, Write = yes, Execute = yes
Others : Read = yes, Write = yes, Execute = yes


NFS Service:
Settings:
Network File System : enabled
Number of servers : 4

Shares:
Path : /mnt/linux
Map all users to root : Yes
Authorised network : 192.168.1.0/24
Comment : NAS4Free shared NFS (linux)
All dirs : Share all sub directories = yes
Read only : Specifies that the file system should be exported read-only = no
Quiet : Inhibit some of the syslog diagnostics for bad lines in /etc/exports = no



The /etc/exports is like this:

nas4free:/etc# cat exports
/mnt/linux -alldirs -mapall=root -network 192.168.1.0 -mask 255.255.255.0

From the NAS4Free webinterface can I uount the share, this is the result:
root: Successfully unmounted '/mnt/linux'

I can map that share again and this is the result:
root: Device /dev/ufsid/503bebe9765e757f mounted using UFS on '/mnt/linux'


From the linux (Mandriva) box can I see the share:

# showmount --no-headers -e 192.168.1.6
/mnt/linux 192.168.1.0

But I can't mount the share from the linux box:
mount -v 192.168.1.6:/mnt/linux /mnt/backup
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: timeout set for Wed Aug 29 22:02:50 2012
mount.nfs: trying text-based options 'vers=4,addr=192.168.1.6,clientaddr=192.168.1.5'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'addr=192.168.1.6'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.6 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.6 prog 100005 vers 3 prot UDP port 826
mount.nfs: portmap query retrying: RPC: Timed out
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: trying 192.168.1.6 prog 100005 vers 3 prot TCP port 826
mount.nfs: portmap query failed: RPC: Timed out
mount.nfs: mount to NFS server '192.168.1.6:/mnt/linux' failed: timed out, giving up

Do I have a problem on the linux server or the NAS4Free server ?

Hope someone can guide me in the right direction :-)

Regards
Anders

User avatar
alexey123
Moderator
Moderator
Posts: 1280
Joined: 19 Aug 2012 06:22
Location: Israel, Karmiel
Contact:

Re: Can't connect to NFS share

Postby alexey123 » 30 Aug 2012 05:04

Check, NFS port 2049 on your nas is open ?
Image
Home9.2.0.1 - Sandstorm (revision 972) / x64-embedded on SAPPHIRE Pure Mini E350 / 8G RAM
Test 9.3.0.1 - Nayla (revision 1213) x64-embedded on AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ / M61PME-S2 / 3G RAM

User avatar
raulfg3
Site Admin
Site Admin
Posts: 3209
Joined: 22 Jun 2012 20:13
Location: Madrid (ESPAÑA)
Contact:

Re: Can't connect to NFS share

Postby raulfg3 » 30 Aug 2012 07:00


User avatar
raulfg3
Site Admin
Site Admin
Posts: 3209
Joined: 22 Jun 2012 20:13
Location: Madrid (ESPAÑA)
Contact:

Re: Can't connect to NFS share

Postby raulfg3 » 31 Aug 2012 07:25

please read topic: viewtopic.php?f=25&t=1038

novad
NewUser
NewUser
Posts: 1
Joined: 26 Oct 2012 20:59

Re: Can't connect to NFS share

Postby novad » 26 Oct 2012 21:18

Hi all,

I've exactly the same problem as anp66.

I've the same config on the nas4free server as anp66.
I use following version of nas4free:

Version 9.1.0.1 - Sandstorm (revision 358)
Built date Thu Oct 18 00:10:09 JST 2012
Platform OS FreeBSD 9.1-RC2 (reldate 901000)
Platform x64-embedded on Intel(R) Core(TM) i5-3330 CPU @ 3.00GHz

I've checked that port 2049 is open:

root@Inspiron-6000:/mnt# nmap -T4 -A -v 10.1.1.6

Starting Nmap 5.21 ( http://nmap.org ) at 2012-10-26 23:11 CEST
NSE: Loaded 36 scripts for scanning.
Initiating ARP Ping Scan at 23:11
Scanning 10.1.1.6 [1 port]
Completed ARP Ping Scan at 23:11, 0.11s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 23:11
Completed Parallel DNS resolution of 1 host. at 23:12, 6.53s elapsed
Initiating SYN Stealth Scan at 23:12
Scanning 10.1.1.6 [1000 ports]
Discovered open port 445/tcp on 10.1.1.6
Discovered open port 443/tcp on 10.1.1.6
Discovered open port 111/tcp on 10.1.1.6
Increasing send delay for 10.1.1.6 from 0 to 5 due to 60 out of 149 dropped probes since last increase.
Discovered open port 992/tcp on 10.1.1.6
Discovered open port 139/tcp on 10.1.1.6
Discovered open port 2049/tcp on 10.1.1.6
Completed SYN Stealth Scan at 23:12, 17.72s elapsed (1000 total ports)

And finally I've checked that my NFS shares are visible:

root@Inspiron-6000:/mnt# showmount --no-header -e 10.1.1.6
/mnt/pool1 10.1.1.0
/mnt/pool1/vmware 10.1.1.0
/mnt/test 10.1.1.0

All seems correct until I try to connect to the share:

root@Inspiron-6000:/mnt# mount 10.1.1.6:/mnt/test /mnt/nas4free/
mount.nfs: mount to NFS server '10.1.1.6:/mnt/test' failed: timed out, giving up

Any help would be appreciated :-)

Thank you all

shakky4711
Engaged User
Engaged User
Posts: 262
Joined: 25 Jun 2012 06:27

Re: Can't connect to NFS share

Postby shakky4711 » 04 Nov 2012 15:22

Hello,

This line is working for me with a Debian/GNU Squeeze client:

Code: Select all

mount -t nfs 192.168.0.177:/mnt/tank /home/user/nas -o rw,soft,udp,nolock,wsize=8192,rsize=16384


Good luck

Shakky
Last edited by shakky4711 on 04 Nov 2012 19:26, edited 1 time in total.

User avatar
daoyama
Developer
Developer
Posts: 175
Joined: 25 Aug 2012 07:28
Location: Japan

Re: Can't connect to NFS share

Postby daoyama » 04 Nov 2012 16:37

novad wrote:root@Inspiron-6000:/mnt# mount 10.1.1.6:/mnt/test /mnt/nas4free/
mount.nfs: mount to NFS server '10.1.1.6:/mnt/test' failed: timed out, giving up


Did you use correct MTU at both side?
Try with "wsize=1024,rsize=1024" option.
NAS4Free 9.3.0.2 r1190 (x64-embedded)
MB: ASRock E350M1/USB3, CPU: on-board, Mem: 16GB, LAN: Realtek RTL8111E (on-board), Storage: ZFS mirror (2TBx2)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM

User avatar
daoyama
Developer
Developer
Posts: 175
Joined: 25 Aug 2012 07:28
Location: Japan

Re: Can't connect to NFS share

Postby daoyama » 04 Nov 2012 16:56

what port is used?
try this on NAS4Free:

# rpcinfo -p

Daisuke Aoyama
NAS4Free 9.3.0.2 r1190 (x64-embedded)
MB: ASRock E350M1/USB3, CPU: on-board, Mem: 16GB, LAN: Realtek RTL8111E (on-board), Storage: ZFS mirror (2TBx2)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM

Merioz
NewUser
NewUser
Posts: 1
Joined: 18 Apr 2013 12:04

Re: Can't connect to NFS share

Postby Merioz » 18 Apr 2013 12:20

I have the same problem with clonezilla, and when I attempt to connect to the NFS server is not responding; firewall service is disable and i arrange of a single nfs directory.


Return to “NFS”

Who is online

Users browsing this forum: No registered users and 0 guests