Offline Block Volume Resizing
On Private Cloud Appliance, for offline resizing, you detach the volume from an instance before you expand the volume size. When the volume is resized and reattached, you need to extend the partition, but you do not need to rescan the disk.
Considerations When Resizing an Offline Volume
Whenever you detach and reattach volumes, there are complexities and risks for both UNIX based and Microsoft Windows instances. Be aware of the following cautions.
Before you resize a boot or block volume, create a full backup of the volume. See Backing Up Block Volumes.
When you reattach a volume to an instance after resizing, if you are not using consistent device paths, or if the instance does not support consistent device paths, device order and path might change. If you are using a tool such as Logical Volume Manager (LVM), you might need to fix the device mappings.
Prerequisite
- Block Volumes: Detach the block volume. See Detaching a Block Volume.
-
In the Compute Web UI navigation menu, select Block Storage, then select Block Volumes.
-
At the top of the page, select the compartment that contains the block volume you want to resize.
-
For the volume you plan to resize, select the Actions menu (
), then select
Edit. -
Change the size:
-
Size (in GBs): You can increase the size in 1 GB increments up to 32768 (32 TB). You can't decrease the size.
-
-
Select Save Changes.
-
Complete the resizing operation.
See Completing the Offline Resizing Operation for Block Volumes
-
Use the oci bv boot-volume update command and required parameters to resize the block volume.
oci bv volume update --volume-id <volume_OCID> --size-in-gbs <size_in_GBS> [OPTIONS]<size_in_GBs> is the size of the block volume. You can increase the size in 1 GB increments up to 32768. You can't decrease the size.
Next, complete the resizing operation.
See Completing the Offline Resizing Operation for Block Volumes
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the UpdateVolume operation to resize a block volume.
Next, complete the resizing operation.
See Completing the Offline Resizing Operation for Block Volumes
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.