Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba and 2Gig file size limit
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cmay4
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2002
Posts: 109

PostPosted: Mon Jan 20, 2003 3:42 am    Post subject: Samba and 2Gig file size limit Reply with quote

I have Gentoo running a samba server (ext3), and mounting a WinXP NTFS partition with the following line in /etc/fstab:

Code:
//winxp/backup     /backup smbfs defaults,credentials=/home/may/.smbpasswd,uid=may,gid=users      0 0


I use this setup to run nightly backups to the NTFS drive. Once the backup files got bigger than 2GIG, the jobs would fail. I've had files > 2GIG on both the gentoo and winxp boxes, so I know the filesystems will support it. I figure it must be Samba. I am running the newest version of samba in portage, which I though had no file size limitations.

Does anyone know how to get around this problem?

Chuck
Back to top
View user's profile Send private message
krt
Tux's lil' helper
Tux's lil' helper


Joined: 27 Nov 2002
Posts: 102
Location: Earth

PostPosted: Mon Jan 20, 2003 4:00 am    Post subject: Re: Samba and 2Gig file size limit Reply with quote

cmay4 wrote:
I have Gentoo running a samba server (ext3), and mounting a WinXP NTFS partition with the following line in /etc/fstab:

Code:
//winxp/backup     /backup smbfs defaults,credentials=/home/may/.smbpasswd,uid=may,gid=users      0 0


I use this setup to run nightly backups to the NTFS drive. Once the backup files got bigger than 2GIG, the jobs would fail. I've had files > 2GIG on both the gentoo and winxp boxes, so I know the filesystems will support it. I figure it must be Samba. I am running the newest version of samba in portage, which I though had no file size limitations.

Does anyone know how to get around this problem?

Chuck



I've had this problem before ( never did find the answer ), but I can confirm your logic that it is samba causing the error.
_________________
Everyone has something clever for a signature but me.
Back to top
View user's profile Send private message
cmay4
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2002
Posts: 109

PostPosted: Mon Jan 20, 2003 4:05 am    Post subject: Hmmm... Reply with quote

Maybe this is just a Samba limitation, although I'm suprised that it would have existed for this long. I have run across many references to this problem, but no answers. I'll keep searching...
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Mon Jan 20, 2003 4:55 am    Post subject: Reply with quote

I had this problem as well but I could not find a solution
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Mon Jan 20, 2003 7:39 am    Post subject: Reply with quote

User mode programs get 2G in linux, unless I'm mistaken. If using gentoo-sources, you can raise this to 3.5, but if it is a built-in limitation, too bad.
Back to top
View user's profile Send private message
xuttuh
n00b
n00b


Joined: 05 Jan 2003
Posts: 26

PostPosted: Mon Jan 20, 2003 9:03 am    Post subject: Reply with quote

I have seen this limitation with Windows shares. I was creating a image of my gentoo box with ghost. I thought it was just a limitation with ghost since it runs from dos.
_________________
"Bad spellers of the world untie"
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon Jan 20, 2003 9:25 am    Post subject: Re: Samba and 2Gig file size limit Reply with quote

cmay4 wrote:
I have Gentoo running a samba server (ext3), and mounting a WinXP NTFS partition with the following line in /etc/fstab:

Code:
//winxp/backup     /backup smbfs defaults,credentials=/home/may/.smbpasswd,uid=may,gid=users      0 0


I use this setup to run nightly backups to the NTFS drive. Once the backup files got bigger than 2GIG, the jobs would fail. I've had files > 2GIG on both the gentoo and winxp boxes, so I know the filesystems will support it. I figure it must be Samba. I am running the newest version of samba in portage, which I though had no file size limitations.

Does anyone know how to get around this problem?

Chuck


i think it is your backup application wich has the limit and not samba. if you are using tar, then it could be tar wich does not allow you to have a >2GB file.

if you want to try if samba has a 2gb limit, try:
Code:
dd if=/dev/nul of=/backup/bigfile bs=1024k count=2560


i would be surpriced, if samba would not produce this ~2.5gb file! but maybe the ntfs filesystem implementation in linux has a 2gb limit?!?

cheers

SteveB
Back to top
View user's profile Send private message
cmay4
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2002
Posts: 109

PostPosted: Mon Jan 20, 2003 7:41 pm    Post subject: Big files Reply with quote

The dd command didn't work for me (just created a zero byte file on local or samba shares), so I used "cat" to create a large file. It still didn't work:

Code:
$ ll bigfile
-rw-r--r--    1 may      users    2524065396 Jan 20 14:26 bigfile
$ cp bigfile /backup
File size limit exceeded

Does anyone have any ideas? Really seems like a Samba limitation to me.

Chuck
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Mon Jan 20, 2003 9:43 pm    Post subject: Reply with quote

zhenlin wrote:
User mode programs get 2G in linux, unless I'm mistaken. If using gentoo-sources, you can raise this to 3.5, but if it is a built-in limitation, too bad.



where in the kernel can you change this ?
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon Jan 20, 2003 10:24 pm    Post subject: Re: Big files Reply with quote

cmay4 wrote:
The dd command didn't work for me (just created a zero byte file on local or samba shares), so I used "cat" to create a large file. It still didn't work:

Code:
$ ll bigfile
-rw-r--r--    1 may      users    2524065396 Jan 20 14:26 bigfile
$ cp bigfile /backup
File size limit exceeded

Does anyone have any ideas? Really seems like a Samba limitation to me.

Chuck


sorry!!! i was this morning not 100% awake :)

Code:
dd if=/dev/random of=/backup/bigfile bs=1024k conv=sync count=2560


cheers

SteveB
Back to top
View user's profile Send private message
chardros
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 136
Location: Andromeda

PostPosted: Tue Jan 21, 2003 1:03 am    Post subject: Reply with quote

I am dealing with this very issue now. I've found a few patches and so forth, and was going to hack up the samba ebuild or something to get LFS support going, but I wanted to see if anyone else had solved it...

The patches I found for smbfs and smbmount are here:
http://www.hojdpunkten.ac.se/054/samba/

Thoughts? Thanks in advance.
Back to top
View user's profile Send private message
cmay4
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2002
Posts: 109

PostPosted: Tue Jan 21, 2003 3:58 am    Post subject: Reply with quote

steveb wrote:
sorry!!! i was this morning not 100% awake
Code:
dd if=/dev/random of=/backup/bigfile bs=1024k conv=sync count=2560


Code:
$ dd if=/dev/random of=/backup/bigfile bs=1024k conv=sync count=2560
File size limit exceeded


No difference. Definitely the smbfs.

chardros wrote:
I am dealing with this very issue now. I've found a few patches and so forth, and was going to hack up the samba ebuild or something to get LFS support going, but I wanted to see if anyone else had solved it...

The patches I found for smbfs and smbmount are here:
http://www.hojdpunkten.ac.se/054/samba/

Thoughts? Thanks in advance.


No thoughts, but I'd love to hear your results. Didn't see any 2.4.19 patches, just 2.4.18.

Chuck
Back to top
View user's profile Send private message
cmay4
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2002
Posts: 109

PostPosted: Thu Jan 23, 2003 5:14 am    Post subject: NFS Reply with quote

Does anyone know if NFS has the same limitation?
Back to top
View user's profile Send private message
Rhiz()m3
n00b
n00b


Joined: 31 Aug 2002
Posts: 41

PostPosted: Fri Jan 24, 2003 3:13 am    Post subject: add these cflags to your makefile Reply with quote

add these cflags to your samba makefile: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64?

this will enable large file support for samba.


http://www.lrz-muenchen.de/services/compute/linux-cluster/develop/LF.html
_________________
--------> Why don't you bastards start wearing human skins?<--------
Back to top
View user's profile Send private message
cmay4
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2002
Posts: 109

PostPosted: Sat Jan 25, 2003 7:09 pm    Post subject: Re: add these cflags to your makefile Reply with quote

Rhiz()m3 wrote:
add these cflags to your samba makefile: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64?

this will enable large file support for samba.


http://www.lrz-muenchen.de/services/compute/linux-cluster/develop/LF.html


Thanks for the tip. If I am using the ebuild of Samba, can I just set my CFLAGS environment variable before doing an emerge -u samba? If not, does anyone know how to enable these flags in the ebuild? Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum