Detaching a Boot Volume
On Oracle Cloud Infrastructure, if you think a boot volume issue is causing a compute instance problem, you can stop the instance and detach the boot volume using the steps described in this topic. Then you can attach the boot volume to another instance as a data volume to troubleshoot it.
Prerequisite:
The instance must be in the Stopped state to detach a boot volume. You must reattach a boot volume before you can start the instance. See Stopping, Starting, and Resetting an Instance.
When you stop the instance, any application that's running on the instance is immediately stopped, possibly resulting in data corruption. To avoid stopping the instance while applications are running, manually shut down the instance by using the commands available in the instance OS. After the instance is shut down from the OS, then stop the instance.
-
Stop the instance:
-
Shut down the instance from the instance OS.
-
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 you plan to stop.
-
Select the name of the instance.
-
On the instance details page, select Controls (upper right corner), then select Stop.
Wait for the status to change from Stopping to Stopped. Stopping an instance can take up to five minutes.
-
-
Under Resources, select Boot Volumes.
-
Select the boot volume Actions menu (
), then select Detach.
-
Confirm when prompted.
-
Use the oci compute boot-volume-attachment detach command and required parameters to detach a boot volume from an instance.
oci compute boot-volume-attachment detach --boot-volume-attachment-id <boot_volume-attachment_OCID> [OPTIONS]
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the DetachBootVolume operation to detach a boot volume from 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.