Hello, I'm trying to set up a samba server for a friend who has a mac. He's running OSX, version 10.2. He's got some really big video editing files that are well in excess of 2gb. We're trying to back these up to the samba server, but it quits right around 2gb. That seems to be a magical number. This is with version 2.2.3 of Samba, and Linux-Mandrake 8.2, ext3 file system. I saw some talk on another list that this was fixed in a somewhat recent version, but then broken for the latest one. Comments? Also, the same guy has some really funky filenames, ones that have (and sometimes start with) all sorts of punctuation in them. Samba is renaming some of these, which is a problem when trying to restore them. Is there a way to fix this behaviour? Bob
On Tue, 10 Dec 2002, Bob Puff@NLE wrote:> Hello, > > I'm trying to set up a samba server for a friend who has a mac. He's running > OSX, version 10.2. He's got some really big video editing files that are well > in excess of 2gb. We're trying to back these up to the samba server, but it > quits right around 2gb. That seems to be a magical number. This is with > version 2.2.3 of Samba, and Linux-Mandrake 8.2, ext3 file system. > > I saw some talk on another list that this was fixed in a somewhat recent > version, but then broken for the latest one. Comments?Well, the Linux ext3 filesystem itself has a maximum file size limit of 2 GB so that isn't really a samba issue. You would need to use a filesystem such as xfs to support file sizes greater than this. Andy
> -----Original Message----- > From: Bob Puff@NLE [mailto:bob@nleaudio.com]> You sure about that? I'm pretty sure I've had >2gb files on > my ext3 drives, > 2.4.x kernel.RedHat Linux 7.0 with all current RedHat bugfixes and glibc upgrades. Custom-compiled 2.4.17 kernel with ext2/ext3 ACL patches. On an ext2 partition: [root@bigbox /export]# dd if=/dev/zero of=test.temp bs=1k count=3000000 3000000+0 records in 3000000+0 records out [root@bigbox /export]# ls -l test.temp -rw-r--r-- 1 root root 3072000000 Dec 10 11:06 test.temp I think the ext2/ext3 2 gig limit is just a common misconception.
> -----Original Message----- > From: andy thomas [mailto:andy@ic.ac.uk]> > RedHat Linux 7.0 with all current RedHat bugfixes and glibc > upgrades. > > Custom-compiled 2.4.17 kernel with ext2/ext3 ACL patches. > On an ext2 > > partition: > > > > [root@bigbox /export]# dd if=/dev/zero of=test.temp bs=1k > count=3000000 > > 3000000+0 records in > > 3000000+0 records out > > [root@bigbox /export]# ls -l test.temp > > -rw-r--r-- 1 root root 3072000000 Dec 10 11:06 test.temp > > > > > > I think the ext2/ext3 2 gig limit is just a common misconception. > > The 2 GB limit definitely applies to ext2 (certainly on Slackware 8 or > SuSE 7.3 platforms) and I thought the same would have applied > to ext3 as it's an extension of ext2?I think maybe it depends on the glibc version, or perhaps the kernel version. I'm using a 2.4.17 kernel and glibc 2.2.4. If the 2 gig limit "definately applies to ext2", then how did I create the above 3 gig file on an ext2 partition?
This has already been fixed in the CVS tree and will be in the next release (2.2.7a scheduled for later today). Cale Fairchild wrote:> > I have seen the same 2 GB problem on my IRIX running 6.5.17 using an XFS file > system. I backup my Windows box to our SGI server and the backup file is about > 5.5GB when finished. This was working fine with samba 2.2.4 but as soon as I > upgraded to 2.2.7 it stops the transfer at the 2GB limit exactly. The function > which throws the error is smbd/fileio.c seek_file and I checked the size of > the typedef SMB_OFF_T is 8 bytes as it should be but the pos variable toggles > from +2^13-1 to -2^31 as if somewhere in the chain of calls to that procedure > it is passed as a int (32 bits) instead of a long (64 bits) on my system. I am > currently trying to back-track the call stack at that point which is going > slowly, if anyone has a suggestion on how to quickly do that, aside from > looking at the code I would appreciate it. >-- =====================================================================Herb Lewis Silicon Graphics Networking Engineer 1600 Amphitheatre Pkwy MS-510 Strategic Software Organization Mountain View, CA 94043-1351 herb@sgi.com Tel: 650-933-2177 http://www.sgi.com Fax: 650-932-2177 PGP Key: 0x8408D65D ======================================================================
> So that being the case > (that it's not the filesystem), > why isn't Samba handling >2gb files?A friend of mine had a similar problem. It turned out that it was his shell (csh, if I remember correctly, maybe bash), which was not capable to redirect beyond 2^31-1st byte, because it was not 64-bit-aware. Try a POSIX shell. _____________________________________________________________ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus