A LVM resource fails to stop with the error: ERROR: Logical volume vg_shared1/lvol-3 contains a filesystem in use. Can't deactivate volume group "vg_shared1" with 2 open logical volume(s)

Solution In Progress - Updated -

Issue

  • A resource failed to stop (and cluster node was fenced) after the following error occurred:
Jul 27 20:55:38 node42 LVM(LVM-vg_shared1)[25885]: INFO: Deactivating volume group vg_shared1
Jul 27 20:55:38 node42 LVM(LVM-vg_shared1)[25885]: ERROR:  Logical volume vg_shared1/lvol-3 contains a filesystem in use. Can't deactivate volume group "vg_shared1" with 2 open logical volume(s)
Jul 27 20:55:38 node42 LVM(LVM-vg_shared1)[25885]: ERROR: LVM: vg_shared1 did not stop correctly
Jul 27 20:55:38 node42 LVM(LVM-vg_shared1)[25885]: WARNING: vg_shared1 still Active
Jul 27 20:55:38 node42 LVM(LVM-vg_shared1)[25885]: INFO: Retry deactivating volume group vg_shared1
Jul 27 20:55:39 node42 LVM(LVM-vg_shared1)[25885]: ERROR:  Logical volume vg_shared1/lvol-3 contains a filesystem in use. Can't deactivate volume group "vg_shared1" with 2 open logical volume(s)
[.....]
Jul 27 20:55:51 node42 lrmd[23221]:  notice: LVM-vg_shared1_stop_0:25885:stderr [ ocf-exit-reason:LVM: vg_shared1 did not stop correctly ]
Jul 27 20:55:51 node42 crmd[873]:  notice: Result of stop operation for LVM-vg_shared1 on node42.example.com: 1 (unknown error)
Jul 27 20:55:51 node42 crmd[873]:  notice: node42.example.com-LVM-vg_shared1_stop_0:226 [ ocf-exit-reason:LVM: vg_shared1 did not stop correctly\nocf-exit-reason:LVM: vg_shared1 did not stop correctly\nocf-exit-reason:LVM: vg_shared1 did not stop correctl
y\nocf-exit-reason:LVM: vg_shared1 did not stop correctly\nocf-exit-reason:LVM: vg_shared1 did not stop correctly\nocf-exit-reason:LVM: vg_shared1 did not stop correctly\nocf-exit-reason:LVM: vg_shared1 did not stop correctly\nocf-exit-reason:LVM: vg_shared1 did not sto
Jul 27 20:55:51 node42 crmd[873]: warning: Action 28 (LVM-vg_shared1_stop_0) on node42.example.com failed (target: 0 vs. rc: 1): Error

Environment

  • Red Hat Enterprise Linux Server 7, 8 (with the High Availability Add On)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In