How to Resize Root Partition of Oracle Linux Instance in OCI
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 #
1