Unable to deactivate LVM resource created with RAID 1 LVs in a RHEL 7 Pacemaker cluster

Solution Unverified - Updated -

Issue

  • Unable to deactivate RAID 1 logical volumes
  • pcs resource debug-stop gives the following errors for an LVM resource even though the Filesystem resource has been stopped correctly.
# pcs resource debug-stop LVM_resource
Operation stop for LVM_resource (ocf:heartbeat:LVM) returned: 'unknown error' (1)
 >  stdout: volume_list="test_vg" 
 >  stdout: volume_list="test_vg"
 >  stderr: INFO: Deactivating volume group test_vg
 >  stderr: ERROR: Logical volume test_vg/raid1lv contains a filesystem in use. Can't deactivate volume group "test_vg" with 3 open logical volume(s)
 >  stderr: ocf-exit-reason:LVM: test_vg did not stop correctly
 >  stderr: WARNING: test_vg still Active
 >  stderr: INFO: Retry deactivating volume group test_vg

Environment

  • Red Hat Enterprise Linux 7 (with the High Availability Add-on)
  • lvm2 package versions prior to 2.02.185-2.el7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In