sr 3:0:0:0: Device not ready: <6>: Current: sense key: Not Ready
Hi,
In one of our qemu pre-production servers, system dumps thousands of lines of below error message to the screen. (Below snippet is from dmesg output.)
sr 3:0:0:0: Device not ready: <6>: Current: sense key: Not Ready Additional sense: Medium not present
end_request: I/O error, dev sr0, sector 68
I suspect USB disk mounted as /dev/sdb1 to be the cause of the problem. Below are some related qemu statistics.
(qemu) info block
info block
ide1-cd0: type=cdrom removable=1 locked=0 file=/dev/cdrom ro=0 drv=host_device
ide0-hd0: type=hd removable=0 file=/home/windows/qcow2-20g.img ro=0 drv=qcow2
ide0-hd1: type=hd removable=0 file=/home/windows/qcow2-40g.img ro=0 drv=qcow2
ide1-hd1: type=hd removable=0 file=/home/windows/qcow2-430g.img ro=0 drv=qcow2
floppy0: type=floppy removable=1 locked=0 [not inserted]
sd0: type=floppy removable=1 locked=0 [not inserted]
(qemu) info blockstats
info blockstats
ide1-cd0: rd_bytes=0 wr_bytes=0 rd_operations=0 wr_operations=0
ide0-hd0: rd_bytes=324134400 wr_bytes=20435968 rd_operations=49396 wr_operations=1952
ide0-hd1: rd_bytes=3418112 wr_bytes=403456 rd_operations=552 wr_operations=30
ide1-hd1: rd_bytes=40713728 wr_bytes=877568 rd_operations=6536 wr_operations=120
floppy0: rd_bytes=0 wr_bytes=0 rd_operations=0 wr_operations=0
sd0: rd_bytes=0 wr_bytes=0 rd_operations=0 wr_operations=0
Does anybody have an idea? What might be the problem?
Regards.
Quoted 6 lines · Volkan YAZICI
Hi,
In one of our qemu pre-production servers, system dumps thousands of lines of below error message to the screen. (Below snippet is from dmesg output.)
Quoted 6 lines
sr 3:0:0:0: Device not ready: <6>: Current: sense key: Not Ready Additional sense: Medium not present
end_request: I/O error, dev sr0, sector 68I suspect USB disk mounted as
/dev/sdb1to be the cause of the problem. Below are some related qemu statistics.
Actually, I think it is the cdrom device. I've been seeing these as well, and there are likely to be related to the scsi sense codes that have been recently added.
Signature · 5 lines
Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 [email protected]
Quoted 3 lines · Ryan Harper
Actually, I think it is the cdrom device. I've been seeing these as well, and there are likely to be related to the scsi sense codes that have been recently added.
Any suggestions for the fix?
Regards.
Quoted 6 lines · Volkan YAZICI
Quoted 3 lines · Ryan Harper
Actually, I think it is the cdrom device. I've been seeing these as well, and there are likely to be related to the scsi sense codes that have been recently added.
Any suggestions for the fix?
Not yet, I've not had a chance to dig into it just yet. You could try svn before Fri Oct 17 08:08:56 2008 +0000 which I believe is when the sense codes were committed, "scsi-generic: correct error management" in the commit log. If you try a version before that, and you no longer see the error codes then that confirms it's the sense codes that are causing issues and hopefully we can track down if we're sending the wrong code, or something else.
Signature · 5 lines
Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 [email protected]