[Samba] CTDB does not restart samba service on failure

Martin Schwenke martin at meltin.net
Tue Apr 15 19:27:46 UTC 2025


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




More information about the samba mailing list