Changing the boot disk for an instance to SSD
Issue description
You need to change the boot disk type for an existing Compute Cloud instance from HDD to SSD.
Solution
You can change the boot disk type from HDD to SSD by recreating your instance from a disk snapshot or image.
A disk snapshot only contains the data that had already been written to the disk when the snapshot was created. If the disk is attached to a running VM, the OS and app cache will not be included in the snapshot. Snapshots are better suited for regular backups inside instances.
For more information about preparing a VM for disk snapshot creation and maintaining the integrity of the snapshot data, see Creating a disk snapshot in the documentation.
Images are better suited for quick resource deployment, for example, from bootable VM disks. This means that it takes less time to create disks and instances from images than from snapshots.
To change the disk type for your VM instance, follow these steps:
-
Using a snapshot:
- Create a snapshot of the current disk.
- Create a new VM from the snapshot.
-
Using an image:
- Create an image from the current disk.
- Create a new VM from the image.
Make sure that the new VM boots and includes all the required data. After that, you can delete the old VM.