How do I delete a LUKS device?

Solution Verified - Updated -

Issue

  • How do I delete a LUKS device?
  • I've created a LUKS device and would like to delete it.
  • When attempting to remove a logical volume I receive the following error:
# lvremove /dev/mapper/VolGroup-lv_lukstest 
  Logical volume VolGroup/lv_lukstest is used by another device.

Environment

  • Red Hat Enterprise Linux
  • LUKS

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.