You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to Resize Root Partition of Oracle Linux Instance in OCI

edited Jun 28, 2022 8:02AM in Linux

Applies To:

Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]

Oracle Cloud Infrastructure

Information in this document applies to any platform.

Goal:

To resize root partition of an Oracle Linux instance in OCI.

Solution:

  • Login onto OCI UI/Console.
  • Stop the instance in question.
  • Detach the boot volume.
  • Resize the boot volume to a larger size.
  • Attach the boot volume.
  • Start the instance.
  • SSH into the instance to check the new boot volume size.
# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0   52G  0 disk             <<-- new boot volume size
├─sda2   8:2    0    8G  0 part [SWAP]
├─sda3   8:3    0 38.4G  0 part /           <<-- old partition size
└─sda1   8:1    0  200M  0 part /boot/efi
#
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!