copying files to shared folder via nfs create 0KB files

Discussion about using NAS on Linux and Unix OS.
Post Reply
andreaci
New here
Posts: 8
Joined: Thu Apr 02, 2020 10:26 pm

copying files to shared folder via nfs create 0KB files

Post by andreaci » Fri Apr 03, 2020 4:24 pm

QNAP TS-432XU firmware 4.4.2.1262 or TS-432XU firm 4.4.1.1216
it's impossible to copy file on qnap via nfs : the procedures create same files with 0KB dimension.
No problem same procedures, same files, same clients to shared folder via nfs on others QNAP TS-231P
Please help, it's necessary for backups
Andrea

User avatar
storageman
Ask me anything
Posts: 5511
Joined: Thu Sep 22, 2011 10:57 pm

Re: copying files to shared folder via nfs create 0KB files

Post by storageman » Fri Apr 03, 2020 5:11 pm


andreaci
New here
Posts: 8
Joined: Thu Apr 02, 2020 10:26 pm

Re: copying files to shared folder via nfs create 0KB files

Post by andreaci » Fri Apr 03, 2020 5:34 pm

Yes, same NFS settings.
But the problem is not for the clients. The clients can access to shared folder. Copying creates only empty file on qnap.

User avatar
storageman
Ask me anything
Posts: 5511
Joined: Thu Sep 22, 2011 10:57 pm

Re: copying files to shared folder via nfs create 0KB files

Post by storageman » Fri Apr 03, 2020 5:54 pm

Just copy something to Public folder, same?

andreaci
New here
Posts: 8
Joined: Thu Apr 02, 2020 10:26 pm

Re: copying files to shared folder via nfs create 0KB files

Post by andreaci » Fri Apr 03, 2020 6:20 pm

same also in "Public" folder

User avatar
storageman
Ask me anything
Posts: 5511
Joined: Thu Sep 22, 2011 10:57 pm

Re: copying files to shared folder via nfs create 0KB files

Post by storageman » Fri Apr 03, 2020 6:22 pm

Typically that's a permission issue.
" https://serverfault.com/questions/95191 ... zero-bytes"

andreaci
New here
Posts: 8
Joined: Thu Apr 02, 2020 10:26 pm

Re: copying files to shared folder via nfs create 0KB files

Post by andreaci » Fri Apr 03, 2020 6:37 pm


andreaci
New here
Posts: 8
Joined: Thu Apr 02, 2020 10:26 pm

Re: copying files to shared folder via nfs create 0KB files

Post by andreaci » Fri Apr 03, 2020 7:20 pm

I add this information
trying to copy a file from source folder (client linux) to destination folder (qnap)
so copying file "sourcefold/myfile.txt" from client to qnap share folder "destinationfold".
As result, on the qnap I have a file "destinationfold/myfile.txt" empty (0 KB) and on the client i have the error Cannot complete the operation because the file or folder sourcefold/myfile.txt already exists.

User avatar
storageman
Ask me anything
Posts: 5511
Joined: Thu Sep 22, 2011 10:57 pm

Re: copying files to shared folder via nfs create 0KB files

Post by storageman » Fri Apr 03, 2020 10:45 pm

How much trouble would it give you resetting the config on that box?

andreaci
New here
Posts: 8
Joined: Thu Apr 02, 2020 10:26 pm

Re: copying files to shared folder via nfs create 0KB files

Post by andreaci » Fri Apr 03, 2020 10:52 pm

storageman wrote:
Fri Apr 03, 2020 10:45 pm
How much trouble would it give you resetting the config on that box?
No troubles because the nas is not in production but i don't know how to reset. Why would you do this? i passed from original firmware to latest firmware without any solution. What should be better ?

User avatar
storageman
Ask me anything
Posts: 5511
Joined: Thu Sep 22, 2011 10:57 pm

Re: copying files to shared folder via nfs create 0KB files

Post by storageman » Fri Apr 03, 2020 10:56 pm

Some setting got screwed seems like.
Go for 3 second reset, or go through Control Panel. Reset settings

https://www.qnap.com/en/how-to/knowledg ... explained/

If this doesn't fix it would ticket time.

andreaci
New here
Posts: 8
Joined: Thu Apr 02, 2020 10:26 pm

Re: copying files to shared folder via nfs create 0KB files

Post by andreaci » Tue Apr 07, 2020 8:12 pm

Finally i found the solution. even if it is not very elegant.
I downgraded the nas to the same firmware that i have in the oldest. From 4.4.1 (4.4.2) to 4.3.6
All works like a charm.

I'm waiting for support's answer.

User avatar
storageman
Ask me anything
Posts: 5511
Joined: Thu Sep 22, 2011 10:57 pm

Re: copying files to shared folder via nfs create 0KB files

Post by storageman » Tue Apr 07, 2020 10:20 pm

Odd, 4.3.6.1070 build 20190919 says: "Users could not access mounted shared folders via NFS."

So having fixed it in 4.3.6 did they mess it up again!

andreaci
New here
Posts: 8
Joined: Thu Apr 02, 2020 10:26 pm

Re: copying files to shared folder via nfs create 0KB files

Post by andreaci » Tue Apr 07, 2020 10:26 pm

storageman wrote:
Tue Apr 07, 2020 10:20 pm
Odd, 4.3.6.1070 build 20190919 says: "Users could not access mounted shared folders via NFS."

So having fixed it in 4.3.6 did they mess it up again!
for me 4.3.6.0895

Perhaps it's linux problem. I found over the net two other posts with same situation

https://www.ixsystems.com/community/thr ... try.79388/

https://unix.stackexchange.com/question ... empty-file

Post Reply

Return to “Linux & Unix (NFS)”