[Samba] Re:[Samba]Upgrade broke file locking

adam at morrison-ind.com adam at morrison-ind.com
Wed Aug 21 06:11:00 GMT 2002


>>More info on file locking problem...
>>Dead PIDs are showing in "smbstatus -L" as still holding locks,  thus
>>keeping users out of their files.  I see (for example) a spreadsheet locked 
>>by process 30744, but "ps ax | grep 30744" shows nothing.  Rather scary.
>Not really - smbd will check for the existance of a process holding
>a lock and if the process doesn't exist it will remove the lock entry
>from the tdb before returning to the callign function. It's an auto
>cleanup mechanism.

Ok.  Then I really don't understand what is hapenning.  Below is an example:
user rneuman on pc01718 (WinY2k, M$-Office) can't open 1893.doc because it says
it is already in use by user rneuman.  This seems to start out gradually and
grow to a calamitous situation,  restarting Samba helps for awhile and then it
comes creeping back.

[root at sardine tmp]# smbstatus -L | grep -i sale
11977  DENY_NONE  0x3         RDWR       NONE            
/usr/pcnet/deptdata/sales/Sales Department/Eckstrom/Leads/sp23.doc   Wed Aug 21
08:10:50 2002
23643  DENY_NONE  0x1         RDONLY     NONE            
/usr/pcnet/deptdata/sales/Allied Invoicing/1893.doc   Wed Aug 21 11:02:41 2002
13631  DENY_NONE  0x3         RDWR       NONE            
/usr/pcnet/deptdata/sales/newtrucklist.doc.xls   Wed Aug 21 09:11:11 2002
11107  DENY_NONE  0x3         RDWR       NONE            
/usr/pcnet/deptdata/sales/Sales Department/Mike Filice/Quotes/Wolverton.doc  
Wed Aug 21 07:38:36 2002
11977  DENY_NONE  0x3         RDWR       NONE            
/usr/pcnet/deptdata/sales/Sales Department/Eckstrom/Leads/gn7.doc   Wed Aug 21
08:21:52 2002
11977  DENY_NONE  0x3         RDWR       NONE            
/usr/pcnet/deptdata/sales/Sales Department/Eckstrom/Leads/gn6.doc   Wed Aug 21
08:19:00 2002
11977  DENY_NONE  0x3         RDWR       NONE            
/usr/pcnet/deptdata/sales/Sales Department/Eckstrom/Leads/sl8.doc   Wed Aug 21
08:15:58 2002
10777  DENY_NONE  0x3         RDWR       NONE            
/usr/pcnet/deptdata/sales/Sales Department/Mike Filice/Quotes/Wonch.doc   Wed
Aug 21 07:24:19 2002
11977  DENY_NONE  0x3         RDWR       NONE            
/usr/pcnet/deptdata/sales/Sales Department/Eckstrom/Leads/sl9.doc   Wed Aug 21
08:18:09 2002
[root at sardine tmp]# ps ax | grep 23643
23643 ?        S      0:00 smbd -D
27223 pts/0    S      0:00 grep 23643
[root at sardine tmp]# smbstatus -u rneuman

Samba version 2.2.5
Service      uid      gid      pid     machine
----------------------------------------------
sls_data     rneuman  sales    23643   pc01718  (192.168.1.141) Wed Aug 21
10:40:40 2002

Locked files:
Pid    DenyMode   Access      R/W        Oplock           Name
--------------------------------------------------------------
23643  DENY_NONE  0x1         RDONLY     NONE            
/usr/pcnet/deptdata/sales/Allied Invoicing/1893.doc   Wed Aug 21 11:02:41 2002




More information about the samba mailing list