Offline Boot Volume Resizing
On Oracle Compute Cloud@Customer, for offline boot volume resizing, you must stop the instance and 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 don't 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 aren't using consistent device paths, or if the instance doesn't support consistent device paths, device order and path might change. If you're using a tool such as Logical Volume Manager (LVM), you might need to fix the device mappings.
Prerequisites
-
Stop the instance that has the boot volume. See Stopping, Starting, and Resetting an Instance
- Detach the boot volume. See Detaching a Boot Volume.
-
In the Compute Cloud@Customer Console navigation menu, select Block Storage, then select Boot Volumes.
-
At the top of the page, select the compartment that contains the boot 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 keep the size the same, or increment the size. You can't decrease the size. The value must be between 50 GB and 32 TB and specified in 1 GB increments.
-
-
Select Save Changes.
-
Complete the resizing operation.
See Completing the Offline Resizing Operation for Boot Volumes
-
Use the oci bv boot-volume update command and required parameters to resize a boot volume.
oci bv boot-volume update --boot-volume-id <volume_OCID> --size-in-gbs <size_in_GBs> [OPTIONS]
The
size_in_GBs
value is the size of the boot volume. You can increment the size. You can't decrease the size. The value must be between 50 GB and 32 TB and specified in 1 GB increments.Next, complete the resizing operation.
See Completing the Offline Resizing Operation for Boot Volumes.
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the UpdateBootVolume operation to resize a boot volume.
Next, complete the resizing operation.
See Completing the Offline Resizing Operation for Boot 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.