Online Resizing a Block or Boot Volume

With online resizing, you can expand the volume size without detaching the volume from an instance.

    1. On the Block Volumes or Boot Volumes list page, find the volume that you want to resize. If you need help finding the list page or the volume, see Listing Volumes or Listing Boot Volumes.
    2. From the Actions menu (three dots), select Edit.
    3. In the edit panel, for Volume size (in GB), enter the new volume size.

      You must specify a larger value than the block volume's current size.

    4. Select Save changes.
      If you resized a volume attached to a Linux-based instance, a dialog opens that lists the commands you need to run after the volume is provisioned.
    5. (Optional) Run the listed commands to ensure that the operating system correctly identifies the increased volume size.
      1. Select Copy to copy the commands.
      2. Select Close to close the dialogue.
    6. See Next Steps for information on rescanning the disk and extending the partition.
  • 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 updatecommand 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 the volumeId attribute in the request body and the sizeInGBs attribute in the UpdateVolumeDetails resource to resize a block volume.

    Boot Volumes

    Run the UpdateBootVolume operation and specify the volumeId attribute in the request body and the sizeInGBs attribute in the UpdateBootVolumeDetails resource to resize a boot volume.