Re: drbd-graceful-shutdown.service interfering with Pacemaker
Reid Wahl <[email protected]> Fri, 31 Jan 2025 00:36:15 -0800
| Newsgroups | gmane.comp.linux.drbd |
|---|---|
| Message-ID | <CAPiuu9-+hzNr+RWNNbN6wX_mENVFo1GHE1c-qSpOPcNMDBq0iA@mail.gmail.com> |
Thanks, all! On Tue, Jan 28, 2025 at 9:41=E2=80=AFAM Akemi Yagi <[email protected]> wro= te: > > On Mon, Jan 27, 2025 at 4:00=E2=80=AFAM Lars Ellenberg > <[email protected]> wrote: > > > > On Thu, Jan 23, 2025 at 12:56:11PM -0800, Reid Wahl wrote: > > > Hi, we at Red Hat received a user bug report today involving drbd and= Pacemaker. > > > > > > When shutting down the system (e.g., with `shutdown -r now`), > > > Pacemaker hangs when trying to stop the cluster resource that manages > > > drbd. If the user manually stops Pacemaker before shutdown (e.g., > > > `systemctl stop pacemaker`), the problem does not occur. > > > > So apparently we forgot to add a "Before=3Dpacemaker.service" > > or even better "Before=3Dresource-agents-deps.target" > > to the graceful shutdown service. > > > > If you don't need it in your environment, you can still "mask" it. > > > > I have some changes queued up for our systemd thingies, > > I'll work that in as well. > > > > BTW, stopping pacemaker explicitly first should be a generic recommenda= tion > > and has proven useful in many cases. > > Because all sorts of missing dependencies for all sorts of things, whic= h, > > because of the racy nature, only "sometimes" are stopped "too early". > > > > And because, whenever there is a problem during shutdown of pacemaker, > > for whatever reason, and you already initiated the system shutdown, > > you have very limited means to "help it along", and sometimes need to > > wait out all of the timeouts and escalation timeouts. > > > > Thank you for the report. > > > > Lars > > Hi, > > If you run RHEL (or its rebuild), you can get the drbd-utils package > that has the proposed fix. It is currently in the elrepo-testing > repository. > > EL8: > https://elrepo.org/linux/testing/el8/x86_64/RPMS/drbd90-utils-9.30.0-2.el= 8.elrepo.x86_64.rpm > > EL9: > https://elrepo.org/linux/testing/el9/x86_64/RPMS/drbd9x-utils-9.30.0-2.el= 9.elrepo.x86_64.rpm > > Akemi > --=20 Regards, Reid Wahl (He/Him) Senior Software Engineer, Red Hat RHEL High Availability - Pacemaker