Die Foren-SW läuft ohne erkennbare Probleme. Sollte doch etwas nicht funktionieren, bitte gerne hier jederzeit melden und wir kümmern uns zeitnah darum. Danke!

Problem mit USB Passthrough (eine HDD geht, andere nicht)

Moderatoren: irix, Dayworker

Member
Beiträge: 1
Registriert: 02.04.2014, 18:39

Problem mit USB Passthrough (eine HDD geht, andere nicht)

Beitragvon dneuhaeuser » 02.04.2014, 19:03

Hallo!

Ich habe hier 3 äußerlich identische USB Festplatten (Toshiba 1 TB) die ich gern in eine virtuelle Maschine durchreichen möchte.
(nicht unbedingt gleichzeitig, aber abwechselnd)

Mit einer der 3 Platten gelingt mir das problemlos.
Die beiden anderen Platten werden beim Hinzufügen eines USB-Geräts zur VM _nicht_ angezeigt !

Offenbar haben die Platten intern andere PIDs und werden vom usb-storage Treiber nicht als solche erkannt.
Gibt es irgendeine Möglichkeit darauf Einfluss zu nehmen?

Hier mal Auszüge aus vmkernel.log:

Hier stecke ich die funktionierende Platte an:

-------------------------------------------------------------------------------------
2014-04-02T15:37:47.576Z cpu1:2495)<6>usb 2-1.1: new high speed USB device using ehci_hcd and address 9
2014-04-02T15:37:47.693Z cpu2:2495)<6>usb 2-1.1: New USB device found, idVendor=0480, idProduct=a007
2014-04-02T15:37:47.693Z cpu2:2495)<6>usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
2014-04-02T15:37:47.693Z cpu2:2495)<6>usb 2-1.1: Product: External USB 3.0
2014-04-02T15:37:47.693Z cpu2:2495)<6>usb 2-1.1: Manufacturer: Toshiba
2014-04-02T15:37:47.693Z cpu2:2495)<6>usb 2-1.1: SerialNumber: 20131217011903F
2014-04-02T15:37:47.693Z cpu0:2495)<6>usb 2-1.1: Vendor: 0x0480, Product: 0xa007, Revision: 0x0001
2014-04-02T15:37:47.693Z cpu0:2495)<6>usb 2-1.1: Interface Subclass: 0x06, Protocol: 0x50
2014-04-02T15:37:47.694Z cpu0:2495)WARNING: LinScsiLLD: scsi_add_host:601:vmkAdapter (usb-storage) sgMaxEntries rounded to 255. Reported size was 255
2014-04-02T15:37:47.694Z cpu0:2495)DMA: 609: DMA Engine 'vmhba43' created using mapper 'DMANull'.
2014-04-02T15:37:47.694Z cpu0:2495)<6>usb-storage 2-1.1:1.0: interface is claimed by usb-storage
2014-04-02T15:37:47.694Z cpu0:2495)<6>usb 2-1.1: device is not available for passthrough
2014-04-02T15:37:47.694Z cpu0:2495)<6>usb 2-1.1: usbfs: registered usb0209
2014-04-02T15:37:47.704Z cpu1:2073)ScsiNpiv: 1525: GetInfo for adapter vmhba42, [0x4100050cac80], max_vports=0, vports_inuse=0, linktype=0, state=0, failreason=0, rv=-1, sts=bad0020
2014-04-02T15:37:47.704Z cpu1:2073)ScsiNpiv: 1525: GetInfo for adapter vmhba43, [0x410005043b80], max_vports=0, vports_inuse=0, linktype=0, state=0, failreason=0, rv=-1, sts=bad0020
2014-04-02T15:37:48.696Z cpu0:4630)usb-storage: detected SCSI revision number 6 on vmhba43
2014-04-02T15:37:48.696Z cpu0:4630)usb-storage: patching inquiry data to change SCSI revision number from 6 to 2 on vmhba43
2014-04-02T15:37:48.696Z cpu0:4630)usb-storage: patching inquiry data to change removable media bit from 'off' to 'on' on vmhba43
2014-04-02T15:37:48.696Z cpu0:4630)usb-storage: setting peripheral qualifier to 'not connected' on vmhba43
2014-04-02T15:37:48.696Z cpu2:2484)<6>usb-storage 2-1.1:1.0: unclaiming vmhba43
2014-04-02T15:37:48.696Z cpu2:2484)LinScsiLLD: scsi_remove_host:875: Removed Host Adapter vmhba43
2014-04-02T15:37:48.696Z cpu2:2484)<6>usb 2-1.1: device is available for passthrough
2014-04-02T15:37:48.696Z cpu2:2484)ScsiAdapter: 2243: Unregistering adapter vmhba43
2014-04-02T15:37:48.696Z cpu2:2484)DMA: 654: DMA Engine 'vmhba43' destroyed.
-------------------------------------------------------------------------------------


und so sieht es im Log bei den _nicht_ funktionierenden Platten aus:

-------------------------------------------------------------------------------------
2014-04-02T15:37:25.042Z cpu0:2495)<6>usb 2-1.2: new high speed USB device using ehci_hcd and address 8
2014-04-02T15:37:25.159Z cpu0:2495)<6>usb 2-1.2: New USB device found, idVendor=0480, idProduct=a00d
2014-04-02T15:37:25.159Z cpu0:2495)<6>usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
2014-04-02T15:37:25.159Z cpu0:2495)<6>usb 2-1.2: Product: External USB 3.0
2014-04-02T15:37:25.159Z cpu0:2495)<6>usb 2-1.2: Manufacturer: TOSHIBA
2014-04-02T15:37:25.159Z cpu0:2495)<6>usb 2-1.2: SerialNumber: 23183C105DC6
2014-04-02T15:37:25.159Z cpu1:2495)<6>usb 2-1.2: Vendor: 0x0480, Product: 0xa00d, Revision: 0x0407
2014-04-02T15:37:25.159Z cpu1:2495)<6>usb 2-1.2: Interface Subclass: 0x06, Protocol: 0x50
2014-04-02T15:37:25.160Z cpu1:2495)WARNING: LinScsiLLD: scsi_add_host:601:vmkAdapter (usb-storage) sgMaxEntries rounded to 255. Reported size was 255
2014-04-02T15:37:25.160Z cpu1:2495)DMA: 609: DMA Engine 'vmhba42' created using mapper 'DMANull'.
2014-04-02T15:37:25.160Z cpu1:2495)<6>usb-storage 2-1.2:1.0: interface is claimed by usb-storage
2014-04-02T15:37:25.160Z cpu1:2495)<6>usb 2-1.2: device is not available for passthrough
2014-04-02T15:37:25.160Z cpu1:2495)<6>usb 2-1.2: usbfs: registered usb0208
2014-04-02T15:37:25.172Z cpu1:2073)ScsiNpiv: 1525: GetInfo for adapter vmhba42, [0x4100050cac80], max_vports=0, vports_inuse=0, linktype=0, state=0, failreason=0, rv=-1, sts=bad0020
-------------------------------------------------------------------------------------

Hat jemand eine Idee dazu?

Edit: Ich habe es übrigens an 2 völlig verschiedenen Servern und einmal mit ESXi 5.1.0u2 und einmal mit ESXi 5.5.0u1 probiert.
Exakt derselbe Effekt !

Gruß
Dennis

Guru
Beiträge: 2731
Registriert: 23.02.2012, 12:26

Beitragvon ~thc » 02.04.2014, 20:26

0x0480:0xa007 -> "Toshiba Canvio 3.0 1TB" (HDTC610XK3B1)
0x0480:0xa00d -> "Toshiba Canvio Basics 3.0 1TB" (HDTB210XK3BA)

Sie sehen nur äußerlich gleich aus. Es sind zwei verschiedene Modelle, von denen eines - warum auch immer - nicht erkannt wird.

Member
Beiträge: 107
Registriert: 02.04.2009, 21:26

Beitragvon lennier » 11.04.2014, 21:30

Ähnlichen Effekt hab ich auch schon festgestellt, da dürfte es wohl eine inkompartibilität zu einer sorte usb controller geben.

King of the Hill
Beiträge: 13561
Registriert: 01.10.2008, 12:54
Wohnort: laut USV-Log am Ende der Welt...

Beitragvon Dayworker » 13.04.2014, 19:42

Contents HDTB210XK3BA
  • Toshiba Canvio Basics 3.0 Portable Hard Drive
  • USB 3.0 Cable (compatible with USB 2.0)
  • Quick Install Guide
  • 1 Year Limited Warranty


Lustigerweise finde ich deine HDTC610XK3B1 nicht bei Toshiba und habe daher die HDTC710XK3A1 aufgelistet. Scheinbar hat Toshiba mehrere USB3.0-Platten mit 1GB Bruttokapazität im Angebot, aber sieh selbst:
Contents HDTC710XK3A1
  • Toshiba Canvio Connect Portable Hard Drive w/preloaded software
  • USB 3.0 Cable (works with USB 2.0)
  • Quick Start Guide
  • 2 Year Limited Warranty


Beiden Platten gemein sind die 5400U/min und nur 8MB Plattencache bei 12ms Zugriffszeit. Der ESXi listet beide aber nur als HighSpeed- und damit als USB2.0-Geräte.

Member
Beiträge: 1
Registriert: 08.05.2015, 22:50

Beitragvon randomJoe » 08.05.2015, 23:28

Hi - just signed up to answer this question as your thread was the only hit on Google when I had the same problem with a 5TB Toshiba Canvio. Apologies that I don't speak German.

On both ESXi 5.5 and 6.0 the USB drive showed OK on "lsusb", but not on the list of USB devices available for passthrough to VM. My logfiles were almost identical to yours.

It seems that "usb-storage" normally examines the device before passing it through to usb arbitrator. When this process fails - for whatever reason with Toshiba devices - then the arbitrator stage never begins.

You can see in the logs that the HBA unclaim stage is not reached when the process fails. At this point, the USB drive appeared as a "HBA" appeared in vSphere, but with no discs visible.

My solution was to disable the "usb-storage" module, bypassing the problem:

Code: Alles auswählen

esxcfg-module  -d usb-storage
esxcfg-module  -u usb-storage

(You will have to physically unplug the USB drive first)

This is a semi-permanent workaround that has the side-effect of disabling USB mounted storage within native ESXi. I'm not sure if this would be a problem if booting ESXi from a USB stick - my system has ESXi installed on a SATA drive.


Zurück zu „vSphere 5 / ESXi 5 und 5.1“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 5 Gäste