Softaculous


Topic : Virtualizor virtio-iscsi


Posted By: Ahav on December 13, 2019, 10:04 pm
Hi,

Is there a way to create new KVM VMs with the virtio_scsi module loaded by default? The currently running virtio_blk does not support fstrim and the node has SSDs as storage.

Code
[root@my-server01 grub2]# fstrim /
fstrim: /: the discard operation is not supported


The layers are SSDs -> mdraid -> LVM -> Guest OS.

Let me know if you need any other info.

Thank you.

Posted By: jevingala on December 14, 2019, 9:48 am | Post: 1
Hi,

We are going to add support for fstrim soon.
For now, Virtualizor will not create vps disk with virtio_scsi .

-----------------------
Regards,
Virtualizor Team.
http://virtualizor.com/

Posted By: Ahav on December 14, 2019, 12:49 pm | Post: 2
Hi,

Do you have a roadmap for this? What is the timeline for making this happen? (1 month, 6 months, 2 years, etc.).

Also, do you plan on keeping the virtio_blk as the default module or do you want to change it to virtio_scsi?

From what I've found, the virtio_blk has discard enabled only in kernel 5.0:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d548e65904ae43b0637d200a2441fc94e0589c30

https://git.qemu.org/?p=qemu.git;a=commitdiff;h=37b06f8d46fe602e630e4

Thank you.

Posted By: Ahav on December 23, 2019, 7:53 pm | Post: 3
Anyone?

Posted By: Ahav on January 7, 2020, 6:06 am | Post: 4
Up.

Posted By: realrifla on March 25, 2021, 2:32 am | Post: 5
Any news on this?

Posted By: jevingala on March 25, 2021, 4:12 am | Post: 6
Hi,

Fstrim support was added in Virtualizor 3.0.3 and it would work automatically for KVM vpses created using virtio-scsi driver on thin-provisioned storage.

Edited by jevingala : March 25, 2021, 4:12 am

-----------------------
Regards,
Virtualizor Team.
http://virtualizor.com/

Posted By: realrifla on April 6, 2021, 10:24 am | Post: 7
Quote From : jevingala March 25, 2021, 4:12 am
Hi,

Fstrim support was added in Virtualizor 3.0.3 and it would work automatically for KVM vpses created using virtio-scsi driver on thin-provisioned storage.


Awesome to hear that! One question - is there a way to make virtio-scsi the default driver when creating new KVM guest?

Posted By: jevingala on April 6, 2021, 10:29 am | Post: 8
Hi,

You can have that set as default in plans and create vps using those plans.

-----------------------
Regards,
Virtualizor Team.
http://virtualizor.com/

Posted By: realrifla on April 6, 2021, 10:43 pm | Post: 9
Quote From : jevingala April 6, 2021, 10:29 am
Hi,

You can have that set as default in plans and create vps using those plans.


That did the trick, thanks.

There's one issue I'm not sure about, when I tested the virtio-scsi driver on CentOS 7 with ZFS Thin storage, it worked perfectly, when on KVM I deleted a big file, the volume was auto trimmed.

I'm now testing the Virtualizor on CentOS 8 and... it's not auto trimming anymore, is that because of CentOS8 or something else that I'm not aware about?

Posted By: realrifla on April 7, 2021, 12:22 am | Post: 10
Quote From : realrifla April 6, 2021, 10:43 pm
Quote From : jevingala April 6, 2021, 10:29 am
Hi,

You can have that set as default in plans and create vps using those plans.


That did the trick, thanks.

There's one issue I'm not sure about, when I tested the virtio-scsi driver on CentOS 7 with ZFS Thin storage, it worked perfectly, when on KVM I deleted a big file, the volume was auto trimmed.

I'm now testing the Virtualizor on CentOS 8 and... it's not auto trimming anymore, is that because of CentOS8 or something else that I'm not aware about?


Or it's working but the auto trim isn't instant, how often the auto trim runs ?

Posted By: realrifla on April 7, 2021, 3:55 am | Post: 11
Quote From : realrifla April 7, 2021, 12:22 am
Quote From : realrifla April 6, 2021, 10:43 pm
Quote From : jevingala April 6, 2021, 10:29 am
Hi,

You can have that set as default in plans and create vps using those plans.


That did the trick, thanks.

There's one issue I'm not sure about, when I tested the virtio-scsi driver on CentOS 7 with ZFS Thin storage, it worked perfectly, when on KVM I deleted a big file, the volume was auto trimmed.

I'm now testing the Virtualizor on CentOS 8 and... it's not auto trimming anymore, is that because of CentOS8 or something else that I'm not aware about?


Or it's working but the auto trim isn't instant, how often the auto trim runs ?


I've checked everything and it seems I've been testing with 'discard' enabled in KVM guest's /etc/fstab - that would explain the auto trim after deletion.

So, there's no auto-trim from the virtualizor node and the trim needs to be done on the KVM guest side. If I'm correct.

Posted By: jevingala on April 7, 2021, 7:23 am | Post: 12
Hi,


Cron is set to weekly : /etc/cron.weekly within vps, so it should work fine as it worked for your centos 7 vps.

-----------------------
Regards,
Virtualizor Team.
http://virtualizor.com/

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.