Reattaching a Boot Volume
On Oracle Cloud Infrastructure, you can reattach a boot volume to an instance.
A boot volume is automatically attached to an instance when the instance is launched. Sometimes you need to detach and reattach a boot volume as a data volume for troubleshooting purposes. For that information, see Detaching a Boot Volume and Attaching a Volume. This procedure describes how to reattach a boot volume to an instance.
-
In the Compute Cloud@Customer Console navigation menu, select Compute, then select Instances.
-
At the top of the page, select the compartment that contains the instance for which you want to reattach a boot volume.
-
Select the instance name.
-
Under Resources, select Boot Volumes.
-
Select the boot volume Actions menu (
), then select Attach.
Confirm when prompted.
Wait for the state of the boot volume to be Attached. Then you can restart the instance as described in Stopping, Starting, and Resetting an Instance.
-
Use the oci compute boot-volume-attachment attach command and required parameters to reattach a boot volume to an instance.
oci compute boot-volume-attachment attach --boot-volume-id <boot_volume_OCID> --instance-id <instance_OCID> [OPTIONS]
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the AttachBootVolume operation to reattach a boot volume to an instance.
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.