Migration
Migrating an Instance with Legacy Flavours
The following procedure can be used if your existing m1 or m2 instance has an ephemeral file system, AND you need to keep the data in it.
Further contextual information can be found on the Nectar Support site.
Steps:
-
Back up your files. You should already have a procedure for making regular backups of your valuable files held on your instances and attached storage. Before you start the migration, make sure that your backups are up to date.
-
Take your instance out of normal service. You are in the best position to know what this will entail.
-
Unmount and detach any volumes from the instance. These will need to be migrated separately; see “Migrating a volume”.
-
Shut down the instance.
-
Snapshot the instance. You should verify that the snapshot has been successfully uploaded to the Image catalog.
-
Launch new instance from snapshot in target Availability Zone. If you run into the “No valid hosts found” issue, you could try using a smaller flavor for the new instance, either temporarily (and resize later) or permanently. Alternatively raise a support ticket.
-
If you have decided that you need a volume to replace the ephemeral file system:
-
Create a new empty volume and attach it to the new instance.
-
Format the volume and mount it.
-
-
Restart the old instance, but do not restart user-facing services.
-
Use rsync to copy the files from the old instance’s ephemeral file system to the new instance. The target location for the copied files on the new instance is up to you. Depending on the circumstances, you could copy some or all of the files into the new instance’s root file system.
-
Shutdown the old instance once more.
-
Attach any other migrated volumes. After attaching the volumes, you should verify that the device names (“vdb”, “vdc”, etcetera) for the volumes are as expected and then mount the volumes’ file systems.
-
Verify the correct operation of the new instance. You are in the best position to know what this will entail.
-
Restore the instance to service. You are in the best position to know what this will entail.
-
Wait. It is advisable to keep the old volume for a few days in case it is needed to roll back the migration.