Yannick Bergeron
2005-Apr-20 12:55 UTC
[Samba] IPC$ entries not deleted from connections.tdb?
Back to this problem Here a proof of it: 1. smbd version 3.0.11 started yaberge2@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@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@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@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@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@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@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
Yannick Bergeron
2005-Apr-26 19:33 UTC
[Samba] IPC$ entries not deleted from connections.tdb?
Hi Andrew, I know that you're a very busy guy, but I've CC you on this post a few days ago and didn't get any answer. http://lists.samba.org/archive/samba-technical/2005-April/040377.html http://lists.samba.org/archive/samba-technical/2005-April/040378.html http://lists.samba.org/archive/samba-technical/2005-April/040379.html http://lists.samba.org/archive/samba/2005-April/104135.html I would like to have your impression on this problem or if you can reproduce it. I would be really surprised if I was the only one who has it. The difference is that we're using samba with a lots of users and we've estimated that the file will grow at least 55mb per month. This if for a smbd child that make only one connection. It could be like 20 times bigger (1.1gb) if each smbd child owns 20 connections. Thanx Yannick Bergeron burgergold@hotmail.com Yannick.Bergeron@USherbrooke.ca