[Samba] CTDB does not restart samba service on failure

., Srikanth N S srikanth.nagasubbaraoseetharaman at hpe.com
Wed Apr 16 15:17:23 UTC 2025


Hi Martin,

Thanks for the clarification. We were trying to test by killing SMB process and checking if CTDB starts the service. As you rightly mentioned we were expecting the same behaviour as NFS.

Thanks & Regards,
Srikanth NS

From: samba <samba-bounces at lists.samba.org> on behalf of Martin Schwenke via samba <samba at lists.samba.org>
Date: Wednesday, 16 April 2025 at 1:10 AM
To: samba at lists.samba.org <samba at lists.samba.org>
Subject: [Samba] CTDB does not restart samba service on failure
Hi Srikanth,

> We have observed that CTDB does not restart Samba service on failure.
> Could you please let us know if this is an expected behavior?

Yes, this expected behaviour. This decision was made many years ago when it was decided that potentially having smbd flap up and down repeatedly was a bad idea. The discussion centred around SMB being more temperamental than NFS with regard to flapping. The other point is that because smbd is process based, failure of the main smbd process is unlikely compared to, say, a threaded NFS server.

It would not be difficult to add automatic restart as an option on failure. We could leave the default to not restart.

Are you seeing actual smbd failures? Or is the question theoretical?

Thanks...

peace & happiness,
martin


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://urldefense.com/v3/__https://lists.samba.org/mailman/options/samba__;!!NpxR!iZGhpBwnasQnkjtOF0BNTnXCZf96FdqcJLd-9N4VJnFMhW9mkrDy7_zIKDAg8c6Nmll3JINGnTvWcg3PG0TOcXgvLyrmbtmI$<https://urldefense.com/v3/__https:/lists.samba.org/mailman/options/samba__;!!NpxR!iZGhpBwnasQnkjtOF0BNTnXCZf96FdqcJLd-9N4VJnFMhW9mkrDy7_zIKDAg8c6Nmll3JINGnTvWcg3PG0TOcXgvLyrmbtmI$>


More information about the samba mailing list