lvm commands reporting error such as "Internal error: Volume Group swapvg was not unlocked".
Issue
lvmcommands not listing any logical volume details and reporting following messages.
# lvs
Parse error at byte 1741 (line 111): unexpected token
Error parsing metadata for VG rhel.
Cannot process volume group rhel
Internal error: Volume Group rhel was not unlocked
Device '/dev/sda2' has been left open (0 remaining references).
Device '/dev/sdb' has been left open (0 remaining references).
Internal error: 2 device(s) were left open and have been closed.
Environment
- Red Hat Enterprise Linux 7
- lvm2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
