Re: raw disks no longer work in latest kvm (kvm-88 was fine)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
Ok, this is in fact different problem, not the one I referred you
initially (which was in fact good too, because apparently Christoph
solved that bug for me and for other Debian users, thank you!).
Yes, I believe I had this issue too originally, which is why I was testing 0.12.3 to see if it would fix the problem... and I hit this new seemingly unrelated snag.
In your case, recalling your initial email:
With qemu-kvm-0.12.3:
./qemu-system-x86_64 [..] -drive file=/dev/sdc9,if=virtio,cache=none [..]
[    1.882843]  vdc:
[    2.365154] udev: starting version 146
[    2.693768] end_request: I/O error, dev vdc, sector 126
[    2.693772] Buffer I/O error on device vdc, logical block 126
[    2.693775] Buffer I/O error on device vdc, logical block 127
[    2.693777] Buffer I/O error on device vdc, logical block 128
...

the problem happens right at startup, it can't read _anything_
at all from the disk.  In my case, the problem is intermittent
and happens under high load only, hence the big difference.

But anyway, this is something which should be easy to find
out.  Run kvm under `strace -f' and see how it opens the
device, or find out with lsof what filedescriptor corresponds
to the file in question (in running kvm instance) and see
flags in /proc/$kvm_pid/fdinfo/$fdnum.
[...]
stat("./vm/var_fs", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 41), ...}) = 0
open("./vm/var_fs", O_RDWR|O_DIRECT|O_CLOEXEC) = 12
lseek(12, 0, SEEK_END)      = 1321851815424
[..]
So it opens it the device without problems.

The only things that stands out is this before the "read failed" message:
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9121] pread(12, 0x7fa50a0e47d0, 2048, 0) = -1 EINVAL (Invalid argument)


===================
Below is the full grep for "(12,"
[pid  9097] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9097] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9097] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9097] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9097] lseek(12, 0, SEEK_SET)      = 0
[pid 9097] read(12, "\240\246E\32\r\21\367c\212\316Xn\177e'\310}\234\1\273`\371\266\247\r\1nj\332\32\221\26"..., 512) = 512
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9098] lseek(12, 0, SEEK_END <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9111] pread(12, "\240\246E\32\r\21\367c\212\316Xn\177e'\310}\234\1\273`\371\266\247\r\1nj\332\32\221\26"..., 4096, 0) = 4096
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9157] pread(12, 0x7fa4f80b13d0, 64512, 0) = -1 EINVAL (Invalid argument)
[pid  9098] lseek(12, 0, SEEK_END <unfinished ...>
[pid 9137] pread(12, 0x7fa5020c53d0, 64512, 64512) = -1 EINVAL (Invalid argument)
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9138] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9143] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9123] pread(12, 0x7fa5090defd0, 16384, 0) = -1 EINVAL (Invalid argument)
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9126] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9125] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9127] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9128] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9129] pread(12, "?=\321\301\250\357\215\236\325{N\306\246\346=\23\266b\3556z\376\234\251\v,cG\371\302\340~"..., 512, 4096) = 512
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9146] pread(12, "\240\246E\32\r\21\367c\212\316Xn\177e'\310}\234\1\273`\371\266\247\r\1nj\332\32\221\26"..., 2048, 0) = 2048
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9115] pread(12, 0x7fa50d0e6fd0, 16384, 0) = -1 EINVAL (Invalid argument)
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9117] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9116] pread(12, "=\206\5\355\35\2\2610\33\271\355\300qm\2174K\366\340ng\23\311\210Gg\220m\27\33E\254"..., 512, 1321851748352) = 512
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9118] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9119] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9120] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9121] pread(12, 0x7fa50a0e47d0, 2048, 0) = -1 EINVAL (Invalid argument)
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9153] pread(12, 0x7fa4fa0c0fd0, 16384, 0) = -1 EINVAL (Invalid argument)
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9132] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9154] pread(12, "=\206\5\355\35\2\2610\33\271\355\300qm\2174K\366\340ng\23\311\210Gg\220m\27\33E\254"..., 512, 1321851748352) = 512
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9155] pread(12, "iQ\35 \271O\203vj\ve[Ni}\355\263\272\4#yMo\266.\341\21\340Y5\204\20"..., 512, 1321851805696) = 512
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9133] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9134] pread(12, "?=\321\301\250\357\215\236\325{N\306\246\346=\23\266b\3556z\376\234\251\v,cG\371\302\340~"..., 512, 4096) = 512
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9156] pread(12, "\240\246E\32\r\21\367c\212\316Xn\177e'\310}\234\1\273`\371\266\247\r\1nj\332\32\221\26"..., 2048, 0) = 2048
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9117] pread(12, 0x7fa50c0e4fd0, 16384, 0) = -1 EINVAL (Invalid argument)
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9116] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9118] pread(12, "=\206\5\355\35\2\2610\33\271\355\300qm\2174K\366\340ng\23\311\210Gg\220m\27\33E\254"..., 512, 1321851748352) = 512
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9119] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9120] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9121] pread(12, "?=\321\301\250\357\215\236\325{N\306\246\346=\23\266b\3556z\376\234\251\v,cG\371\302\340~"..., 512, 4096) = 512
[pid  9098] lseek(12, 0, SEEK_END <unfinished ...>
[pid 9122] pread(12, "\240\246E\32\r\21\367c\212\316Xn\177e'\310}\234\1\273`\371\266\247\r\1nj\332\32\221\26"..., 2048, 0) = 2048
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9207] pread(12, 0x7fa50e0e8fd0, 16384, 0) = -1 EINVAL (Invalid argument)
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9201] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9199] pread(12, "=\206\5\355\35\2\2610\33\271\355\300qm\2174K\366\340ng\23\311\210Gg\220m\27\33E\254"..., 512, 1321851748352) = 512
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9210] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9208] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9203] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9200] pread(12, 0x7fa5098e37d0, 2048, 0) = -1 EINVAL (Invalid argument)
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9200] pread(12, 0x7fa5098dffd0, 16384, 0) = -1 EINVAL (Invalid argument)
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9209] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid 9202] pread(12, "=\206\5\355\35\2\2610\33\271\355\300qm\2174K\366\340ng\23\311\210Gg\220m\27\33E\254"..., 512, 1321851748352) = 512
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9207] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9201] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9199] pread(12, <unfinished ...>
[pid  9098] lseek(12, 0, SEEK_END)      = 1321851815424
[pid  9210] pread(12, <unfinished ...>

Cheers
Antoine
I guess it can't open the image in read-write mode somehow.

By the way, iothread doesn't really work in kvm, as far
as I can see.

Thanks.

/mjt
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux