[pve-devel] virtual scsi disk passed with scsi-block with lvm host storage (wrong)
Alexandre DERUMIER
aderumier at odiso.com
Wed Feb 24 08:37:27 CET 2016
I don't known how to do that in proxmox code (we use ioctl directly)
but
bad
---
# sg_inq /dev/pve/vm-115-disk-2
standard INQUIRY:
PQual=0 Device_type=0 RMB=0 LU_CONG=0 version=0x05 [SPC-3]
[AERC=0] [TrmTsk=0] NormACA=0 HiSUP=0 Resp_data_format=2
SCCS=0 ACC=0 TPGS=0 3PC=0 Protect=0 [BQue=0]
EncServ=0 MultiP=0 [MChngr=0] [ACKREQQ=0] Addr16=0
[RelAdr=0] WBus16=0 Sync=0 [Linked=0] [TranDis=0] CmdQue=1
[SPI: Clocking=0x0 QAS=0 IUS=0]
length=96 (0x60) Peripheral device type: disk
Vendor identification: DELL
Product identification: PERC 5/i
Product revision level: 1.03
Unit serial number: 005108686cb9dda210002770c530c201
ok
--
#capsh --drop=cap_sys_rawio -- -c 'sg_inq /dev/pve/vm-115-disk-2'
Both SCSI INQUIRY and fetching ATA information failed on /dev/pve/vm-115-disk-2
ok
--
# capsh --drop=cap_sys_rawio -- -c 'sg_inq /dev/sda'
standard INQUIRY:
PQual=0 Device_type=0 RMB=0 LU_CONG=0 version=0x05 [SPC-3]
[AERC=0] [TrmTsk=0] NormACA=0 HiSUP=0 Resp_data_format=2
SCCS=0 ACC=0 TPGS=0 3PC=0 Protect=0 [BQue=0]
EncServ=0 MultiP=0 [MChngr=0] [ACKREQQ=0] Addr16=0
[RelAdr=0] WBus16=0 Sync=0 [Linked=0] [TranDis=0] CmdQue=1
[SPI: Clocking=0x0 QAS=0 IUS=0]
length=96 (0x60) Peripheral device type: disk
Vendor identification: DELL
Product identification: PERC 5/i
Product revision level: 1.03
Unit serial number: 005108686cb9dda210002770c530c201
----- Mail original -----
De: "aderumier" <aderumier at odiso.com>
À: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Mardi 23 Février 2016 17:47:58
Objet: [pve-devel] virtual scsi disk passed with scsi-block with lvm host storage (wrong)
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';
}
}
_______________________________________________
pve-devel mailing list
pve-devel at pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
More information about the pve-devel
mailing list