How to safely remove swap partition in Red Hat Enterprise Linux?

Solution Verified - Updated -


  • Is there a way to stop active swap disks, so that they can move their load to other swap disks?

  • Server being migrated from old SAN arrays to a new array. Secondary swap is currently in use as swap disks on the old array and the new array.

  • From below list, I want to stop sda2 and sda3, but they have a multi-threaded load with primary swap. I'm assuming that only a reboot will let me drop them (already commented out in fstab).

# swapon -s
Filename                                Type            Size    Used    Priority
/dev/mapper/VolGroup00-LogVol03         partition       2097144 368892  2
/dev/sda1                               partition       28846072        368520  2
/dev/sda2                               partition       28846072        368364  2
/dev/sdj1                               partition       29360120        0       -1
/dev/sdj2                               partition       29360120        0       -2


  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Swap

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