My Oracle Support Banner

Oracle Linux: How to Grow / Extend an Existing LVM-based Swap Device (Doc ID 2567491.1)

Last updated on MAY 18, 2023

Applies to:

Linux OS - Version Oracle Linux 6.0 and later
Linux x86-64
Linux x86
Linux ARM 64-bit


Occasionally, it may be necessary to add additional swap space to an Oracle Linux (OL) system.

This can typically be accomplished via several means e.g.:

This document specifically describes the expansion of an existing LVM-based swap device.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 1. Configuration (Before)
 2.  Add new device
 3. Partition the new device
 4. Create the Physical Volume
 5. Extend the Volume Group
 6. Extend the swap Logical Volume
 7. Make use of the larger swap device
 7.1 Disable the existing swap device
 7.2 Recreate the swap device
 7.3 Enable the new larger swap device
 8. Configuration (After)

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.