How to Increase an Oracle Cloud Boot Volume

I wrote these tutorials for myself in future when I forget for the next steps.
Search for a command to run...

I wrote these tutorials for myself in future when I forget for the next steps.
No comments yet. Be the first to comment.
When you provision an Ubuntu instance on Oracle Cloud, you'll notice something different from standard Ubuntu installations: the system uses iptables instead of ufw for firewall management. This disti

When developing web applications locally, HTTPS is often overlooked. Yet, modern browsers and APIs increasingly require secure connections—even in development. That’s where mkcert comes in: a simple t

Testing the checkout success page in Magento 2 can be frustrating. By default, once an order is placed, Magento clears the quote session, meaning you can’t simply refresh or revisit the success page without going through the entire checkout process a...

Magento Commerce (EE) offers powerful features, but for many teams, Open Source (CE) is leaner, lighter, and more sustainable. If you're migrating from EE to CE, the Opengento downgrade tool provides a clean, scriptable way to remove proprietary modu...

If you’ve ever checked your Apache error logs and seen something like this: Code [core:error] (13)Permission denied: access to /robots.txt denied (filesystem path '/home/username/sites') because search permissions are missing on a component of the pa...

Oracle Cloud Infrastructure allows you to expand the size of a boot volume without rebuilding your instance. This can be done online in many cases, meaning you can keep your system running while the change is applied. Below is a practical guide to resizing your boot volume safely.
You can only increase the size of a boot volume. Reducing it is not supported.
The maximum size for a boot volume is 16 TB.
If cross‑region replication is enabled, you must disable it before resizing.
Always take a backup before making changes.
Check your current boot volume size In the OCI Console, go to Compute → Boot Volumes and select your instance’s boot volume.
Review performance settings If you are on a paid performance tier and want to stay in the Always Free limits, ensure the performance level is set to Lower Cost.
Sign in to the Oracle Cloud Console.
Open the navigation menu and go to Compute → Boot Volumes.
Locate the boot volume you want to resize and click its name.
Click Edit Size or Performance.
Enter the new size in GB. This must be larger than the current size.
Save the changes.
After the OCI change is applied, your operating system will see the extra space, but you must extend the partition and filesystem to use it.
Check the device name
bash
lsblk
Identify your boot disk (often /dev/sda or /dev/nvme0n1).
Grow the partition (if using GPT and cloud-init has not done it automatically)
bash
sudo growpart /dev/sda 1
Replace /dev/sda 1 with your actual device and partition number.
Resize the filesystem For ext4:
bash
sudo resize2fs /dev/sda1
For XFS:
bash
sudo xfs_growfs /
Verify the new size
bash
df -h
Keep your boot volume performance tier within free limits if cost control is important.
Schedule the resize during a maintenance window if you are unsure about online resizing.
Maintain regular backups so you can roll back if needed.