Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > General Support > Topic : Virtualizor virtio-iscsi



Threaded Mode | Print  

 Virtualizor virtio-iscsi (12 Replies, Read 5814 times)
Ahav
Group: Member
Post Group: Newbie
Posts: 5
Status:
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.
IP: --   

Virtualizor virtio-iscsi
jevingala
Group: Virtualizor Team
Post Group: Super Member
Posts: 606
Status:
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/
IP: --   

Virtualizor virtio-iscsi
Ahav
Group: Member
Post Group: Newbie
Posts: 5
Status:
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.
IP: --   

Virtualizor virtio-iscsi
Ahav
Group: Member
Post Group: Newbie
Posts: 5
Status:
Anyone?
IP: --   

Virtualizor virtio-iscsi
Ahav
Group: Member
Post Group: Newbie
Posts: 5
Status:
Up.
IP: --   

Virtualizor virtio-iscsi
realrifla
Group: Member
Post Group: Newbie
Posts: 5
Status:
Any news on this?
IP: --   

Virtualizor virtio-iscsi
jevingala
Group: Virtualizor Team
Post Group: Super Member
Posts: 606
Status:
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/
IP: --   

Virtualizor virtio-iscsi
realrifla
Group: Member
Post Group: Newbie
Posts: 5
Status:
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?
IP: --   

Virtualizor virtio-iscsi
jevingala
Group: Virtualizor Team
Post Group: Super Member
Posts: 606
Status:
Hi,

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

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

Virtualizor virtio-iscsi
realrifla
Group: Member
Post Group: Newbie
Posts: 5
Status:
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?
IP: --   

Virtualizor virtio-iscsi
realrifla
Group: Member
Post Group: Newbie
Posts: 5
Status:
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 ?
IP: --   

Virtualizor virtio-iscsi
realrifla
Group: Member
Post Group: Newbie
Posts: 5
Status:
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.
IP: --   

Virtualizor virtio-iscsi
jevingala
Group: Virtualizor Team
Post Group: Super Member
Posts: 606
Status:
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/
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 15, 2021, 11:05 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:1.690