[pve-devel] virtual scsi disk passed with scsi-block with lvm host storage (wrong)

Alexandre DERUMIER aderumier at odiso.com
Tue Feb 23 17:47:58 CET 2016


Hi, users have reported bugs with virtio-scsi + lvm host storage

https://forum.proxmox.com/threads/problem-with-iscsi-virtio-ovmf.26192/#post-131416
https://forum.proxmox.com/threads/lvm-and-virtio-scsi-detects-volume-as-complete-drive.24190/

currently we use scsi-block for lvm disk, insteda scsi-generic

I think this redhat bugzilla is related

https://bugzilla.redhat.com/show_bug.cgi?id=1179577


We need to fix something here in QemuServer.pm,
I think the ioctl don't detect correctly lvm, so maybe a workaround is needed (bypass if $scfg->{type} eq 'lvm'  ?)


          if (my $info = path_is_scsi($path)) {
                      if ($info->{type} == 0) {
                          $devicetype = 'block';
                      } elsif ($info->{type} == 1) { # tape
                          $devicetype = 'generic';
                      }
                  }




More information about the pve-devel mailing list