My Oracle Support Banner

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

Last updated on DECEMBER 01, 2024

Applies to:

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

Goal

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.

Solution

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
Goal
Solution
 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)
References


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