Oracle Cloud Infrastructure¶
Generate and attach the external disk¶
- Go to the Storage dashboard, Storage > Block Volumes .
-
Click Create Block Volume.
-
Give a name to your external disk and select the Compartment and Availability Domain where your instances are.
-
Select the Volume size and Performance. You can use the default settings or change the value by selecting Custom:
-
Set the other options to your linking and needs.
- Click Create Block Volume when done. A new Block Volume will be generated.
- Select the instance you wish to attach the volume to from the Instances dashboard (Compute > Instances)
- Start the instance and go to the Resources section and select Attached Block Volumes (you may need to scrool down the page).
-
Click Attach Block Volume
-
Select Paravirtualized for the Volume attachment type.
-
Select your new Block Volume from the drop-down list and click Attach
-
Wait for the Block Volume to be attached.
Once attached, the instance will reboot - this should take a couple of minutes. Once finished, the virtual device disk space should be the same as your attached Block Volumes and all changes (installed apps, etc.) will be written to it.
Migrate the external disk to another instance¶
The original and target instances should have the same Android version. If versions are different, we cannot guarantee the result.
- Stop the original instance with the attached Block Volume.
-
In the Resources > Attached Block Volumes section, click on the 3 vertical dotes at the end of line of the attached Block Volume and select Detach:
-
The Block Volume will now be available for other instance.
- Start your target instance and attach the volume to it - see steps 8-12 from previous chapter.
- The target instance will automatically reboot.
The original instance internal storage /data
will then replace the target instance one - all the applications and settings installed in the original instance will be available in the target instance.