Why rgamanger can't be stopped successfully sometimes?

Solution Unverified - Updated -

Environment

  • Red Hat High Availability Add-on

Issue

  • Why rgamanger can't be stopped successfully sometimes?

Resolution

Don't stop rgmanager so frequently.

Root Cause

Sometimes rgmanager will move into D status when it doing some important task(e.g. resource group failover). And a process can't be killed when it in D status.

/etc/init.d/rgmanager

... ...
stop_cluster()
{
        kill -TERM $(pidof $RGMGRD)  <===

        # this unbreakable loop is meant to be done this way.
        # there are resources that can take up to several minutes
        # to stop and there is no "right timeout".
        while status $RGMGRD > /dev/null 2>&1; do
                sleep 1
        done
}

Diagnostic Steps

  • Check with following command why rgmanager stop hanged.
# bash -x service rgmanager stop

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.