Hello, here is my setup :
synology server, 2x100G LUN exposed via a common target
proxmox 4.1-1 i cluster on 3 servers
new VM :
bios: ovmf
bootdisk: scsi0
cores: 4
ide2: local:iso/debian-8.2.0-amd64-netinst.iso,media=cdrom
memory: 2048
name: vm1
net0: virtio=3A:34:66:31:36:37,bridge=vmbr0
numa: 0
ostype: l26
scsi0: lvm1-lun0-synology-target1:vm-100-disk-1,size=5G
scsihw: virtio-scsi-pci
smbios1: uuid=7491a96f-312e-40f7-b345-33b80e53f06b
sockets: 1
I try to install debian-8.2.0-amd64-netinst.iso
Bad result : the debian guest sees the whole LUN. When trying to make partitions : "Inout/Output error during write on /dev/sda ERROR!!!"
When using default BIOS (SeaBIOS), the result is good : disk size=5G, partitions are created.
EDIT :
That was OK during installation and at first start. After that :
- I installed qemu-guest-agent
- I shuted down the VM (from inside the guest)
- I enabled qemu-guest-agent on the VM
- I restarted the VM
==> disk seen was now 100G, with IO errors
I removed the agent, disabled it on quest settings, and started the VM, problem is the same.
(see log down here)
Conclusion :
- the documentation encourage iSCSI -> LVM
- my tests reveal a problem when using multiple LVs over this structure
- am I doing something bad or is there a bug somewhere ?
====================
root@debian1:/var/log# cat syslog | grep -E 'logical blocks|I/O error|Kernel command line'
Feb 23 14:44:00 debian1 kernel: [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=UUID=d636efe1-9676-411a-9ddb-e5507b71e1a1 ro quiet
Feb 23 14:44:00 debian1 kernel: [ 0.975933] sd 0:0:0:0: [sda] 10485760 512-byte logical blocks: (5.36 GB/5.00 GiB)
Feb 23 14:50:05 debian1 kernel: [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=UUID=d636efe1-9676-411a-9ddb-e5507b71e1a1 ro quiet
Feb 23 14:50:05 debian1 kernel: [ 1.060430] sd 0:0:0:0: [sda] 209715200 512-byte logical blocks: (107 GB/100 GiB)
Feb 23 14:50:05 debian1 kernel: [ 1.252148] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:50:05 debian1 kernel: [ 1.252432] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:50:05 debian1 kernel: [ 1.292112] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:50:05 debian1 kernel: [ 1.292412] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:50:05 debian1 kernel: [ 2.798884] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:50:05 debian1 kernel: [ 2.799203] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:50:05 debian1 kernel: [ 2.932765] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:50:05 debian1 kernel: [ 2.933070] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:50:05 debian1 kernel: [ 5.552190] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:50:05 debian1 kernel: [ 5.552238] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:53:49 debian1 kernel: [ 235.926060] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:53:49 debian1 kernel: [ 235.926068] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:53:49 debian1 kernel: [ 236.172244] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:53:49 debian1 kernel: [ 236.172247] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:53:50 debian1 kernel: [ 236.692194] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:53:50 debian1 kernel: [ 236.692203] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:53:50 debian1 kernel: [ 236.804195] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:53:50 debian1 kernel: [ 236.804220] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:56:10 debian1 kernel: [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=UUID=d636efe1-9676-411a-9ddb-e5507b71e1a1 ro quiet
Feb 23 14:56:10 debian1 kernel: [ 1.002188] sd 0:0:0:0: [sda] 209715200 512-byte logical blocks: (107 GB/100 GiB)
Feb 23 14:56:10 debian1 kernel: [ 1.200125] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:56:10 debian1 kernel: [ 1.200428] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:56:10 debian1 kernel: [ 1.240148] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:56:10 debian1 kernel: [ 1.240509] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:56:10 debian1 kernel: [ 2.644112] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:56:10 debian1 kernel: [ 2.644433] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:56:10 debian1 kernel: [ 2.666116] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:56:10 debian1 kernel: [ 2.666436] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:56:10 debian1 kernel: [ 5.276010] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:56:10 debian1 kernel: [ 5.276303] Buffer I/O error on device sda, logical block 26214384
====================
synology server, 2x100G LUN exposed via a common target
proxmox 4.1-1 i cluster on 3 servers
new VM :
bios: ovmf
bootdisk: scsi0
cores: 4
ide2: local:iso/debian-8.2.0-amd64-netinst.iso,media=cdrom
memory: 2048
name: vm1
net0: virtio=3A:34:66:31:36:37,bridge=vmbr0
numa: 0
ostype: l26
scsi0: lvm1-lun0-synology-target1:vm-100-disk-1,size=5G
scsihw: virtio-scsi-pci
smbios1: uuid=7491a96f-312e-40f7-b345-33b80e53f06b
sockets: 1
I try to install debian-8.2.0-amd64-netinst.iso
Bad result : the debian guest sees the whole LUN. When trying to make partitions : "Inout/Output error during write on /dev/sda ERROR!!!"
When using default BIOS (SeaBIOS), the result is good : disk size=5G, partitions are created.
EDIT :
That was OK during installation and at first start. After that :
- I installed qemu-guest-agent
- I shuted down the VM (from inside the guest)
- I enabled qemu-guest-agent on the VM
- I restarted the VM
==> disk seen was now 100G, with IO errors
I removed the agent, disabled it on quest settings, and started the VM, problem is the same.
(see log down here)
Conclusion :
- the documentation encourage iSCSI -> LVM
- my tests reveal a problem when using multiple LVs over this structure
- am I doing something bad or is there a bug somewhere ?
====================
root@debian1:/var/log# cat syslog | grep -E 'logical blocks|I/O error|Kernel command line'
Feb 23 14:44:00 debian1 kernel: [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=UUID=d636efe1-9676-411a-9ddb-e5507b71e1a1 ro quiet
Feb 23 14:44:00 debian1 kernel: [ 0.975933] sd 0:0:0:0: [sda] 10485760 512-byte logical blocks: (5.36 GB/5.00 GiB)
Feb 23 14:50:05 debian1 kernel: [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=UUID=d636efe1-9676-411a-9ddb-e5507b71e1a1 ro quiet
Feb 23 14:50:05 debian1 kernel: [ 1.060430] sd 0:0:0:0: [sda] 209715200 512-byte logical blocks: (107 GB/100 GiB)
Feb 23 14:50:05 debian1 kernel: [ 1.252148] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:50:05 debian1 kernel: [ 1.252432] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:50:05 debian1 kernel: [ 1.292112] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:50:05 debian1 kernel: [ 1.292412] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:50:05 debian1 kernel: [ 2.798884] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:50:05 debian1 kernel: [ 2.799203] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:50:05 debian1 kernel: [ 2.932765] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:50:05 debian1 kernel: [ 2.933070] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:50:05 debian1 kernel: [ 5.552190] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:50:05 debian1 kernel: [ 5.552238] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:53:49 debian1 kernel: [ 235.926060] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:53:49 debian1 kernel: [ 235.926068] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:53:49 debian1 kernel: [ 236.172244] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:53:49 debian1 kernel: [ 236.172247] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:53:50 debian1 kernel: [ 236.692194] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:53:50 debian1 kernel: [ 236.692203] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:53:50 debian1 kernel: [ 236.804195] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:53:50 debian1 kernel: [ 236.804220] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:56:10 debian1 kernel: [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.16.0-4-amd64 root=UUID=d636efe1-9676-411a-9ddb-e5507b71e1a1 ro quiet
Feb 23 14:56:10 debian1 kernel: [ 1.002188] sd 0:0:0:0: [sda] 209715200 512-byte logical blocks: (107 GB/100 GiB)
Feb 23 14:56:10 debian1 kernel: [ 1.200125] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:56:10 debian1 kernel: [ 1.200428] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:56:10 debian1 kernel: [ 1.240148] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:56:10 debian1 kernel: [ 1.240509] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:56:10 debian1 kernel: [ 2.644112] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:56:10 debian1 kernel: [ 2.644433] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:56:10 debian1 kernel: [ 2.666116] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:56:10 debian1 kernel: [ 2.666436] Buffer I/O error on device sda, logical block 26214384
Feb 23 14:56:10 debian1 kernel: [ 5.276010] end_request: I/O error, dev sda, sector 209715072
Feb 23 14:56:10 debian1 kernel: [ 5.276303] Buffer I/O error on device sda, logical block 26214384
====================
Last edited: