VMware Cloud Community
belnibu
Contributor
Contributor

ESXi 5.1 -5.5 reset high speed USB device using ehci_hcd and address xx

Hello.

Sorry for my english.


I have a problem when copying large files on a USB hdd, connected to the hypervisor ESXi 5.5.

Guest - Windows server 2003-2008.
When I copy a file larger than 1G on the usb drive, then after recording 400-900 MB

access to the usb drive disappears for a time from 30 seconds to several minutes,

and then appears. After 200 - 300 MB is repeated.


In vmkernel.log appear record:


2014-03-06T06:37:29.940Z cpu1:133666)<6>usb 1-1.2: reset high speed USB device using ehci_hcd and address 3
2014-03-06T06:37:30.163Z cpu2:133643)<6>usb 1-1.2: device is available for passthrough
2014-03-06T06:43:07.006Z cpu2:133666)<6>usb 1-1.2: device is available for passthrough
2014-03-06T06:43:07.090Z cpu2:133666)<6>usb 1-1.2: reset high speed USB device using ehci_hcd and address 3
2014-03-06T06:43:07.229Z cpu2:133666)<6>usb 1-1.2: Device is allocated for USB passthrough use; not available for VMkernel use
2014-03-06T06:43:07.371Z cpu2:133666)<6>usb 1-1.2: reset high speed USB device using ehci_hcd and address 3
2014-03-06T06:43:07.574Z cpu3:133643)<6>usb 1-1.2: device is available for passthrough


On the Internet a lot of articles to address similar problems. Here's what to do offer one of them:

My one little 320GB 2.5″ external Western Digital USB hard drive had this issue, while the big ones didn’t – seems like it is somehow related to being powered by the bus itself or using a dedicated power supply. Anyway, the drive seemed to hang on large file transactions (like copying a big file) and then the kernel had to reset it, announcing it via the syslog. Very annoying, especially because SMB transfers always got interrupted and went totally  foobar. The fix was quite simple. max_sectors for the drive was set to its default 240 value, which the drive choked on for no apparent reason whatsoever. Issuing a quick echo 128 > /sys/block/sdc/device/max_sectors fixed it. YMMV. Of course replace sdc with the actual node of your drive.

But where in this paremetr configure ESXi for usb disk?

echo 128> / sys / block / sdc / device / max_sectors

Thanks in advance, Nikolai.

0 Kudos
2 Replies
Jayden56
Enthusiast
Enthusiast

Hi

Welcome to the communities.

I hope you went through this basic configuration if not please do that .

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=206593...

0 Kudos
belnibu
Contributor
Contributor

Hi Thanks for your reply.
Maybe I did not properly describe my problem.
I do not need to share data between Windows and an ESXi host. I write files larger than 4 GB from Windows guest to the external usb drive. USB drive is connected to the ESXi host.
And when I write these files, usb drive periodically disconnected from the guest Windows.

USB drive is formatted in NTFS.

0 Kudos