Re: drbd-graceful-shutdown.service interfering with Pacemaker

Akemi Yagi <[email protected]> Fri, 31 Jan 2025 02:28:13 -0800
Newsgroups gmane.comp.linux.drbd
Message-ID <CABA31Dq8b1tOfZ5nrN9wd9nUwrapyfLVrgG1jCac3tawBfxS9A@mail.gmail.com>
Thanks for the confirmation. Great to know it worked.

On Thu, Jan 30, 2025 at 12:56=E2=80=AFPM syslog <[email protected]=
t> wrote:
>
> Hello.
>
> I just installed it and it seems to resolve this issue.
>
> Il 28/01/2025 18:40, Akemi Yagi ha scritto:
> > 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 recommend=
ation
> >> and has proven useful in many cases.
> >> Because all sorts of missing dependencies for all sorts of things, whi=
ch,
> >> 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.=
el8.elrepo.x86_64.rpm
> >
> > EL9:
> > https://elrepo.org/linux/testing/el9/x86_64/RPMS/drbd9x-utils-9.30.0-2.=
el9.elrepo.x86_64.rpm
> >
> > Akemi