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 update
command and specify the--volume-id
and--size-in-gbs
parameters 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 update
command and specify the--volume-id
and--size-in-gbs
parameters 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
UpdateVolume
operation and specify thevolumeId
attribute in the request body and thesizeInGBs
attribute in theUpdateVolumeDetails
resource to resize a block volume.Boot Volumes
Run the
UpdateBootVolume
operation and specify thevolumeId
attribute in the request body and thesizeInGBs
attribute in theUpdateBootVolumeDetails
resource to resize a boot volume.
Next Steps
- Rescan the disk. See Rescanning the Disk for Volumes Attached to Linux-Based Instances and Rescanning the Disk for Volumes Attached to Windows Instances.
- Extend the partition. See Extending the Partition for a Block Volume on a Linux-Based Image and Extending the Partition for a Block Volume on a Windows-Based Image.