[Samba] Re: Problem with large files

Valerio daelli valerio.daelli at gmail.com
Tue Sep 19 13:14:44 GMT 2006


On 9/19/06, Valerio daelli <valerio.daelli at gmail.com> wrote:
>
> Hi
> we have samba 3.0.14a on FreeBSD 5.4.
> We tried with different kind of locking and oplocks (both enabled and disabled).
> If we try to copy from a Windows XP client a file larger than 3g, we get these error:
>
>  Cannot copy XXX. The specified network name is no longer available.
>
> We traced this problem in the logs (log level 10) and we got this error
>
...
>

> Thanks for your help
>
>
> Valerio Daelli
>

Hi
we can replicate the error on samba 3.0.23b with the same configuration.
This is our configuration:

----------
[global]
  interfaces = 85.239.182.14/32
  pid directory = /ofb/samba/var
  guest account = nobody
  security = user
  encrypt passwords = yes
  passdb backend = ldapsam:"ldap://127.0.0.1/"
  server string = FreeBSD Friend
  unix charset = UTF-8
  display charset = UTF-8
  dos charset = 437
  use spnego = yes
  client ntlmv2 auth = no
  client use spnego = yes
  ldap admin dn =
uid=samba,ou=Services,ou=NIS,ou=Accounts,dc=ifom-ieo-campus,dc=it
  #ldap admin dn = cn=ldapadm,dc=ifom-ieo-campus,dc=it
  ldap delete dn = no
  ldap passwd sync = no
  ldap suffix = dc=ifom-ieo-campus,dc=it
  ldap machine suffix = ou=Computers
  ldap user suffix = ou=Accounts
  ldap group suffix = ou=Groups
  workgroup = CAMPUS
  netbios name = milarepa

  domain logons = yes
  domain master = yes
  wins support = yes
  preferred master = yes
  strict allocate = yes
  ;hide files =
/.snap/.AppleDB/.AppleDouble/.AppleDesktop/_VUC69~7/desktop.ini/:2eDS_Store/:2eVolumeIcon.icns/*.icns/
  ;veto files =
/.snap/_VUC69~7/.DS_Store/.AppleDB/.AppleDouble/.AppleDesktop/lost+found/quota.user/quota.group/
  ;veto files = /.snap/lost+found/quota.user/quota.group/
  ;delete veto files = yes
  ;hide unreadable = no
;  case sensitive = yes
;  default case = lower
;  preserve case = yes
  socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=16384 SO_RCVBUF=16384
  #log file = /data/samba/var/log/smbd.log.%m
  log file = /data/samba/var/log/smbd.log.%m
  log level = 10
  max xmit = 65535
  logon path = \\%N\profiles\%U
  logon drive = H:
  logon script = users.cmd
  dfree command = "/usr/local/sbin/get_quota %U"
  max open files = 8000

[netlogon]
 path = /usr/samba/netlogon
 browseable = no
 read only = yes
 write list = samba

[profiles]
 path = /usr/exports/Users/Users/%U
 read only = no
 browseable = yes
 ;create mask = 0600
 ;directory mask = 0700
 csc policy = disable

[%U]
 comment = %U Home Directory
 browseable = yes
 read only = no
 path = /usr/exports/Users/Users/%U
 create mask = 0600
 directory mask = 0700
 force create mode = 0600
 force directory mode = 0700
 ;hide unreadable = no
 ;locking = yes
 strict locking = no
 ;blocking locks = no
 oplocks = yes
 level2 oplocks = yes
 fake oplocks = yes

[Temporary]
 comment = Temporary (for Imaging etc..)
 path= /usr/exports/Temporary/data
 browseable = yes
 read only = no
 create mask = 0666
 directory mask = 0777
 force create mode = 0666
 force directory mode = 0777
 ;hide unreadable = no
 ;locking = yes
 ;strict locking = no
 ;blocking locks = no
 oplocks = no
 fake oplocks = yes
 level2 oplocks = yes

[Groups]
 comment = Group Shares
 browseable = yes
 read only = no
 path = /usr/exports/Groups/Groups
 create mask = 0660
 directory mask = 0770
 force create mode = 0660
 force directory mode = 0770
 ;hide unreadable = yes
 locking = yes
 strict locking = no
 blocking locks = no
 oplocks = no
 level2 oplocks = no
[PublicUsers]
 comment = Campus Groups Public Stuff
 browseable = yes
 read only = no
 path = /usr/exports/Users/PublicUsers
 create mask = 0664
 directory mask = 0775
 force create mode = 0664
 force directory mode = 0775
; locking = yes
; strict locking = no
; blocking locks = no
; oplocks = no
; level2 oplocks = no
[PublicGroups]
 comment = Campus Groups Public Stuff
 browseable = yes
 read only = no
 path = /usr/exports/Groups/PublicGroups
 create mask = 0664
 directory mask = 0775
 force create mode = 0664
 force directory mode = 0775
; locking = yes
; strict locking = no
; blocking locks = no
; oplocks = no
; level2 oplocks = no
[DropboxUsers]
 comment = Users drop boxes
 path = "/usr/exports/Users/DropboxUsers"
 read only = no
 writeable = yes
 browseable = yes
 create mask = 0666
 directory mask = 0777
 force create mode = 0666
 force directory mode = 0777
;; locking = yes
;; strict locking = no
;; blocking locks = no
;; oplocks = no
;; level2 oplocks = no
[DropboxGroups]
 comment = Groups drop boxes
 path = "/usr/exports/Groups/DropboxGroups"
 read only = no
 writeable = yes
 browseable = yes
 create mask = 0666
 directory mask = 0777
 force create mode = 0666
 force directory mode = 0777
 ;hide unreadable = no
;; locking = yes
;; strict locking = no
;; blocking locks = no
;; oplocks = no
[Services]
 comment = Services
 path = "/usr/exports/Services/Services"
 read only = no
 writeable = yes
 browseable = yes
 create mask = 0664
 directory mask = 0775
 force create mode = 0664
 force directory mode = 0775
 locking =  no
 strict locking = no
 blocking locks = no
 oplocks =  yes
 level2 oplocks = yes
This time we get

---------
[2006/09/19 14:51:15, 4] smbd/vfs.c:vfs_ChDir(741)
  vfs_ChDir to /usr/exports/Services/Services
[2006/09/19 14:51:15, 10] smbd/nttrans.c:reply_ntcreate_and_X(501)
  reply_ntcreateX: flags = 0x16, access_mask = 0x20189 file_attributes
= 0x80, share_access = 0x7, create_disposition = 0x1 create_options =
0x940 root_dir_fid = 0x0
[2006/09/19 14:51:15, 10] smbd/msdfs.c:parse_processed_dfs_path(91)
  temp in parse_processed_dfs_path:
.85.239.182.14/Services/85.239.182.14/Services/s-comp/FILE1. after
trimming \'s
[2006/09/19 14:51:15, 10] smbd/msdfs.c:parse_processed_dfs_path(101)
  parse_processed_dfs_path: hostname: 85.239.182.14
[2006/09/19 14:51:15, 10] smbd/msdfs.c:parse_processed_dfs_path(113)
  parse_processed_dfs_path: servicename: Services
[2006/09/19 14:51:15, 10] smbd/msdfs.c:parse_processed_dfs_path(123)
  parse_processed_dfs_path: rest of the path:
85.239.182.14/Services/s-comp/FILE1
[2006/09/19 14:51:15, 10] smbd/msdfs.c:resolve_dfs_path(337)
  resolve_dfs_path: Conn path = /usr/exports/Services/Services
req_path = 85.239.182.14/Services/s-comp/FILE1
[2006/09/19 14:51:15, 5] smbd/filename.c:unix_convert(108)
  unix_convert called on file "85.239.182.14/Services/s-comp/FILE1"
[2006/09/19 14:51:15, 10] smbd/statcache.c:stat_cache_lookup(215)
  stat_cache_lookup: lookup failed for name
[85.239.182.14/SERVICES/S-COMP/FILE1]
[2006/09/19 14:51:15, 10] smbd/statcache.c:stat_cache_lookup(215)
  stat_cache_lookup: lookup failed for name [85.239.182.14/SERVICES/S-COMP]
[2006/09/19 14:51:15, 10] smbd/statcache.c:stat_cache_lookup(215)
  stat_cache_lookup: lookup failed for name [85.239.182.14/SERVICES]
[2006/09/19 14:51:15, 10] smbd/statcache.c:stat_cache_lookup(215)
  stat_cache_lookup: lookup failed for name [85.239.182.14]
[2006/09/19 14:51:15, 5] smbd/filename.c:unix_convert(185)
  unix_convert begin: name = 85.239.182.14/Services/s-comp/FILE1,
dirpath = , start = 85.239.182.14/Services/s-comp/FILE1
[2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled(276)
  is_mangled 85.239.182.14/Services/s-comp/FILE1 ?
[2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215)
  is_mangled_component 85.239.182.14/Services/s-comp/FILE1 (len 13) ?
[2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215)
  is_mangled_component Services/s-comp/FILE1 (len 8) ?
[2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215)
  is_mangled_component s-comp/FILE1 (len 6) ?
[2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215)
  is_mangled_component FILE1 (len 5) ?
[2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled(276)
  is_mangled 85.239.182.14 ?
[2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215)
  is_mangled_component 85.239.182.14 (len 13) ?
[2006/09/19 14:51:15, 5] smbd/filename.c:unix_convert(295)
  Intermediate not found 85.239.182.14
[2006/09/19 14:51:15, 5] smbd/msdfs.c:is_msdfs_link(269)
  is_msdfs_link: 85.239.182.14/Services/s-comp/FILE1 does not exist.
[2006/09/19 14:51:15, 5] smbd/msdfs.c:is_msdfs_link(269)
  is_msdfs_link: 85.239.182.14/Services/s-comp does not exist.
[2006/09/19 14:51:15, 5] smbd/msdfs.c:is_msdfs_link(269)
  is_msdfs_link: 85.239.182.14/Services does not exist.
[2006/09/19 14:51:15, 5] smbd/msdfs.c:is_msdfs_link(269)
  is_msdfs_link: 85.239.182.14 does not exist.
[2006/09/19 14:51:15, 3] smbd/msdfs.c:dfs_redirect(435)
  dfs_redirect: Not redirecting
85.239.182.14/Services/85.239.182.14/Services/s-comp/FILE1.
[2006/09/19 14:51:15, 3] smbd/msdfs.c:dfs_redirect(439)
  dfs_redirect: Path converted to non-dfs path
85.239.182.14/Services/s-comp/FILE1
[2006/09/19 14:51:15, 5] smbd/filename.c:unix_convert(108)
  unix_convert called on file "85.239.182.14/Services/s-comp/FILE1"
[2006/09/19 14:51:15, 10] smbd/statcache.c:stat_cache_lookup(215)
  stat_cache_lookup: lookup failed for name
[85.239.182.14/SERVICES/S-COMP/FILE1]
[2006/09/19 14:51:15, 10] smbd/statcache.c:stat_cache_lookup(215)
  stat_cache_lookup: lookup failed for name [85.239.182.14/SERVICES/S-COMP]
[2006/09/19 14:51:15, 10] smbd/statcache.c:stat_cache_lookup(215)
  stat_cache_lookup: lookup failed for name [85.239.182.14/SERVICES]
[2006/09/19 14:51:15, 10] smbd/statcache.c:stat_cache_lookup(215)
  stat_cache_lookup: lookup failed for name [85.239.182.14]
[2006/09/19 14:51:15, 5] smbd/filename.c:unix_convert(185)
  unix_convert begin: name = 85.239.182.14/Services/s-comp/FILE1,
dirpath = , start = 85.239.182.14/Services/s-comp/FILE1
[2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled(276)
  is_mangled 85.239.182.14/Services/s-comp/FILE1 ?
[2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215)
  is_mangled_component 85.239.182.14/Services/s-comp/FILE1 (len 13) ?
[2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215)
  is_mangled_component Services/s-comp/FILE1 (len 8) ?
[2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215)
  is_mangled_component s-comp/FILE1 (len 6) ?
[2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215)
  is_mangled_component FILE1 (len 5) ?
[2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled(276)
  is_mangled 85.239.182.14 ?
[2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215)
  is_mangled_component 85.239.182.14 (len 13) ?
[2006/09/19 14:51:15, 5] smbd/filename.c:unix_convert(295)
  Intermediate not found 85.239.182.14
[2006/09/19 14:51:15, 3] smbd/error.c:error_packet(146)
  error packet at smbd/nttrans.c(647) cmd=162 (SMBntcreateX)
NT_STATUS_OBJECT_PATH_NOT_FOUND

-------
as you can see the path in parse_processed_dfs_path is not correct
since we get twice the ip address and the share name.
Is this a microsoft problem or a samba one?
Thanks for your help

Valerio Daelli


More information about the samba mailing list