> This feature is only available with Android 7.0 and above
It is possible to migrate an instance /data partition via external disks: any attached external disk will be used as internal storage by the Android OS (the /data partition). In that case, the /data partition that belongs to the primary disk won't be used. This disk can then be migrated to another instance if it runs with the same Android version.
This section provides you with detailed guides for each Cloud provider.
Generate and attach an external disk
AWS
10.0.0 · 7.0+
1. Create a new EBS volume from the EC2 console (Elastic Book Store > Volumes).
2. Attach the volume to the desired instance.
3. Start the instance.
4. It is also possible to create the external EBS volume when creating an instance.
From this point the external disk will be mounted on /data and will be seen as the instance internal storage by the Android OS.
GCP
10.0.0 · 7.0+
1. Create a new disk from the Disks section of the Compute Engine console
2. Edit your instance details and add the new disk as an additional disk to your instance
3. Save the changes
4. Start the instance
It is also possible to create the external disk when creating the instance.
From this point the external disk will be mounted on /data and will be seen as the instance internal storage by the Android OS.
Alibaba
10.0.0 · 7.0+
1. Create a new disk from Storage & Snapshots > Disks > Create Disk
2. Create a Data Disk type disk
3. Click on your instance and go to the Disks section
4. Click Attach Disk and select the disk you created
5. Start the instance
It is also possible to create the external disk when creating the instance.
From this point the external disk will be mounted on /data and will be seen as the instance internal storage by the Android OS.
Azure
7.0+
1. Go to Virtual Machines and click on your virtual machine (make sure it is Stopped)
2. Go to Disks
3. In the Data Disk section, click Create and attach a new disk
4. Set the name, size and type to your needs and click Save
5. When save is complete, start the virtual machine
From this point the external disk will be mounted on /data and will be seen as the instance internal storage by the Android OS.
Migrate the external disk to another instance
AWS
The original and target instances should have the same Android version. If versions are different, we cannot guarantee the result.
Make sure that both the original and target instances are powered off
Detach the external volume from the original instance
From Elastic Book Store > Volumes, attach the volume to the target instance
Start the target instance
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.
GCP
The original and target instances should have the same Android version. If versions are different, we cannot guarantee the result.
Make sure that both the original and target instances are powered off
Detach the external volume from the original instance
From Elastic Book Store > Volumes, attach the volume to the target instance
Start the target instance
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.
Alibaba
The original and target instances should have the same Android version. If versions are different, we cannot guarantee the result.
Make sure that both the original and target instances are powered off
Detach the external volume from the original instance
From Elastic Book Store > Volumes, attach the volume to the target instance
Start the target instance
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.
Azure
Make sure that both the original and target virtual machines are powered off
Go to Virtual Machines and click on the original instance (make sure it is Stopped)
Go to Disks
In the Data Disk section, click next to the external disk you wish to detach
Click Save
Open the target virtual machine and go to Disks
In the Data Disk section, click Attach existing disk
In the Disk name drop down box, select the external disk
Click Save
Start the target virtual machine
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.
If your instance is already running, it will automatically reboot to mount the external disk.