-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a command-line option -A for enabling start delay (SBD_DELAY_START) #8
base: main
Are you sure you want to change the base?
Conversation
I know it's not an usual usage, but I've seen users use: /usr/share/sbd/sbd.sh stop to stop sbd without stopping the cluster stack, and tune their on-disk parameters or sysconfig, then bring up sbd again by running: , which basically resolves the dependency no matter if pacemaker is already running. I'd recommend to keep src/sbd.sh for now ;) |
BTW, we should be careful with SBD_DELAY_START if msgwait is even longer than the DefaultTimeoutStartSec of systemd, which is 90s AFAICS. In that case, start of sbd will time out and pacemaker won't start, and corosync will be left there alone... Probably users have to configure TimeoutStartSec for sbd.service in that case. |
For msgwait above a certain value we could spit out a warning upon 'create' that the For consistency I guess it is good to expose the '-A' option as mostly everything else What did I miss about the code at the beginning of sbd.sh? |
That's a good point, I'm not sure what the consequences of that might be. |
Good points. sbd.sh used to be a hook invoked by sbd.service as ExecStart and ExecStop when sbd daemon itself previously didn't handle any of the environment variables at all. Indeed, the behavior has been changed a bit. But as far as I can tell, the sleep is still before any of the watch servants including any disk servant is actually recruited. So I think it's fine. Actually another significant change is corosync now starts in parallel: However I don't see there is any issue about it in regard of this topic ;-) |
This also then means that the option is documented in the man page.
I suspect that
src/sbd.sh
could be removed at this point.