Stéphane PURNELLE
2008-Sep-03 08:44 UTC
[Samba] samba start randomly a second nmbd process
Hi all,
My samba server is executed under a software which control if samba is
life.
The software use some scripts which made the control and verify if process
exist.
If the process not exist or have a problem, the software restart the
application ( in this case : samba)
sometimes I see that samva is restarted by the software.
yes terday I added a message for see what start the recovery of samba and
I find that nmbd is present two times.
My test into the script is :
health_smbd=`ps -ewwf | grep "smbd" | grep -v grep | wc -l`
health_nmbd=`ps -ewwf | grep "nmbd" | grep -v grep | wc -l`
# For success
[[ $health_smbd -ge 1 && $health_nmbd -eq 1 ]]
I must have on or more smbd and I must have one nmbd process.
But :
normal:
Lifekeeper: Samba: quickCheck RESOURCE Samba health status : 148 / 1
Lifekeeper: Samba: quickCheck RESOURCE Samba health status : 147 / 1
Lifekeeper: Samba: quickCheck RESOURCE Samba health status : 146 / 1
Lifekeeper: Samba: quickCheck RESOURCE Samba health status : 148 / 1
abnormal :
Lifekeeper: Samba: quickCheck RESOURCE Samba health status : 108 / 2
As you can see here :
# WINS et cache
wins server = wins-srv
# wins support = yes
# wins proxy = yes
name cache timeout = 660
the wins server is not active, is a smbd4wins on an ither server which
made the wins server.
Anyone can help me to find the source of the problem ?
Samba 3.2.2 on a Redhat Enterprise Linux 5.1
Thanks
St?phane Purnelle
-----------------------------------
St?phane PURNELLE stephane.purnelle@corman.be
Service Informatique Corman S.A. Tel : 00 32 087/342467
Stéphane PURNELLE
2008-Sep-03 09:04 UTC
RE [Samba] samba start randomly a second nmbd process
I can find into nmbd.log : [2008/09/03 10:50:32, 1] lib/util_tdb.c:tdb_log(682) tdb(unnamed): tdb_open_ex: /var/lib/samba/unexpected.tdb (26626,162113) is already open in this process [2008/09/03 10:50:32, 1] lib/util_tdb.c:tdb_log(682) tdb(unnamed): tdb_open_ex: /var/lib/samba/unexpected.tdb (26626,162113) is already open in this process [2008/09/03 10:50:32, 1] lib/util_tdb.c:tdb_log(682) tdb(unnamed): tdb_open_ex: /var/lib/samba/unexpected.tdb (26626,162113) is already open in this process [2008/09/03 10:50:33, 1] lib/util_tdb.c:tdb_log(682) tdb(unnamed): tdb_open_ex: /var/lib/samba/unexpected.tdb (26626,162113) is already open in this process [2008/09/03 10:50:33, 1] lib/util_tdb.c:tdb_log(682) tdb(unnamed): tdb_open_ex: /var/lib/samba/unexpected.tdb (26626,162113) is already open in this process [2008/09/03 10:50:33, 1] lib/util_tdb.c:tdb_log(682) tdb(unnamed): tdb_open_ex: /var/lib/samba/unexpected.tdb (26626,162113) is already open in this process [2008/09/03 10:50:33, 1] lib/util_tdb.c:tdb_log(682) tdb(unnamed): tdb_open_ex: /var/lib/samba/unexpected.tdb (26626,162113) is already open in this process [2008/09/03 10:50:33, 1] lib/util_tdb.c:tdb_log(682) tdb(unnamed): tdb_open_ex: /var/lib/samba/unexpected.tdb (26626,162113) is already open in this process [2008/09/03 10:50:33, 1] lib/util_tdb.c:tdb_log(682) tdb(unnamed): tdb_open_ex: /var/lib/samba/unexpected.tdb (26626,162113) is already open in this process ----------------------------------- St?phane PURNELLE stephane.purnelle@corman.be Service Informatique Corman S.A. Tel : 00 32 087/342467 samba-bounces+stephane.purnelle=corman.be@lists.samba.org a ?crit sur 03/09/2008 10:43:44 :> Hi all, > > My samba server is executed under a software which control if samba is > life. > The software use some scripts which made the control and verify ifprocess> exist. > > If the process not exist or have a problem, the software restart the > application ( in this case : samba) > > sometimes I see that samva is restarted by the software. > yes terday I added a message for see what start the recovery of sambaand> I find that nmbd is present two times. > > My test into the script is : > > health_smbd=`ps -ewwf | grep "smbd" | grep -v grep | wc -l` > health_nmbd=`ps -ewwf | grep "nmbd" | grep -v grep | wc -l` > > # For success > [[ $health_smbd -ge 1 && $health_nmbd -eq 1 ]] > > I must have on or more smbd and I must have one nmbd process. > But : > > normal: > Lifekeeper: Samba: quickCheck RESOURCE Samba health status : 148 / 1 > Lifekeeper: Samba: quickCheck RESOURCE Samba health status : 147 / 1 > Lifekeeper: Samba: quickCheck RESOURCE Samba health status : 146 / 1 > Lifekeeper: Samba: quickCheck RESOURCE Samba health status : 148 / 1 > > abnormal : > Lifekeeper: Samba: quickCheck RESOURCE Samba health status : 108 / 2 > > As you can see here : > # WINS et cache > wins server = wins-srv > # wins support = yes > # wins proxy = yes > name cache timeout = 660 > > the wins server is not active, is a smbd4wins on an ither server which > made the wins server. > > Anyone can help me to find the source of the problem ? > > Samba 3.2.2 on a Redhat Enterprise Linux 5.1 > > Thanks > > St?phane Purnelle > > ----------------------------------- > St?phane PURNELLE stephane.purnelle@corman.be > Service Informatique Corman S.A. Tel : 00 32 087/342467 > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba