Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

NFS vs 2 GB file size limit?

Featured Replies

Hi,

 

I just got into a strange behavior and would like to know if it is normal and if it can be fixed.

 

I have my disk1 that is shared both with CIFS and NFS. As my previous file server is on Unix, I figured I would reduce the network load by doing a direct copy over NFS, removing the need to read the files on "oldserver" from my Windows desktop and writing it to unraid. So, I did start a copy directly over NFS and for every file that are bigger then 2 GB, I got a "Invalid argument" during the copy. However, if I try to copy this file from my Windows desktop to Unraid over CIFS, it has no issue with the size and will transfer the whole thing (19 GB for one of my specific test file).

 

Is that a normal behavior with NFS? I've saw the thread about file size limit but... it is far bigger then 2 GB so the issue is not with the file system. My only guess is either with the cp command itself or with NFS itself.

 

Note that I had to mount my unraid folder by forcing a NFS V2 mount because my old server is actually on Nexenta (OpenSolaris) and... it is incompatible with the Linux/Unraid NFS because of a security requirement that is not implemented in the Linux version.

 

I hope somebody has a solution.  Thank you for your time.

 

ehfortin

I don't have the NFS answer, but an alternative to consider is rsync to rsync on unRAID by running it as a server or through inetd

  • Author

I did try to do rsync over the nfs mount and got the same result (file were stopping at 2 GB in size). I've since unmounted the NFS share and did the opposite mounting on the Unraid server my CIFS that reside on my Nexenta box. I've now restarted the rsync and... it is working.

 

So, I have a solution but still don't know why NFS is acting strangely (at least, everything seems to point at NFS). Is there any 2GB file size limit in NFS V2? Actually, I just did a quick search and it seems that NFSV2 effectively has a 2 GB size limit. NFSV3 may or may not have this limit, depending on the implementation. That's what I just found in a NFS faq.

 

That's too bad it seems impossible to use NFSV3 between an OpenSolaris/Nexenta host and a linux box. Well, at least when mounting the NFS from Unraid on OpenSolaris. The inverse may work (didn't tried it but... I would expect the Linux NFS client to be less restrictive then the OpenSolaris one so... it may work).

 

ehfortin

If you have alot of data and also want to keep uid information intact, it is faster to enable rsync in inetd and do a direct rsync transfer to the rsync server (bypassing any filesystem mount layer).

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.