bosh-azure-cpi-release icon indicating copy to clipboard operation
bosh-azure-cpi-release copied to clipboard

Snapshot based disk migration

Open s4heid opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

Currently, Azure does not support a direct migration from Premium SSD v2 or Ultra SSD to other disk types, as detailed here. This limitation prevents the use of the native disk update feature for those looking to switch storage types from Premium SSD v2 or Ultra Disks.

Describe the solution you'd like

Although direct support is not available yet, changing the disk type is feasible by utilizing snapshots. If you're transitioning from Premium SSD v2 or Ultra Disks, the update_disk method should do the following steps:

  1. unmounting the disk
  2. creating a snapshot, ensuring the completionPercent reaches 100
  3. generating a new disk from this snapshot
  4. mounting the new disk
  5. removing the snapshot again

Pending Task: evaluate and compare the efficiency of using regular copy methods versus snapshots.

Additional context This request is a continuation of issue #697 and has been suggested by @MSSedusch.

s4heid avatar Sep 09 '24 11:09 s4heid