There was a problem loading the comments.

Convert Linux boot disk from Virtio to SCSI

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
In the past, Proxmox mainly worked with Virtio disks. Virtio has now been overtaken by virtio-scsi, which provides an even better performance and offers even more functionality, such as TRIM support. Thanks to TRIM, space that is no longer in use in the VM can also be released on the storage cluster.

It is quite easy to convert a disk from Virtio to SCSI. This article describes the steps required to ensure that you can safely convert your boot disk. It is important to realize that there are two points where we define how the disk is connected:
1cb95d70999ad6745914d2ae579f595072c7a279?t=30492b1f9dfb72669d94635e47ac0ed1 The SCSI Controller and the disk. The SCSI Controller is often set to LSI 53C895A, so we will adjust that!


Roadmap:

  • Make a backup
  • Make sure your backup is fine
  • Delete the snapshots (this is difficult afterwards, because the VM configuration no longer matches)
  • Check whether the 'Protection' in the 'Options' tab is disabled
  • Check in the file '/ etc / fstab' what your disks are called. Usually that is with UUID. You don't have to do anything. If it says / dev / sdX, you don't have to do anything, if it says / dev / vdX, change 'vd' to 'sd'
  • Add the option 'discard' as a mount option
  • Turn off the server and change the SCSI Controller to 'VirtIO SCSI' in Proxmox
  • In Proxmox, Detach the disk(s) and remember which disk is the boot disk
  • Double-click on the 'Unused' disks to add them back to the VM and add them as SCSI, check the 'discard' and 'SSD Emulation' checkboxes.
  • In Proxmox, click on 'Options' and double-click on 'Boot Order'. Select the correct SCSI disk as the boot disk
  • Boot the server
  • Check if all desired disks are mounted






Share via
Did you find this article useful?  

Related Articles

© Tuxis B.V.