[Samba] IPC$ entries not deleted from connections.tdb?
Yannick Bergeron
burgergold at hotmail.com
Wed Apr 20 12:54:58 GMT 2005
Back to this problem
Here a proof of it:
1. smbd version 3.0.11 started
yaberge2 at sda6 ==> p smbd
root 13820 20662 0 08:05:39 - 0:00 /usr/local/samba/sbin/smbd -D
-s/usr/local/samba/lib/smb.conf
root 20662 1 0 08:05:39 - 0:00 /usr/local/samba/sbin/smbd -D
-s/usr/local/samba/lib/smb.conf
yaberge2 at sda6 ==> /usr/local/samba/bin/smbstatus
Samba version 3.0.11
PID Username Group Machine
-------------------------------------------------------------------
Service pid machine Connected at
-------------------------------------------------------
No locked files
tdb> 1
pid =20662 cnum = -1 name =[]
pid =20662 cnum = -1 name =[]
uid = 0 addr =[0.0.0.0]
gid = 0 machine=[smbd]
start = Wed Dec 31 19:00:00 1969
tdb> n
pid =13820 cnum = -1 name =[smbd lpq backend]
pid =13820 cnum = -1 name =[]
uid = 0 addr =[0.0.0.0]
gid = 0 machine=[smbd]
start = Wed Dec 31 19:00:00 1969
tdb> n
fetch failed
2. Map network drive from Win2k
yaberge2 at sda6 ==> p smbd
root 13820 20662 0 08:05:39 - 0:00 /usr/local/samba/sbin/smbd -D
-s/usr/local/samba/lib/smb.conf
root 20662 1 0 08:05:39 - 0:00 /usr/local/samba/sbin/smbd -D
-s/usr/local/samba/lib/smb.conf
root 21224 20662 0 08:07:59 - 0:00 /usr/local/samba/sbin/smbd -D
-s/usr/local/samba/lib/smb.conf
yaberge2 at sda6 ==> /usr/local/samba/bin/smbstatus
Samba version 3.0.11
PID Username Group Machine
-------------------------------------------------------------------
21224 ffausse ffausse intelwt1 (9.54.4.28)
Service pid machine Connected at
-------------------------------------------------------
IPC$ 21224 intelwt1 Wed Apr 20 08:07:59 2005
dfs 21224 intelwt1 Wed Apr 20 08:07:59 2005
No locked files
tdb> 1
pid =21222 cnum = 1 name =[IPC$]
pid =21222 cnum = 1 name =[IPC$]
uid =2147483647 addr =[9.54.4.28]
gid =2147483647 machine=[intelwt1]
start = Wed Dec 31 19:00:00 1969
tdb> n
pid =21224 cnum = 2 name =[IPC$]
pid =21224 cnum = 2 name =[IPC$]
uid =2147483647 addr =[9.54.4.28]
gid =2147483647 machine=[intelwt1]
start = Wed Dec 31 19:00:00 1969
tdb> n
pid =21224 cnum = 1 name =[dfs]
pid =21224 cnum = 1 name =[dfs]
uid = 1388 addr =[9.54.4.28]
gid = 1661 machine=[intelwt1]
start = Wed Dec 31 19:00:00 1969
tdb> n
pid =21224 cnum = -1 name =[]
pid =21224 cnum = -1 name =[]
uid = 0 addr =[9.54.4.28]
gid = 0 machine=[intelwt1]
start = Wed Dec 31 19:00:00 1969
tdb> n
pid =21218 cnum = 1 name =[IPC$]
pid =21218 cnum = 1 name =[IPC$]
uid =2147483647 addr =[9.54.4.28]
gid =2147483647 machine=[intelwt1]
start = Wed Dec 31 19:00:00 1969
tdb> n
pid =20662 cnum = -1 name =[]
pid =20662 cnum = -1 name =[]
uid = 0 addr =[0.0.0.0]
gid = 0 machine=[smbd]
start = Wed Dec 31 19:00:00 1969
tdb> n
pid =13820 cnum = -1 name =[smbd lpq backend]
pid =13820 cnum = -1 name =[]
uid = 0 addr =[0.0.0.0]
gid = 0 machine=[smbd]
start = Wed Dec 31 19:00:00 1969
tdb> n
fetch failed
3. Disconnecting the network drive
yaberge2 at sda6 ==> p smbd
root 13820 20662 0 08:05:39 - 0:00 /usr/local/samba/sbin/smbd -D
-s/usr/local/samba/lib/smb.conf
root 20662 1 0 08:05:39 - 0:00 /usr/local/samba/sbin/smbd -D
-s/usr/local/samba/lib/smb.conf
yaberge2 at sda6 ==> /usr/local/samba/bin/smbstatus
Samba version 3.0.11
PID Username Group Machine
-------------------------------------------------------------------
Service pid machine Connected at
-------------------------------------------------------
No locked files
tdb> 1
pid =21222 cnum = 1 name =[IPC$]
pid =21222 cnum = 1 name =[IPC$]
uid =2147483647 addr =[9.54.4.28]
gid =2147483647 machine=[intelwt1]
start = Wed Dec 31 19:00:00 1969
tdb> n
pid =21224 cnum = 2 name =[IPC$]
pid =21224 cnum = 2 name =[IPC$]
uid =2147483647 addr =[9.54.4.28]
gid =2147483647 machine=[intelwt1]
start = Wed Dec 31 19:00:00 1969
tdb> n
pid =21218 cnum = 1 name =[IPC$]
pid =21218 cnum = 1 name =[IPC$]
uid =2147483647 addr =[9.54.4.28]
gid =2147483647 machine=[intelwt1]
start = Wed Dec 31 19:00:00 1969
tdb> n
pid =20662 cnum = -1 name =[]
pid =20662 cnum = -1 name =[]
uid = 0 addr =[0.0.0.0]
gid = 0 machine=[smbd]
start = Wed Dec 31 19:00:00 1969
tdb> n
pid =13820 cnum = -1 name =[smbd lpq backend]
pid =13820 cnum = -1 name =[]
uid = 0 addr =[0.0.0.0]
gid = 0 machine=[smbd]
start = Wed Dec 31 19:00:00 1969
4. Any connection remaining from my workstation?
yaberge2 at sda6 ==> netstat -an |grep "9.54.4.28"
5. Conclusion
No connection between the samba server and my workstation, but still 3
entries in connections.tdb.
With 3000 users, the file will increase in size pretty fast and we would
need an interruption to restart samba an reset the tdb files :/
I would like to know if anybody could reproduce this problem
More information about the samba
mailing list