Online Resizing a Block or Boot Volume
With online resizing, you can expand the volume size without detaching the volume from an instance.
Block Volumes
Use the
oci bv volume updatecommand and specify the--volume-idand--size-in-gbsparameters to resize a block volume:oci bv volume update --volume-id <volume_OCID> --size-in-gbs <new_size>... [OPTIONS]Boot Volumes
Use the
oci bv boot-volume updatecommand and specify the--volume-idand--size-in-gbsparameters to resize a block volume:oci bv boot-volume update --volume-id <volume_OCID> --size-in-gbs <new_size>... [OPTIONS]For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Block Volumes
Run the
UpdateVolumeoperation and specify thevolumeIdattribute in the request body and thesizeInGBsattribute in theUpdateVolumeDetailsresource to resize a block volume.Boot Volumes
Run the
UpdateBootVolumeoperation and specify thevolumeIdattribute in the request body and thesizeInGBsattribute in theUpdateBootVolumeDetailsresource to resize a boot volume.
Next Steps
- Rescan the disk. See Rescanning the Disk for Volumes Attached to Windows Instances.
- Extend the partition. See Extending the Partition for a Block Volume on a Windows-Based Image.