2

I'm mounting a samba share with some sparse files over cifs with -o username=user,gid=999,uid=999,rw,vers=1.0. The NAS has 3TB capacity and 500 GB free disk space, creating a 4TB sparse file with truncate -s 4T file.img is no problem. When I mount the share with vers=2.1 I get the error file too large for truncate invokations size size > 2GB as well as for dd, e.g. dd if=/dev/sda12 of=/mnt/samba_share/output.img results in

dd writing to '/mnt/samba_share/output.img': File too large`
4194304+0 records in
4194303+1 records out
2147483647 bytes (2,1 GB) copied, 33,5466 s, 64,0 MB/s

There's obviously no problem for the underlying filesystem to create the sparse file (it's not recognized in cifs 1.0, but that's another issue, I guess). Why does samba or DSM limit the size? How to overcome this?

Samba protocol version 2.1 seems to be the latest supported (there's a checkbox for SMB2 support in DSM 5 control panel; specifying vers=3.0 as mount option causes errormount error(22): Invalid argument`).

Kalle Richter
  • 259
  • 6
  • 17
  • Are you using a 32-bit or a 64-bit server? You do not mention the OS, distribution, version either. – mdpc Aug 24 '14 at 02:05
  • The processor architecture is `armadaxp`, I'd say that the architecture is 32-bit [http://www.marvell.com/embedded-processors/armada-xp/assets/Marvell-ArmadaXP-SoC-product%20brief.pdf], but Synology seems to do a lot to hide useful information. All the rest is stated clearly in the question - DSM is short for Synology Diskstation manager! – Kalle Richter Aug 24 '14 at 09:21
  • Realize that a 2GB individual file size is characteristic of 32-bit situation. – mdpc Aug 24 '14 at 16:35
  • Ok, I get it, I really don't seem to be able to figure it out and asked http://serverfault.com/questions/623797/what-bus-size-does-the-armadaxp-cpu-with-armv7l-architecture-of-a-synology-ds214 – Kalle Richter Aug 25 '14 at 12:22
  • I'm having the same issue with CentOS 7 (64-bit) and the latest cifs-utils pkg, along with an Isilon cluster running OneFS 7, and a Windows 2008 R2 Server with a direct attached RAID connected to it, shared out via SMB. If I force vers=2.1 in fstab or mount.cifs, then I can't copy files over 4GB in size. Isilon and 2008 R2 both support SMB 2.1. If I force vers=1.0 in fstab or mount.cifs I do *not* have this problem! But the speeds are crap -- I'm using 10Gb, and cifs 1.0 is limited in read and write sizes. Any ideas, anyone? Please do not say use NFS -- that is not an option. We use AD to hand –  Aug 28 '14 at 01:42

0 Answers0