Unmounting a GFS2 filesystem appears to hang on RHEL 6

Solution Unverified - Updated

Environment

  • Red Hat Enterprise Linux Server 6, 7 (with the High Availability and Resilient Storage Add Ons)
  • A Global Filesystem 2(GFS2)

Issue

  • Unmounting a GFS2 filesystem appears to hang.

Resolution

Workaround:
Reboot the host that has the umount process that appears to be hung unmounting a GFS2 filesystem.

Root Cause

The umount is related to reference counting which was discovered when investigating another issue. In addition, it was discovered that the umount operation would not timeout and print to /var/log/dmesg the glocks that could not be cleared.

Diagnostic Steps

  • Review the /var/log/messages file for any log events that showed a umount process that blocked for more than 120 seconds. This message is not guaranteed to be there when this issue occurs.
  • Dump the process threads with sysrq -t so that GFS2 related processes can be reviewed.
SBR
Components
Category

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.