Oracle Database Error Solutions – Easy & Practical Guides

Welcome to a dedicated platform for solving common Oracle Database errors like ORA-01194, ORA-01555, ORA-01017, ORA-12154 and more.

Learn step-by-step solutions, real-world troubleshooting, and best practices to handle Oracle issues efficiently.

View All Oracle Error Solutions

How to Extend Swap space on LVM Disk Linux

How to Extend Swap space on LVM Disk Linux

 Applies to:

            Oracle Database 12.2

            Oracle Linux 7

Description:

            Want to extend Swap space on LVM disk. Assumes that space is available in the volume group on which the current swap partition is located as logical volume.

Solution:

            To extend the amount of swap space in a LVM environment follow the below steps.

To verify the swap space exists and is a logical volume issue the following command:

           

To view the swap volume using fdisk command:

[root@ora12c ~]# fdisk -l

We see that current swap space is 7.88GB and we want to extend 2GB to this swap volume.

Stop or terminate all program/services which are using swap space and then stop existing swap volume using swapoff command.

[root@ora12c ~]# swapoff -a

Now increase the size of current swap space logical volume by 2GB using following command:

You can see that size has been increased by 2GB successfully.

Now to make the volume as a swap partition issue the following command:

Now turn on swap space as:

[root@ora12c ~]# swapon -a

You can also check and verify swap space by free and lsblk command:

 

 

Your comments especially which will help us to improve the functionality and make the post user friendly, will be greatly appreciated J

👉 Check our complete guide: Oracle Error Codes Guide

You are requested to follow my Blog.

No comments:

Post a Comment

Contact / Feedback Form

Name

Email *

Message *