Oracle Linux: How To Extend an LVM Root Partition with XFS Filesystem on OVM Virtual Machine

(Doc ID 2407781.1)

Last updated on JUNE 06, 2018

Applies to:

Oracle VM - Version 3.0.1 and later
Linux OS - Version Oracle Linux 6.4 and later
Information in this document applies to any platform.

Goal

The purpose of this document is to describe how to resize (extend) a root partition with XFS filesystem on Oracle Linux system, specifically running on a OVM virtual machine (DomU) when no extra disk (physical/virtual) can be added, and so the underlying virtual disk size is increased to allow space for the partition to be extended. The same procedure can be applied to any other partition required to be extended.

If the filesystem type of the partition is EXT3/EXT4 refer to Doc ID 2025884.1 (How to extend LVM root partition on a Virtual Machine (domU) running on Oracle VM)

The need to extend partitions under LVM may vary, in most of the cases the requirement is based upon a lack of space available on a determined partition.

XFS is a high-performing, journaling Linux file system which became part of the mainline Linux Kernel with version 2.4, and added for Oracle Linux distribution in the release of Oracle Linux 6.4.

NOTE: The described procedure was performed using XFS filesystems on a virtual machine (DomU) on OVM 3.4.4 running Oracle Linux 7, with a 10GB disk (8GB for /) and a need of 10GB of extra space on root partition. The same steps apply to Oracle Linux 6.4 and later versions.

 

Solution

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms