LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-25-2023, 12:35 AM   #1
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Rep: Reputation: 8
Errors while mounting NFS share from Linux to QNAP NAS


I'm trying to mount a share from a Linux computer to QNAP via NFS. NOT QNAP NFS share to Linux! Generally, the share mounts, but after the 3rd attempt:

Code:
mount -w -vt nfs -o rw,soft -O user=root,password=pass 192.168.0.2:/something_tam /share/CACHEDEV2_DATA/mnt

Result:
mount.nfs: timeout set for Sat Dec 2 12:31:42 2023
mount.nfs: trying text-based options 'soft,vers=4.2,addr=192.168.0.2,clientaddr=192.168.0.7'
mount.nfs: mount(2): Invalid argument
mount.nfs: trying text-based options 'soft,vers=4,minorversion=1,addr=192.168.0.2,clientaddr=192.168.0.7'
mount.nfs: mount(2): Invalid argument
mount.nfs: trying text-based options 'soft,vers=4,addr=192.168.0.2,clientaddr=192.168.0.7'
The problem is probably with the syntax implemented by QNAP. I tried mount.nfs4, types=4 and others. Errors always pop up. Maybe someone knows what the syntax of the mount command should look like in the case of QNAP?
 
Old 12-25-2023, 06:41 PM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,173

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
It looks to be trying nfs4.2 first, then retrying lower versions until it gets one that works. Maybe
Code:
mount -w -vt nonfs4 ...
that should skip nfs4, but auto try others. Or try nfs,nonfs4 to specify nfs, but not version4.
 
1 members found this post helpful.
Old 12-25-2023, 08:55 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,716

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Look at the output of the mount command to see how the share is being mounted. For version 3 it should look something like
Quote:
server:/share on /mount_point type nfs (rw,relatime,vers=3...)
To explicitly mount version 3 try:
Code:
mount -vt nfs -o rw,soft,vers=3 192.168.0.2:/something_tam /share/CACHEDEV2_DATA/mnt
The option -w is the same thing as -o rw

Last edited by michaelk; 12-25-2023 at 08:57 PM.
 
1 members found this post helpful.
Old 12-26-2023, 12:27 AM   #4
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Original Poster
Rep: Reputation: 8
THX - WORKS:

Code:
[/share/homes/media/Pobrane] # /bin/mount -vt nfs -o rw,soft,vers=3 -O user=<user>,password=<pass> 192.168.0.2:/home/maciek/back/RSYNC /share/CACHEDEV2_DATA/mnt
mount.nfs: timeout set for Tue Dec 26 07:28:04 2023
mount.nfs: trying text-based options 'soft,vers=3,addr=192.168.0.2'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.0.2 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.0.2 prog 100005 vers 3 prot UDP port 20048
192.168.0.2:/home/maciek/back/RSYNC on /share/CACHEDEV2_DATA/mnt type nfs (rw,soft,vers=3)
 
Old 12-26-2023, 11:51 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,716

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
The nfs client negotiates the version with the server, trying version 4 first, 3 second, and 2 last. You are just seeing the attempts because your using the verbose option (-v) and using vers=3 bypasses the negotiation. Did you verify without the vers option nfs was connecting using version 3? The actual error maybe due to the -w which may not be supported by the QNAP mount command or nfs client.

Last edited by michaelk; 12-26-2023 at 02:23 PM.
 
Old 12-26-2023, 06:42 PM   #6
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Original Poster
Rep: Reputation: 8
Installed version of QNAP FW, the NFS server can work with NFS ver 3 and 4.
Versions 2 and 4.2 are not supported by server. I have no information about client.
But of course the problem I have is QNAP NFS client implementation.
It looks very strange. If ver 4 is specified and error is reported but share is mounted anyway:

Code:
[/share/homes/media/Pobrane] # /bin/mount -vt nfs -o rw,soft,vers=4 -O user=<user>,password=<pass> 192.168.0.2:/home/maciek/back/RSYNC /share/CACHEDEV2_DATA/mnt
mount.nfs: timeout set for Wed Dec 27 01:27:00 2023
mount.nfs: trying text-based options 'soft,vers=4.2,addr=192.168.0.2,clientaddr=192.168.0.7'
mount.nfs: mount(2): Invalid argument
mount.nfs: trying text-based options 'soft,vers=4,minorversion=1,addr=192.168.0.2,clientaddr=192.168.0.7'
mount.nfs: mount(2): Invalid argument
mount.nfs: trying text-based options 'soft,vers=4,addr=192.168.0.2,clientaddr=192.168.0.7'
192.168.0.2:/home/maciek/back/RSYNC on /share/CACHEDEV2_DATA/mnt type nfs (rw,soft,vers=4)
If ver 3 is specified it works good without errors and negotiation.
Without NFS ver specification, negotiation accrues and share is mounted - as follows:

Code:
[/share/homes/media/Pobrane] # /bin/mount -vt nfs -o rw,soft -O user=<user>,password=<pass> 192.168.0.2:/home/maciek/back/RSYNC /share/CACHEDEV2_DATA/mnt
mount.nfs: timeout set for Wed Dec 27 01:29:47 2023
mount.nfs: trying text-based options 'soft,vers=4.2,addr=192.168.0.2,clientaddr=192.168.0.7'
mount.nfs: mount(2): Invalid argument
mount.nfs: trying text-based options 'soft,vers=4,minorversion=1,addr=192.168.0.2,clientaddr=192.168.0.7'
mount.nfs: mount(2): Invalid argument
mount.nfs: trying text-based options 'soft,vers=4,addr=192.168.0.2,clientaddr=192.168.0.7'
192.168.0.2:/home/maciek/back/RSYNC on /share/CACHEDEV2_DATA/mnt type nfs (rw,soft)
Bit strange. But not the first strange ones in QNAP FW.
 
  


Reply

Tags
mount, nas, nfs



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mount NFS share from Linux to QNAP NAS mackowiakp Linux - Networking 5 12-22-2019 09:53 PM
LXer: Extending Linux Photographic Workflow with a QNAP NAS LXer Syndicated Linux News 0 11-27-2017 05:42 AM
Best practice for accessing Qnap NAS from linux Mint Manganus Linux - Newbie 3 11-11-2013 07:15 AM
Locked out of linux based NAS (QNAP TS-409Pro) -- My fault though kwiksand Linux - General 5 01-17-2010 04:53 PM
QNAP NAS-server under Linux? ronald-be Linux - Hardware 2 09-16-2007 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration