LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Samba filesize limit 2Gb (https://www.linuxquestions.org/questions/linux-newbie-8/samba-filesize-limit-2gb-654535/)

slideh 07-09-2008 03:58 AM

Samba filesize limit 2Gb
 
I am running RH9.

Is there a way of getting round the file size limit of 2Gb so I can work across the network with files larger than this?

Thanks you

billymayday 07-09-2008 04:43 AM

What Samba limit do you refer to? Any limitation is probably the result of the file system you are using. How is your partition formatted? It is also possible that RH9 (which is very out of date and unsupported) has a limitation.

slideh 07-09-2008 05:16 AM

Quote:

Originally Posted by billymayday (Post 3208576)
What Samba limit do you refer to? Any limitation is probably the result of the file system you are using. How is your partition formatted? It is also possible that RH9 (which is very out of date and unsupported) has a limitation.

I can create unlimited-ish* file sizes on the local hard drive and I can create them on the host server from a windows machine but I can't create or copy them across the network from the linux machine.

Would I be right in assuming therefore that it is not a matter Linux file system being used or the way the partitions have been formatted?



* have created image files of 15 Gb and more

slideh 07-09-2008 05:18 AM

Quote:

Originally Posted by slideh (Post 3208538)
I am running RH9.

Is there a way of getting round the file size limit of 2Gb so I can work across the network with files larger than this?

Thanks you



PS...
I have mounted a windows server through
mount -t smbfs //windowsserver /mnt/windowsserver -o lfs,username=(),password=()

stress_junkie 07-09-2008 05:55 AM

2 GB is the typical file size limit in FAT32. It is also a limit in CD-ROM file systems in the traditional format. CD-ROM file size limit can be doubled by using UDF format.

You might experience a 2 GB file size limit in other file systems such as NTFS or even ext2 if you don't have a generous number of inodes and/or if your partition cluster size is too small. (Mainly cluster size). This issue can cause various limits of file sizes. I have experienced a 17 GB file size limit in ext2/ext3 when I deliberately formatted a file system with a 1024 byte cluster size.

So there you are. The issue is about what file system format you are using and the number of inodes and the disk block cluster size. (Mainly the cluster size :)). These characteristics work together to form a limit on file size.

The resolution is either to NOT use FAT32 to store large files AND to use larger values for the file system cluster size. If you are using FAT32 you may want to change to NTFS to maintain compatibility with Windows. Otherwise any of the modern popular file system formats used on Linux today should allow larger file sizes if the cluster size is about 4096 bytes per cluster.

slideh 07-09-2008 06:01 AM

Quote:

Originally Posted by stress_junkie (Post 3208626)
2 GB is the typical file size limit in FAT32. It is also a limit in CD-ROM file systems in the traditional format. CD-ROM file size limit can be doubled by using UDF format.

You might experience a 2 GB file size limit in other file systems, such as NTFS or even ext2 if you don't have a generous number of inodes and/or if your partition cluster size is too small. This issue can cause various limits of file sizes. I have experienced a 17 GB file size limit in ext2/ext3 when I deliberately formatted a file system with a small cluster size.

So there you are. The issue is about what file system format you are using and the number of inodes and the disk block cluster size. These characteristics work together to form some limit on file size.




I can create unlimited-ish* file sizes on the local hard drive and I can create them on the host server from a windows machine but I can't create or copy them across the network from the linux machine.

Would I be right in assuming therefore that it is not a matter Linux file system being used or the way the partitions have been formatted?



* have created image files of 15 Gb and more

stress_junkie 07-09-2008 06:08 AM

Quote:

Originally Posted by slideh (Post 3208633)
I can create unlimited-ish* file sizes on the local hard drive and I can create them on the host server from a windows machine but I can't create or copy them across the network from the linux machine.

Would I be right in assuming therefore that it is not a matter Linux file system being used or the way the partitions have been formatted?



* have created image files of 15 Gb and more

I am not aware of a file size limit for Samba or for network file shares. You may have to use Google or read the Samba documentation at www.samba.org.

michaelk 07-09-2008 06:24 AM

Yes, samba did have a 2GB file limitation but I do not remember what the default was for RH9. Try using the lfs option i.e.
mount -t smbfs -o lfs //server/share /mount/point

As stated if you do not need to run a legacy application it would be best to upgrade to the latest Fedora.

syg00 07-09-2008 06:32 AM

Sounds like the (old) lfs problem - elsewise is cifs an option ???.

Edit: too slow typing again - back to sleep for me ...

slideh 07-09-2008 06:54 AM

Quote:

Originally Posted by michaelk (Post 3208660)
Yes, samba did have a 2GB file limitation but I do not remember what the default was for RH9. Try using the lfs option i.e.
mount -t smbfs -o lfs //server/share /mount/point

As stated if you do not need to run a legacy application it would be best to upgrade to the latest Fedora.



This is how I mounted the windows server

mount -t smbfs //windowsserver /mnt/windowsserver -o lfs,username=(),password=()

But it still didn't allow >2Gb

trickykid 07-09-2008 09:36 AM

RH9 used Samba 2.2. This wasn't an issue with Samba or the filesystem per se but using smbmnt commands and the kernel. They had patches available but the site doesn't seem to be around any longer.

I'd recommend that you may want to upgrade Samba to get around this 2GB issue. Red Hat 9 is old itself and there have been plenty of updates, security and enhancements since, which you'll probably benefit from. You may want to try a newer version of Red Hat and if you can't afford it, go with something like CentOS which is a clone of Red Hat ES/AS, etc.

kohtwelay 07-09-2008 12:55 PM

how to create cluster if i have three computers.
please reply me by mail with commands

trickykid 07-09-2008 01:44 PM

Quote:

Originally Posted by kohtwelay (Post 3209039)
how to create cluster if i have three computers.
please reply me by mail with commands

Perhaps you should start a new thread instead of hijacking an existing one that has nothing to do with your actual question. And don't ask members to email you, that's not the point of forums.


All times are GMT -5. The time now is 06:21 PM.