linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* storvsc loops with No Sense messages
@ 2013-01-29 15:28 Olaf Hering
  2013-01-29 15:51 ` KY Srinivasan
  0 siblings, 1 reply; 10+ messages in thread
From: Olaf Hering @ 2013-01-29 15:28 UTC (permalink / raw)
  To: K. Y. Srinivasan; +Cc: linux-scsi


KY,

while attempting to install the upcoming openSuSE 12.3 in a hyper-v
guest (1 vcpu, 512MB) hosted on Windows Server 2012 I see a hanging
guest after formating the root partition, when the installer starts to
write files to it.  After booting the install kernel with
'ignore_loglevel' I see a flood of the "No Sense" messages shown below.
I can reproduce it every time with 12.3.

The sglist init patch does not fix it for me.

Hannes did many storage related backports for SLES11 SP3, and sometimes
the installer hangs at similar points during a fresh SP3 install.

The same procedure works fine on Windows Server 2008.

Any ideas what 2012 does differently? It happens with a plain 3.7.n
kernel. I will try 3.8-rc now, and see if it happens as well.

Olaf

...
[    0.000000] Linux version 3.7.5-5.home_olh_12_3-vanilla (geeko@buildhost) (gcc version 4.7.2 20130108 [gcc-4_7-branch revision 195012] (SUSE Linux) ) #1 SMP Mon Jan 28 12:39:46 UTC 2013 (d9a9e6d)
[    0.000000] Command line: quiet panic=9 sysrq=yes start_shell splash=silent vga=0x317 video=1024x768 console=ttyS0,115200 console=tty1 ignore_loglevel initrd=sl/12.3/initrd-x86_64 BOOT_IMAGE=sl/12.3/linux-x86_64
...
[    7.938806] scsi2 : storvsc_host_t
[    7.940709] scsi 2:0:0:0: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 4
[    7.943952] sd 2:0:0:0: Attached scsi generic sg1 type 0

[    7.946440] sd 2:0:0:0: [sda] 20971520 512-byte logical blocks: (10.7 GB/10.0 GiB)
[    7.949485] sd 2:0:0:0: [sda] Write Protect is off
[    7.951231] sd 2:0:0:0: [sda] Mode Sense: 0f 00 00 00
[    7.953105] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    7.955269] scsi3 : storvsc_host_t
[    7.957027] scsi scan: INQUIRY result too short (5), using 36
[    7.958786] scsi scan: INQUIRY result too short (5), using 36
[    7.961292] input: Microsoft Vmbus HID-compliant Mouse as /devices/virtual/input/input3
[    7.965400] hid-generic 0006:045E:0621.0001: input: <UNKNOWN> HID v0.01 Mouse [Microsoft Vmbus HID-compliant Mouse] on
[    7.971872] hv_netvsc: hv_netvsc channel opened successfully
[    7.974574] hv_netvsc vmbus_0_11: Device MAC 00:15:5d:02:51:02 link state up
[    7.985086]  sda: sda1 sda2
[    7.986725] sd 2:0:0:0: [sda] Attached SCSI disk
...
[  156.205185] Adding 746492k swap on /dev/sda1.  Priority:-1 extents:1 across:746492k
...
[  156.478186] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: acl,user_xattr
[  161.459523] hv_storvsc vmbus_0_1: cmd 0x41 scsi status 0x2 srb status 0x6
[  161.462157] sd 2:0:0:0: [sda]
[  161.463135] Sense Key : No Sense [current]
[  161.464983] sd 2:0:0:0: [sda]
[  161.465899] Add. Sense: No additional sense information
[  161.468211] hv_storvsc vmbus_0_1: cmd 0x41 scsi status 0x2 srb status 0x6
[  161.475766] sd 2:0:0:0: [sda]
[  161.476728] Sense Key : No Sense [current]
[  161.478284] sd 2:0:0:0: [sda]
[  161.479441] Add. Sense: No additional sense information
[  161.481311] hv_storvsc vmbus_0_1: cmd 0x41 scsi status 0x2 srb status 0x6
[  161.484477] sd 2:0:0:0: [sda]
[  161.485422] Sense Key : No Sense [current]
[  161.486977] sd 2:0:0:0: [sda]
[  161.487920] Add. Sense: No additional sense information

... and so it goes on until the VM is powered off.


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: storvsc loops with No Sense messages
@ 2013-04-16 17:00 Jari Turkia
  0 siblings, 0 replies; 10+ messages in thread
From: Jari Turkia @ 2013-04-16 17:00 UTC (permalink / raw)
  To: linux-scsi@vger.kernel.org

> On Wed, Jan 30, Olaf Hering wrote:
>> Is there a way to not use WRITE_SAME at all? While browsing the code its
>> not clear if there is a conditional for this command.
>It seems scsi_device->no_write_same may avoid this command, I will
>test this patch:
># Subject: [PATCH] scsi: storvsc: avoid usage of WRITE_SAME
>Set scsi_device->no_write_same because the host does not support it.
>Also blacklist WRITE_SAME to avoid (and log) accident usage.
>Signed-off-by: Olaf Hering <olaf@aepfle.de>

Hopefully Olaf will find time to test the patch and push it forward. I did test it and it solved the issue perfectly!

Most of the current Linux-distros won't work under Windows Server 2012 or Windows 8 Hyper-V.

Regards,
Jari Turkia

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-04-16 17:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-29 15:28 storvsc loops with No Sense messages Olaf Hering
2013-01-29 15:51 ` KY Srinivasan
2013-01-29 18:56   ` Olaf Hering
2013-01-29 19:44     ` KY Srinivasan
2013-01-29 21:27       ` Olaf Hering
2013-01-30  9:59         ` Olaf Hering
2013-01-30 13:35           ` Olaf Hering
2013-01-30 18:52             ` KY Srinivasan
2013-01-30 18:16           ` KY Srinivasan
  -- strict thread matches above, loose matches on Subject: below --
2013-04-16 17:00 Jari Turkia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).