Delay seeing files from linux side..

View: New views
1 Messages — Rating Filter:   Alert me  

Delay seeing files from linux side..

by Mehul Rami :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
We have Windows 2003 share mounted on Suse Linux machine (9.2 SP2) using cifs mount option. On linux machine we have scripts which copies files from this share to local disk on linux machine. Most of the time copy command works, but if user has moved file from one folder to another folder on window share, sometimes copy command fails on linux machine complaining the files doesnt exist. If you run same program after few minutes, it works fine.
I was going through the doc and found there are few files to lookup but have no idea what is wrong. Looks request/response buffer is overwhelm..How to solve this situation..Follwoing are the stats and debug file..
 
# modinfo /lib/modules/2.6.5-7.191-bigsmp/kernel/fs/cifs/cifs.ko
version:        1.33 5B4D9EF74C9AE416F4A0EB7
description:    VFS to access servers complying with the SNIA CIFS Specification e.g. Samba and Windows
license:        GPL
author:         Steve French <sfrench@...>
parm:           cifs_max_pending:Simultaneous requests to server. Default: 50 Range: 2 to 256 (int)
parm:           cifs_min_small:Small network buffers in pool. Default: 30 Range: 2 to 256 (int)
parm:           cifs_min_rcv:Network buffers in pool. Default: 4 Range: 1 to 64 (int)
parm:           CIFSMaxBufSize:Network buffer size (not including header). Default: 16384 Range: 8192 to 130048 (int)
depends:
supported:      external
vermagic:       2.6.5-7.191-bigsmp SMP PENTIUMII REGPARM gcc-3.3
# cat /proc/fs/cifs/Stats
Resources in use
CIFS Session: 1
Share (unique mount targets): 1
SMB Request/Response Buffer: 169 Pool size: 5
SMB Small Req/Resp Buffer: 1 Pool size: 30
Operations (MIDs): 0
16449 session 284 share reconnects
Total vfs operations: 32801198 maximum at one time: 10
1) \\xyz.abc.com\winshare$
SMBs: 1095918 Oplock Breaks: 8
Reads: 249472 Bytes 4077571036
Writes: 821622 Bytes: 3362397166
Opens: 3647 Deletes: 1249
Mkdirs: 0 Rmdirs: 0
Renames: 14 T2 Renames 0
 
# cat /proc/fs/cifs/DebugData
Display Internal CIFS Data Structures for Debugging
---------------------------------------------------
CIFS Version 1.33
Servers:
1) Name: 172.16.0.14  Domain: XYZ Mounts: 1 ServerOS: Windows Server 2003 R2 3790 Service Pack 2
 ServerNOS: Windows Server 2003 R2 5.2  Capabilities: 0x1f3fd
 SMB session status: 1  TCP status: 1
 Local Users To Server: 1 SecMode: 0x3 Req Active: 0
MIDs:
Shares:
1) \\xyz.abc.com\winshare$ Uses: 1 Type: NTFS Characteristics: 0x20 Attributes: 0x700ff
PathComponentMax: 255 Status: 1 type: DISK


Mehul Rami
Manager, Systems and Security
Audit Bureau of Circulations
847 879 8264

_______________________________________________
linux-cifs-client mailing list
linux-cifs-client@...
https://lists.samba.org/mailman/listinfo/linux-cifs-client
LightInTheBox - Buy quality products at wholesale price