Re: smbfs 2 GB file size limit

2008-11-22 Thread Derek Ragona

At 09:21 AM 11/20/2008, David Horn wrote:

On Thu, Nov 20, 2008 at 7:07 AM, Derek Ragona
[EMAIL PROTECTED] wrote:
 At 12:50 PM 11/18/2008, David Horn wrote:

 On Tue, Nov 18, 2008 at 7:06 AM, Derek Ragona
 [EMAIL PROTECTED] wrote:
 At 12:23 AM 11/18/2008, David Horn wrote:

 On Mon, Nov 17, 2008 at 8:36 PM, Derek Ragona
 [EMAIL PROTECTED] wrote:
 I have FreeBSD 7.0 Release and if I mount_smbfs  a network NTFS share I
 have
 a 2 GB size limit on files.  I checked the handbook and list archives but
 have not found a solution.

 I just ran a quick test, and was not able to reproduce this issue with
 the mount_smbfs from FreeBSD 7.0.  I tried against a Windows 2003
 Server SP2, Windows XP SP3, and Samba 3.0 {on FreeBSD 7} with a 3.5GB
 file.

 Was your issue with reading from or writing to a SMB share ?

 It was writing to a smb share.


 What is the server software and OS version ?
 (if Microsoft Windows, please include Service Pack number as well, as
 it might make a difference)

 Windows 2003 server 32bit.

 How much disk space is left on your server volume ?

 Over a terabyte free

 Are there disk quotas enabled on the server ?

 None

 What error message are you getting from your FreeBSD client (if any) ?

 No error message, it just stopped writing at 1 Gb.  I was doing this using
 scp.

 Whoa, hopefully you just made a few typos here, or we are going down
 the wrong path of investigation.

 Did you really mean to say scp or cp ?
  scp(1)   - secure copy (remote file copy program)
  cp(1)- copy files

 If you really meant scp, then the problem is not mount_smbfs, but
 instead likely a buggy scp client or server (which does not use smb
 for transport, but ssh)

 What is the exact byte count that your write stops at ?  You
 originally stated 2GB, then 1GB.


 Can you check the smb server logs and see if you are getting any error
 messages there ?

 Well I'm just mounting the volume to FreeBSD from the Windows server so
 not
 sure I'll find much in the logs besides the system log, but I will look.

 You may want to get a Wireshark trace and see if you can capture the
 SMB error message/error code.

 I have heard of people running into similar problems when running
 against older server software (NT 4.0/old samba) when the SMB session
 did not negotiate large file/large write support (a function of the
 SMB server capabilities session negotiation)

 I saw posts to that effect and that you needed samba 3.x to support large
 files sizes, and the lfs option.  But the mount_smbfs doesn't offer any
 large file option.


 Only bother with this next bit if you are morbidly curious as to how
 things work rather than just want to solve your problem, as it gets
 into the nitty gritty details of smb:

 mount_smbfs will allow for lfs (CAP_LARGE_FILE) automatically by
 specifying it's dialect capabilities in the smb negotiation.

 If you umount your smb share, then start a tcpdump you can capture the
 smb negotiation Capabilities bitmask to see if CAP_LARGE_FILE is
 being negotiated - the server specifies this capability.  The client
 just sends the dialects of smb supported.For example:

 tcpdump -vvv -s 1500 -i em0 host server.example.com | grep Capabilities

 {  where em0 is the network interface in use on FreeBSD and
 server.example.com is the hostname/ip address of your smb server  }

 Then do a mount of the smb share (while tcpdump is running) and you
 should capture the Capabilities negotiated.

 For example:

 Capabilities=0x1F3FD

 If you decode the bitmask by using this reference :
 http://msdn.microsoft.com/en-us/library/aa302230.aspx {hint:  only
 look at the last four bytes of the Capabilities line (e.g. F3FD in my
 example)} Or if you have kernel source installed, you can look in
 /usr/src/sys/netsmb/smb.h for the details.

- Capabilities: 0x0001F3FD
   RawMode:(...1) Supports
 SMB_COM_READ_RAW and SMB_COM_WRITE_RAW (CAP_RAW_MODE)
   MpxMode:(..0.) No
 Support for SMB_COM_READ_MPX or SMB_COM_WRITE_MPX (CAP_MPX_MODE)
   Unicode:(.1..) Supports
 Unicode Strings (CAP_UNICODE)
   LargeFiles: (1...) Supports
 large files with 64-bit offsets (CAP_LARGE_FILES)
   NTSMBs: (...1) Supports
 SMB NTLM 0.12 dialect commands (implies CAP_NT_FIND) (CAP_NT_SMBS)
   RPCRemoteAPIs:  (..1.) Supports
 remote API requests using RPC over named pipe connections
 (CAP_RPC_REMOTE_APIS)
   NTStatus:   (.1..) Can
 respond with 32-bit NT status codes in Status (CAP_NT_STATUS)
   LevelIIOplocks: (1...) Supports
 Level II oplocks ( CAP_LEVEL_II_OPLOCKS)
   LockAndRead:(...1) Supports
 SMB_COM_LOCK_AND_READ and 

Re: smbfs 2 GB file size limit

2008-11-21 Thread Derek Ragona

At 02:05 PM 11/20/2008, Chris Pratt wrote:


On Nov 20, 2008, at 7:21 AM, David Horn wrote:


On Thu, Nov 20, 2008 at 7:07 AM, Derek Ragona


No error message, it just stopped writing at 1 Gb.  I was doing
this using
scp.


Whoa, hopefully you just made a few typos here, or we are going down
the wrong path of investigation.

Did you really mean to say scp or cp ?
 scp(1)   - secure copy (remote file copy
program)
 cp(1)- copy files

...

What ssh version is running on both of these other systems ?
What OS are both of these other systems ?



So it looks to me like there is some issue with the scp that is
within
FreeBSD i386 7.


As per my previous message, I still suggest running single variable
tests to make sure that you know what is causing the failure, but if
you just want to jump to a possible solution, you can try updating ssh
to the latest in the ports tree (5.0p1).

If you have the FreeBSD ports collection installed and updated using
portsnap(8) or csup(1) , just do:

cd /usr/ports/security/openssh-portable
make install

Otherwise, install / update your ports collection using portsnap(8)
(fetch update or fetch extract) first, then install openssh-portable.

Good Luck.

---Dave


I apologize in advance if this has nothing to do with this. I'd ignored
this thread completely since it had SMB in the subject. Today I
noticed the comments shown above that it was apparently actually
related to ssh (scp). The fired a synapse of a recent session failure
I was having after updating a server to 7.0 that normally accrues
about a gig of changes a day. My backup server was running 5.5
and rsyncing the diffs each day. After the upgrade of the application
server, the 5.5 client began to hang it's rsync session every day. I
updated
the 5.5 server to 7.0 (which OBTW replaced the ssh suite) and the
problem disappeared. I didn't see in the thread what the actual ssh
client OS or rev was but perhaps the client is downrev and there is an
issue there. I did no research to figure out why, having my backup
server so far downrevved made it's upgrade my first potshot and it
worked.


Chris,

Thanks for the additional input.  I am going to try updating openssh from 
the ports as this appears to be an issue with scp.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: smbfs 2 GB file size limit

2008-11-20 Thread Derek Ragona

At 12:50 PM 11/18/2008, David Horn wrote:

On Tue, Nov 18, 2008 at 7:06 AM, Derek Ragona
[EMAIL PROTECTED] wrote:
 At 12:23 AM 11/18/2008, David Horn wrote:

 On Mon, Nov 17, 2008 at 8:36 PM, Derek Ragona
 [EMAIL PROTECTED] wrote:
 I have FreeBSD 7.0 Release and if I mount_smbfs  a network NTFS share I
 have
 a 2 GB size limit on files.  I checked the handbook and list archives but
 have not found a solution.

 I just ran a quick test, and was not able to reproduce this issue with
 the mount_smbfs from FreeBSD 7.0.  I tried against a Windows 2003
 Server SP2, Windows XP SP3, and Samba 3.0 {on FreeBSD 7} with a 3.5GB
 file.

 Was your issue with reading from or writing to a SMB share ?

 It was writing to a smb share.


 What is the server software and OS version ?
 (if Microsoft Windows, please include Service Pack number as well, as
 it might make a difference)

 Windows 2003 server 32bit.

 How much disk space is left on your server volume ?

 Over a terabyte free

 Are there disk quotas enabled on the server ?

 None

 What error message are you getting from your FreeBSD client (if any) ?

 No error message, it just stopped writing at 1 Gb.  I was doing this using
 scp.

Whoa, hopefully you just made a few typos here, or we are going down
the wrong path of investigation.

Did you really mean to say scp or cp ?
 scp(1)   - secure copy (remote file copy program)
 cp(1)- copy files

If you really meant scp, then the problem is not mount_smbfs, but
instead likely a buggy scp client or server (which does not use smb
for transport, but ssh)

What is the exact byte count that your write stops at ?  You
originally stated 2GB, then 1GB.


 Can you check the smb server logs and see if you are getting any error
 messages there ?

 Well I'm just mounting the volume to FreeBSD from the Windows server so not
 sure I'll find much in the logs besides the system log, but I will look.

 You may want to get a Wireshark trace and see if you can capture the
 SMB error message/error code.

 I have heard of people running into similar problems when running
 against older server software (NT 4.0/old samba) when the SMB session
 did not negotiate large file/large write support (a function of the
 SMB server capabilities session negotiation)

 I saw posts to that effect and that you needed samba 3.x to support large
 files sizes, and the lfs option.  But the mount_smbfs doesn't offer any
 large file option.


Only bother with this next bit if you are morbidly curious as to how
things work rather than just want to solve your problem, as it gets
into the nitty gritty details of smb:

mount_smbfs will allow for lfs (CAP_LARGE_FILE) automatically by
specifying it's dialect capabilities in the smb negotiation.

If you umount your smb share, then start a tcpdump you can capture the
smb negotiation Capabilities bitmask to see if CAP_LARGE_FILE is
being negotiated - the server specifies this capability.  The client
just sends the dialects of smb supported.For example:

tcpdump -vvv -s 1500 -i em0 host server.example.com | grep Capabilities

{  where em0 is the network interface in use on FreeBSD and
server.example.com is the hostname/ip address of your smb server  }

Then do a mount of the smb share (while tcpdump is running) and you
should capture the Capabilities negotiated.

For example:

Capabilities=0x1F3FD

If you decode the bitmask by using this reference :
http://msdn.microsoft.com/en-us/library/aa302230.aspx {hint:  only
look at the last four bytes of the Capabilities line (e.g. F3FD in my
example)} Or if you have kernel source installed, you can look in
/usr/src/sys/netsmb/smb.h for the details.

   - Capabilities: 0x0001F3FD
  RawMode:(...1) Supports
SMB_COM_READ_RAW and SMB_COM_WRITE_RAW (CAP_RAW_MODE)
  MpxMode:(..0.) No
Support for SMB_COM_READ_MPX or SMB_COM_WRITE_MPX (CAP_MPX_MODE)
  Unicode:(.1..) Supports
Unicode Strings (CAP_UNICODE)
  LargeFiles: (1...) Supports
large files with 64-bit offsets (CAP_LARGE_FILES)
  NTSMBs: (...1) Supports
SMB NTLM 0.12 dialect commands (implies CAP_NT_FIND) (CAP_NT_SMBS)
  RPCRemoteAPIs:  (..1.) Supports
remote API requests using RPC over named pipe connections
(CAP_RPC_REMOTE_APIS)
  NTStatus:   (.1..) Can
respond with 32-bit NT status codes in Status (CAP_NT_STATUS)
  LevelIIOplocks: (1...) Supports
Level II oplocks ( CAP_LEVEL_II_OPLOCKS)
  LockAndRead:(...1) Supports
SMB_COM_LOCK_AND_READ and SMB_COM_WRITE_AND_UNLOCK (CAP_LOCK_AND_READ)
  NtFind: (..1.) Supports
Windows NT information level requests (SMB_QUERY_?, SMB_SET_?)

Re: smbfs 2 GB file size limit

2008-11-20 Thread David Horn
On Thu, Nov 20, 2008 at 7:07 AM, Derek Ragona
[EMAIL PROTECTED] wrote:
 At 12:50 PM 11/18/2008, David Horn wrote:

 On Tue, Nov 18, 2008 at 7:06 AM, Derek Ragona
 [EMAIL PROTECTED] wrote:
 At 12:23 AM 11/18/2008, David Horn wrote:

 On Mon, Nov 17, 2008 at 8:36 PM, Derek Ragona
 [EMAIL PROTECTED] wrote:
 I have FreeBSD 7.0 Release and if I mount_smbfs  a network NTFS share I
 have
 a 2 GB size limit on files.  I checked the handbook and list archives but
 have not found a solution.

 I just ran a quick test, and was not able to reproduce this issue with
 the mount_smbfs from FreeBSD 7.0.  I tried against a Windows 2003
 Server SP2, Windows XP SP3, and Samba 3.0 {on FreeBSD 7} with a 3.5GB
 file.

 Was your issue with reading from or writing to a SMB share ?

 It was writing to a smb share.


 What is the server software and OS version ?
 (if Microsoft Windows, please include Service Pack number as well, as
 it might make a difference)

 Windows 2003 server 32bit.

 How much disk space is left on your server volume ?

 Over a terabyte free

 Are there disk quotas enabled on the server ?

 None

 What error message are you getting from your FreeBSD client (if any) ?

 No error message, it just stopped writing at 1 Gb.  I was doing this using
 scp.

 Whoa, hopefully you just made a few typos here, or we are going down
 the wrong path of investigation.

 Did you really mean to say scp or cp ?
  scp(1)   - secure copy (remote file copy program)
  cp(1)- copy files

 If you really meant scp, then the problem is not mount_smbfs, but
 instead likely a buggy scp client or server (which does not use smb
 for transport, but ssh)

 What is the exact byte count that your write stops at ?  You
 originally stated 2GB, then 1GB.


 Can you check the smb server logs and see if you are getting any error
 messages there ?

 Well I'm just mounting the volume to FreeBSD from the Windows server so
 not
 sure I'll find much in the logs besides the system log, but I will look.

 You may want to get a Wireshark trace and see if you can capture the
 SMB error message/error code.

 I have heard of people running into similar problems when running
 against older server software (NT 4.0/old samba) when the SMB session
 did not negotiate large file/large write support (a function of the
 SMB server capabilities session negotiation)

 I saw posts to that effect and that you needed samba 3.x to support large
 files sizes, and the lfs option.  But the mount_smbfs doesn't offer any
 large file option.


 Only bother with this next bit if you are morbidly curious as to how
 things work rather than just want to solve your problem, as it gets
 into the nitty gritty details of smb:

 mount_smbfs will allow for lfs (CAP_LARGE_FILE) automatically by
 specifying it's dialect capabilities in the smb negotiation.

 If you umount your smb share, then start a tcpdump you can capture the
 smb negotiation Capabilities bitmask to see if CAP_LARGE_FILE is
 being negotiated - the server specifies this capability.  The client
 just sends the dialects of smb supported.For example:

 tcpdump -vvv -s 1500 -i em0 host server.example.com | grep Capabilities

 {  where em0 is the network interface in use on FreeBSD and
 server.example.com is the hostname/ip address of your smb server  }

 Then do a mount of the smb share (while tcpdump is running) and you
 should capture the Capabilities negotiated.

 For example:

 Capabilities=0x1F3FD

 If you decode the bitmask by using this reference :
 http://msdn.microsoft.com/en-us/library/aa302230.aspx {hint:  only
 look at the last four bytes of the Capabilities line (e.g. F3FD in my
 example)} Or if you have kernel source installed, you can look in
 /usr/src/sys/netsmb/smb.h for the details.

- Capabilities: 0x0001F3FD
   RawMode:(...1) Supports
 SMB_COM_READ_RAW and SMB_COM_WRITE_RAW (CAP_RAW_MODE)
   MpxMode:(..0.) No
 Support for SMB_COM_READ_MPX or SMB_COM_WRITE_MPX (CAP_MPX_MODE)
   Unicode:(.1..) Supports
 Unicode Strings (CAP_UNICODE)
   LargeFiles: (1...) Supports
 large files with 64-bit offsets (CAP_LARGE_FILES)
   NTSMBs: (...1) Supports
 SMB NTLM 0.12 dialect commands (implies CAP_NT_FIND) (CAP_NT_SMBS)
   RPCRemoteAPIs:  (..1.) Supports
 remote API requests using RPC over named pipe connections
 (CAP_RPC_REMOTE_APIS)
   NTStatus:   (.1..) Can
 respond with 32-bit NT status codes in Status (CAP_NT_STATUS)
   LevelIIOplocks: (1...) Supports
 Level II oplocks ( CAP_LEVEL_II_OPLOCKS)
   LockAndRead:(...1) Supports
 SMB_COM_LOCK_AND_READ and SMB_COM_WRITE_AND_UNLOCK (CAP_LOCK_AND_READ)
   

Re: smbfs 2 GB file size limit

2008-11-20 Thread Chris Pratt


On Nov 20, 2008, at 7:21 AM, David Horn wrote:


On Thu, Nov 20, 2008 at 7:07 AM, Derek Ragona


No error message, it just stopped writing at 1 Gb.  I was doing  
this using

scp.


Whoa, hopefully you just made a few typos here, or we are going down
the wrong path of investigation.

Did you really mean to say scp or cp ?
 scp(1)   - secure copy (remote file copy  
program)

 cp(1)- copy files

...

What ssh version is running on both of these other systems ?
What OS are both of these other systems ?



So it looks to me like there is some issue with the scp that is  
within

FreeBSD i386 7.



As per my previous message, I still suggest running single variable
tests to make sure that you know what is causing the failure, but if
you just want to jump to a possible solution, you can try updating ssh
to the latest in the ports tree (5.0p1).

If you have the FreeBSD ports collection installed and updated using
portsnap(8) or csup(1) , just do:

cd /usr/ports/security/openssh-portable
make install

Otherwise, install / update your ports collection using portsnap(8)
(fetch update or fetch extract) first, then install openssh-portable.

Good Luck.

---Dave



I apologize in advance if this has nothing to do with this. I'd ignored
this thread completely since it had SMB in the subject. Today I
noticed the comments shown above that it was apparently actually
related to ssh (scp). The fired a synapse of a recent session failure
I was having after updating a server to 7.0 that normally accrues
about a gig of changes a day. My backup server was running 5.5
and rsyncing the diffs each day. After the upgrade of the application
server, the 5.5 client began to hang it's rsync session every day. I  
updated

the 5.5 server to 7.0 (which OBTW replaced the ssh suite) and the
problem disappeared. I didn't see in the thread what the actual ssh
client OS or rev was but perhaps the client is downrev and there is an
issue there. I did no research to figure out why, having my backup
server so far downrevved made it's upgrade my first potshot and it
worked.



-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions- 
[EMAIL PROTECTED]




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: smbfs 2 GB file size limit

2008-11-19 Thread Derek Ragona

At 12:50 PM 11/18/2008, David Horn wrote:

On Tue, Nov 18, 2008 at 7:06 AM, Derek Ragona
[EMAIL PROTECTED] wrote:
 At 12:23 AM 11/18/2008, David Horn wrote:

 On Mon, Nov 17, 2008 at 8:36 PM, Derek Ragona
 [EMAIL PROTECTED] wrote:
 I have FreeBSD 7.0 Release and if I mount_smbfs  a network NTFS share I
 have
 a 2 GB size limit on files.  I checked the handbook and list archives but
 have not found a solution.

 I just ran a quick test, and was not able to reproduce this issue with
 the mount_smbfs from FreeBSD 7.0.  I tried against a Windows 2003
 Server SP2, Windows XP SP3, and Samba 3.0 {on FreeBSD 7} with a 3.5GB
 file.

 Was your issue with reading from or writing to a SMB share ?

 It was writing to a smb share.


 What is the server software and OS version ?
 (if Microsoft Windows, please include Service Pack number as well, as
 it might make a difference)

 Windows 2003 server 32bit.

 How much disk space is left on your server volume ?

 Over a terabyte free

 Are there disk quotas enabled on the server ?

 None

 What error message are you getting from your FreeBSD client (if any) ?

 No error message, it just stopped writing at 1 Gb.  I was doing this using
 scp.

Whoa, hopefully you just made a few typos here, or we are going down
the wrong path of investigation.

Did you really mean to say scp or cp ?
 scp(1)   - secure copy (remote file copy program)
 cp(1)- copy files

If you really meant scp, then the problem is not mount_smbfs, but
instead likely a buggy scp client or server (which does not use smb
for transport, but ssh)

What is the exact byte count that your write stops at ?  You
originally stated 2GB, then 1GB.


This problem occurs under the following scenario:

I have a windows share mounted on a FreeBSD 7.0 release (i386) using 
mount_smbfs.


I was trying to scp from another server on the LAN to this share a 30GB 
file.  The scp only copied 2 GB of that 30 GB file.   This was using the 
scp on FreeBSD 7.0.


I will try another scp application to determine if it is the scp, or 
mount_smbfs.


I know the server I was coping from via SCP is not an issue.  I was able to 
transfer that 30 GB file from that source server to another *nix server on 
the LAN.






 Can you check the smb server logs and see if you are getting any error
 messages there ?

 Well I'm just mounting the volume to FreeBSD from the Windows server so not
 sure I'll find much in the logs besides the system log, but I will look.

 You may want to get a Wireshark trace and see if you can capture the
 SMB error message/error code.

 I have heard of people running into similar problems when running
 against older server software (NT 4.0/old samba) when the SMB session
 did not negotiate large file/large write support (a function of the
 SMB server capabilities session negotiation)

 I saw posts to that effect and that you needed samba 3.x to support large
 files sizes, and the lfs option.  But the mount_smbfs doesn't offer any
 large file option.


Only bother with this next bit if you are morbidly curious as to how
things work rather than just want to solve your problem, as it gets
into the nitty gritty details of smb:

mount_smbfs will allow for lfs (CAP_LARGE_FILE) automatically by
specifying it's dialect capabilities in the smb negotiation.

If you umount your smb share, then start a tcpdump you can capture the
smb negotiation Capabilities bitmask to see if CAP_LARGE_FILE is
being negotiated - the server specifies this capability.  The client
just sends the dialects of smb supported.For example:

tcpdump -vvv -s 1500 -i em0 host server.example.com | grep Capabilities

{  where em0 is the network interface in use on FreeBSD and
server.example.com is the hostname/ip address of your smb server  }

Then do a mount of the smb share (while tcpdump is running) and you
should capture the Capabilities negotiated.

For example:

Capabilities=0x1F3FD

If you decode the bitmask by using this reference :
http://msdn.microsoft.com/en-us/library/aa302230.aspx {hint:  only
look at the last four bytes of the Capabilities line (e.g. F3FD in my
example)} Or if you have kernel source installed, you can look in
/usr/src/sys/netsmb/smb.h for the details.

   - Capabilities: 0x0001F3FD
  RawMode:(...1) Supports
SMB_COM_READ_RAW and SMB_COM_WRITE_RAW (CAP_RAW_MODE)
  MpxMode:(..0.) No
Support for SMB_COM_READ_MPX or SMB_COM_WRITE_MPX (CAP_MPX_MODE)
  Unicode:(.1..) Supports
Unicode Strings (CAP_UNICODE)
  LargeFiles: (1...) Supports
large files with 64-bit offsets (CAP_LARGE_FILES)
  NTSMBs: (...1) Supports
SMB NTLM 0.12 dialect commands (implies CAP_NT_FIND) (CAP_NT_SMBS)
  RPCRemoteAPIs:  (..1.) Supports
remote API requests using RPC over 

Re: smbfs 2 GB file size limit

2008-11-19 Thread David Horn
On Wed, Nov 19, 2008 at 7:37 AM, Derek Ragona
[EMAIL PROTECTED] wrote:
 At 12:50 PM 11/18/2008, David Horn wrote:

 On Tue, Nov 18, 2008 at 7:06 AM, Derek Ragona
 [EMAIL PROTECTED] wrote:
 At 12:23 AM 11/18/2008, David Horn wrote:

 On Mon, Nov 17, 2008 at 8:36 PM, Derek Ragona
 [EMAIL PROTECTED] wrote:
 I have FreeBSD 7.0 Release and if I mount_smbfs  a network NTFS share I
 have
 a 2 GB size limit on files.  I checked the handbook and list archives but
 have not found a solution.

 I just ran a quick test, and was not able to reproduce this issue with
 the mount_smbfs from FreeBSD 7.0.  I tried against a Windows 2003
 Server SP2, Windows XP SP3, and Samba 3.0 {on FreeBSD 7} with a 3.5GB
 file.

 Was your issue with reading from or writing to a SMB share ?

 It was writing to a smb share.


 What is the server software and OS version ?
 (if Microsoft Windows, please include Service Pack number as well, as
 it might make a difference)

 Windows 2003 server 32bit.

 How much disk space is left on your server volume ?

 Over a terabyte free

 Are there disk quotas enabled on the server ?

 None

 What error message are you getting from your FreeBSD client (if any) ?

 No error message, it just stopped writing at 1 Gb.  I was doing this using
 scp.

 Whoa, hopefully you just made a few typos here, or we are going down
 the wrong path of investigation.

 Did you really mean to say scp or cp ?
  scp(1)   - secure copy (remote file copy program)
  cp(1)- copy files

 If you really meant scp, then the problem is not mount_smbfs, but
 instead likely a buggy scp client or server (which does not use smb
 for transport, but ssh)

 What is the exact byte count that your write stops at ?  You
 originally stated 2GB, then 1GB.

 This problem occurs under the following scenario:

 I have a windows share mounted on a FreeBSD 7.0 release (i386) using
 mount_smbfs.

 I was trying to scp from another server on the LAN to this share a 30GB
 file.  The scp only copied 2 GB of that 30 GB file.   This was using the scp
 on FreeBSD 7.0.

 I will try another scp application to determine if it is the scp, or
 mount_smbfs.

You may want to just do single variable tests to determine for certain
if you are having a problem with scp or with smb.

- First test:cp 2GB file directly from the FreeBSD local disk
file system to a mounted smbfs file system
- Second test:   scp 2GB file from remote (other server) to FreeBSD local disk

Once you figure out which one is the problem, you can try changing
variables within that scope.

For example, if the issue seems to be scp, try using sftp (both use
ssh transport). You could also try updating ssh on both machines.  If
you are running OpenSSH prior to 4.4 on any machine, there was a known
bug with scp and large files that only affects some platforms. (ssh -v
will show your version)

See ftp://ftp.ca.openbsd.org/pub/OpenBSD/OpenSSH/portable/ChangeLog
under 20060318

If the problem seems to be smbfs, then try a smbclient test.

That's about all I can think of at the moment.

Good Luck.

--_Dave


 I know the server I was coping from via SCP is not an issue.  I was able to
 transfer that 30 GB file from that source server to another *nix server on
 the LAN.




 Can you check the smb server logs and see if you are getting any error
 messages there ?

 Well I'm just mounting the volume to FreeBSD from the Windows server so
 not
 sure I'll find much in the logs besides the system log, but I will look.

 You may want to get a Wireshark trace and see if you can capture the
 SMB error message/error code.

 I have heard of people running into similar problems when running
 against older server software (NT 4.0/old samba) when the SMB session
 did not negotiate large file/large write support (a function of the
 SMB server capabilities session negotiation)

 I saw posts to that effect and that you needed samba 3.x to support large
 files sizes, and the lfs option.  But the mount_smbfs doesn't offer any
 large file option.


 Only bother with this next bit if you are morbidly curious as to how
 things work rather than just want to solve your problem, as it gets
 into the nitty gritty details of smb:

 mount_smbfs will allow for lfs (CAP_LARGE_FILE) automatically by
 specifying it's dialect capabilities in the smb negotiation.

 If you umount your smb share, then start a tcpdump you can capture the
 smb negotiation Capabilities bitmask to see if CAP_LARGE_FILE is
 being negotiated - the server specifies this capability.  The client
 just sends the dialects of smb supported.For example:

 tcpdump -vvv -s 1500 -i em0 host server.example.com | grep Capabilities

 {  where em0 is the network interface in use on FreeBSD and
 server.example.com is the hostname/ip address of your smb server  }

 Then do a mount of the smb share (while tcpdump is running) and you
 should capture the Capabilities negotiated.

 For example:

 Capabilities=0x1F3FD

 If you decode 

Re: smbfs 2 GB file size limit

2008-11-18 Thread Derek Ragona

At 12:23 AM 11/18/2008, David Horn wrote:

On Mon, Nov 17, 2008 at 8:36 PM, Derek Ragona
[EMAIL PROTECTED] wrote:
 I have FreeBSD 7.0 Release and if I mount_smbfs  a network NTFS share I 
have

 a 2 GB size limit on files.  I checked the handbook and list archives but
 have not found a solution.

I just ran a quick test, and was not able to reproduce this issue with
the mount_smbfs from FreeBSD 7.0.  I tried against a Windows 2003
Server SP2, Windows XP SP3, and Samba 3.0 {on FreeBSD 7} with a 3.5GB
file.

Was your issue with reading from or writing to a SMB share ?


It was writing to a smb share.



What is the server software and OS version ?
(if Microsoft Windows, please include Service Pack number as well, as
it might make a difference)


Windows 2003 server 32bit.


How much disk space is left on your server volume ?


Over a terabyte free


Are there disk quotas enabled on the server ?


None


What error message are you getting from your FreeBSD client (if any) ?


No error message, it just stopped writing at 1 Gb.  I was doing this using scp.


Can you check the smb server logs and see if you are getting any error
messages there ?


Well I'm just mounting the volume to FreeBSD from the Windows server so not 
sure I'll find much in the logs besides the system log, but I will look.



You may want to get a Wireshark trace and see if you can capture the
SMB error message/error code.

I have heard of people running into similar problems when running
against older server software (NT 4.0/old samba) when the SMB session
did not negotiate large file/large write support (a function of the
SMB server capabilities session negotiation)


I saw posts to that effect and that you needed samba 3.x to support large 
files sizes, and the lfs option.  But the mount_smbfs doesn't offer any 
large file option.




  Supposedly there is an smbmount as part of the
 standard samba, but that doesn't seem to install from any of the samba
 ports.

smbmount is not included in the FreeBSD port of samba, as it is Linux
kernel specific.  mount_smbfs(8) is the correct userland app.

You could always try the samba smbclient(1) to access SMB shares using
an FTP-like environment.


I saw that as an option.  I may try that to test this issue.




 Any help would be appreciated.

Sorry I do not have a good solution for you.  Perhaps someone else
will give you better advice.


Thanks for the help!

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: smbfs 2 GB file size limit

2008-11-18 Thread David Horn
On Tue, Nov 18, 2008 at 7:06 AM, Derek Ragona
[EMAIL PROTECTED] wrote:
 At 12:23 AM 11/18/2008, David Horn wrote:

 On Mon, Nov 17, 2008 at 8:36 PM, Derek Ragona
 [EMAIL PROTECTED] wrote:
 I have FreeBSD 7.0 Release and if I mount_smbfs  a network NTFS share I
 have
 a 2 GB size limit on files.  I checked the handbook and list archives but
 have not found a solution.

 I just ran a quick test, and was not able to reproduce this issue with
 the mount_smbfs from FreeBSD 7.0.  I tried against a Windows 2003
 Server SP2, Windows XP SP3, and Samba 3.0 {on FreeBSD 7} with a 3.5GB
 file.

 Was your issue with reading from or writing to a SMB share ?

 It was writing to a smb share.


 What is the server software and OS version ?
 (if Microsoft Windows, please include Service Pack number as well, as
 it might make a difference)

 Windows 2003 server 32bit.

 How much disk space is left on your server volume ?

 Over a terabyte free

 Are there disk quotas enabled on the server ?

 None

 What error message are you getting from your FreeBSD client (if any) ?

 No error message, it just stopped writing at 1 Gb.  I was doing this using
 scp.

Whoa, hopefully you just made a few typos here, or we are going down
the wrong path of investigation.

Did you really mean to say scp or cp ?
 scp(1)   - secure copy (remote file copy program)
 cp(1)- copy files

If you really meant scp, then the problem is not mount_smbfs, but
instead likely a buggy scp client or server (which does not use smb
for transport, but ssh)

What is the exact byte count that your write stops at ?  You
originally stated 2GB, then 1GB.


 Can you check the smb server logs and see if you are getting any error
 messages there ?

 Well I'm just mounting the volume to FreeBSD from the Windows server so not
 sure I'll find much in the logs besides the system log, but I will look.

 You may want to get a Wireshark trace and see if you can capture the
 SMB error message/error code.

 I have heard of people running into similar problems when running
 against older server software (NT 4.0/old samba) when the SMB session
 did not negotiate large file/large write support (a function of the
 SMB server capabilities session negotiation)

 I saw posts to that effect and that you needed samba 3.x to support large
 files sizes, and the lfs option.  But the mount_smbfs doesn't offer any
 large file option.


Only bother with this next bit if you are morbidly curious as to how
things work rather than just want to solve your problem, as it gets
into the nitty gritty details of smb:

mount_smbfs will allow for lfs (CAP_LARGE_FILE) automatically by
specifying it's dialect capabilities in the smb negotiation.

If you umount your smb share, then start a tcpdump you can capture the
smb negotiation Capabilities bitmask to see if CAP_LARGE_FILE is
being negotiated - the server specifies this capability.  The client
just sends the dialects of smb supported.For example:

tcpdump -vvv -s 1500 -i em0 host server.example.com | grep Capabilities

{  where em0 is the network interface in use on FreeBSD and
server.example.com is the hostname/ip address of your smb server  }

Then do a mount of the smb share (while tcpdump is running) and you
should capture the Capabilities negotiated.

For example:

Capabilities=0x1F3FD

If you decode the bitmask by using this reference :
http://msdn.microsoft.com/en-us/library/aa302230.aspx {hint:  only
look at the last four bytes of the Capabilities line (e.g. F3FD in my
example)} Or if you have kernel source installed, you can look in
/usr/src/sys/netsmb/smb.h for the details.

   - Capabilities: 0x0001F3FD
  RawMode:(...1) Supports
SMB_COM_READ_RAW and SMB_COM_WRITE_RAW (CAP_RAW_MODE)
  MpxMode:(..0.) No
Support for SMB_COM_READ_MPX or SMB_COM_WRITE_MPX (CAP_MPX_MODE)
  Unicode:(.1..) Supports
Unicode Strings (CAP_UNICODE)
  LargeFiles: (1...) Supports
large files with 64-bit offsets (CAP_LARGE_FILES)
  NTSMBs: (...1) Supports
SMB NTLM 0.12 dialect commands (implies CAP_NT_FIND) (CAP_NT_SMBS)
  RPCRemoteAPIs:  (..1.) Supports
remote API requests using RPC over named pipe connections
(CAP_RPC_REMOTE_APIS)
  NTStatus:   (.1..) Can
respond with 32-bit NT status codes in Status (CAP_NT_STATUS)
  LevelIIOplocks: (1...) Supports
Level II oplocks ( CAP_LEVEL_II_OPLOCKS)
  LockAndRead:(...1) Supports
SMB_COM_LOCK_AND_READ and SMB_COM_WRITE_AND_UNLOCK (CAP_LOCK_AND_READ)
  NtFind: (..1.) Supports
Windows NT information level requests (SMB_QUERY_?, SMB_SET_?)
(CAP_NT_FIND)
  Reserved_bits10_11: 

smbfs 2 GB file size limit

2008-11-17 Thread Derek Ragona
I have FreeBSD 7.0 Release and if I mount_smbfs  a network NTFS share I 
have a 2 GB size limit on files.  I checked the handbook and list archives 
but have not found a solution.  Supposedly there is an smbmount as part of 
the standard samba, but that doesn't seem to install from any of the samba 
ports.


Any help would be appreciated.


-Derek
derek at computinginnovations.com



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: smbfs 2 GB file size limit

2008-11-17 Thread David Horn
On Mon, Nov 17, 2008 at 8:36 PM, Derek Ragona
[EMAIL PROTECTED] wrote:
 I have FreeBSD 7.0 Release and if I mount_smbfs  a network NTFS share I have
 a 2 GB size limit on files.  I checked the handbook and list archives but
 have not found a solution.

I just ran a quick test, and was not able to reproduce this issue with
the mount_smbfs from FreeBSD 7.0.  I tried against a Windows 2003
Server SP2, Windows XP SP3, and Samba 3.0 {on FreeBSD 7} with a 3.5GB
file.

Was your issue with reading from or writing to a SMB share ?

What is the server software and OS version ?
(if Microsoft Windows, please include Service Pack number as well, as
it might make a difference)
How much disk space is left on your server volume ?
Are there disk quotas enabled on the server ?
What error message are you getting from your FreeBSD client (if any) ?
Can you check the smb server logs and see if you are getting any error
messages there ?
You may want to get a Wireshark trace and see if you can capture the
SMB error message/error code.

I have heard of people running into similar problems when running
against older server software (NT 4.0/old samba) when the SMB session
did not negotiate large file/large write support (a function of the
SMB server capabilities session negotiation)

  Supposedly there is an smbmount as part of the
 standard samba, but that doesn't seem to install from any of the samba
 ports.

smbmount is not included in the FreeBSD port of samba, as it is Linux
kernel specific.  mount_smbfs(8) is the correct userland app.

You could always try the samba smbclient(1) to access SMB shares using
an FTP-like environment.


 Any help would be appreciated.

Sorry I do not have a good solution for you.  Perhaps someone else
will give you better advice.

Good Luck!

-_Dave Horn


-Derek
derek at computinginnovations.com



 --
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]