OCI: How to Increase Root Partition of Ubuntu Instance
Applies To:
Oracle Cloud Infrastructure
Ubuntu Linux - x86-64
Goal:
To Increase the root partition size of an Ubuntu instance in OCI.
Solution
To resize the root partition, there are 2 methods that can be followed:
1) Resize the Volume and reboot the instance.
OR
2) Resize the Volume, rescan the disks, grow the partition and resize the filesystem
Method 1:
1.1) Resize the boot volume to a new size which needs to be a larger value than the current one:
1.2) Increase the size of the boot volume:
1.3) Reboot the instance:
ubuntu$ sudo reboot -f
Method 2:
The steps here assume that the disk in question is /dev/sda.
Tagged:
0