Unable to deactivate volume group : open count remains 1 even after unmount in RHEL 5

Solution Verified - Updated -

Issue

  • Unable to deactivate volume group . The logical volumes has been unmounted however when trying to deactivate command fails with error message:
[root@host ~]# vgchange -an vg01 
Can't deactivate volume group "vg01" with 1 open logical volume(s) 

Environment

  • Red Hat Enterprise Linux (RHEL) 5
  • lvm2
  • /proc/mdstat shows the device in question as a spare or active device in a raid device
    • Other environments having these symptoms but that do not match this condition may be susceptible to a similar problem

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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content