When you create a new virtual machine (VM) instance or bare metal instance based on an Oracle-provided image or custom image, you have the option of specifying a custom boot volume size. You can also expand the size of the boot volume for an existing instance; see Resizing a Volume for more information. In order to take advantage of the larger size, you need to extend the partition for the boot volume.
After a boot volume has been resized, the first backup on the resized boot volume will be a full backup. See Boot Volume Backup Types for more information about full versus incremental boot volume backups.
Required IAM Policy
Extending a partition on an instance does not require a specific IAM policy. However, you may need permission to run the necessary commands on the instance's guest OS. Contact your system administrator for more information.
Extending the Root Partition on a Linux-Based Image
For instances running Linux-based images, you need to extend the root partition and then grow the file system.
Before you can extend the partition, you need to detach the boot volume from the instance and attach it to another instance as a data volume. To do this:
After you have confirmed that there are no more issues to repair, you need to create a mount point to run the xfs_growfs against. To do this, create a directory and mount the partition to that directory by running the following commands:
mount <partition_id><directory_name> -o nouuid
<partition_id> is the partition identifier, for example /dev/sdc3, and <directory_name> is the directory to create and mount.
After you have created the mount point run the following command to grow the file system:
xfs_growfs -d <directory_name>
<directory_name> is the name for the directory you created in the previous step.
To verify that the file system size is correct, run the following command to display the file system details:
Once you have verified that the file system size is correct, run the following command to unmount the partition:
After you have extended the partition and grown the file system, you can restart the original instance with the boot volume. To do this: