pvremove fails with "Can't open <device> exclusively. Mounted filesystem?" on Red Hat Enterprise Linux
Issue
- pvremove throws an error:
# pvremove /dev/mapper/mpath2
Can't open /dev/mapper/mpath2 exclusively. Mounted filesystem?
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- LVM2
- Removing a physical volume with pvremove
- Renaming a volume group
- Creating a volume group
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.