In RHEL 6, need to remove SWAP filesystem from partition

Solution Verified - Updated -

Issue

  • Need to remove SWAP filesystem from partition
  • When moving SWAP from /dev/sda2 to LVM. Then adding /dev/sda2 to a volume group. The partition flags show that /dev/sda2 is LVM, but the filesystem still shows as SWAP when using the parted command. Will this be an issue?
  • Is there a way to remove the SWAP filesystem prior to added it to the volume group?

Environment

  • Red Hat Enterprise Linux (RHEL) 6

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.