VMware Cloud Community
vmfr3ak
Contributor
Contributor

How to mount USB Drive on ESXi 3.5

Hello,


I know many people don't like this subject as USB is not supported in ESXi 3.5. Sure, I totally agree that there is no USB Controller in ESXi 3.5 and USB Passthrough isn't possible.


But, this is not what I am trying to do here.. I am trying to mount an USB drive to backup some files from ESXi host. I see many people have done this successfully.. [either creating a datastore on it or mounting it as ext3 or vfat]. However, I can't get this to work.


Disk is listed and partition is visible and I could create data store successfully.. after creation of the datastore, df command says "Function Not Implemented" for the USB device id.


Message log says "RESERVE command is lnot supported on usb-storage devices".


I have tried to play with scsi.passthroughlocking wih 1 or 0... Has anybody got any clue why it can't be reserved and how to disable reserve ? Would reserve be the problem with ext3 or FAT32 on USB devices?

When I mount using "mount -f vfat" for other USB Thumb Drives or Disks of FAT32 partition, it says "No device".


I have applied the most recent build patch to ESXi 3.5 but nothing changed... I am attaching the whole message log for the Seagate USB drive, whose partion is formatted as VMFS and Datastore created (vmkfstools -C vmfs3 -S usbstore /dev/disks/vmhba33:0:0:2).

Thanks a lot!!!!


~~~~~~~~~~~~~~

Dec 29 14:00:56 vmkernel: 0:00:02:15.255 cpu3:1168)INFO(2): new USB device 00:0f.2-4, assigned address 3
Dec 29 14:00:56 vmkernel: 0:00:02:15.315 cpu3:1168)LinStubs: 2073: fn=0x918720 arg=0xa600cc8
Dec 29 14:00:56 vmkernel: 0:00:02:15.315 cpu3:1168)World: vm 2867: 901: Starting world driver with flags 1
Dec 29 14:00:56 vmkernel: 0:00:02:15.316 cpu2:2867)LinStubs: 2142: fn=0x918720 arg=0xa600cc8
Dec 29 14:00:56 vmkernel: 0:00:02:15.316 cpu3:1168)LinSCSI: 382: Current module ID is 7 but ht module ID is 10, using the latter for driver that supports usb-storage.
last message repeated 1 times
Dec 29 14:00:56 vmkernel: 0:00:02:15.316 cpu3:1168)LinSCSI: 679: NULL pci_dev
Dec 29 14:00:56 vmkernel: 0:00:02:15.316 cpu3:1168)LinSCSI: 382: Current module ID is 7 but ht module ID is 10, using the latter for driver that supports usb-storage.
last message repeated 2 times
Dec 29 14:00:56 vmkernel: 0:00:02:15.316 cpu3:1168)DEBUG: WARNING: USB Mass Storage data integrity not assured
Dec 29 14:00:56 vmkernel: 0:00:02:15.316 cpu3:1168)DEBUG: USB Mass Storage device found at 3
Dec 29 14:00:56 vmkernel: 0:00:02:15.327 cpu1:1053)SCSI: 1003: GetInfo for adapter vmhba33, [0x6045000], max_vports=0, vports_inuse=0, linktype=0, state=0, failreason=0, rv=-1, sts=bad001f
Dec 29 14:00:56 vmkernel: 0:00:02:15.335 cpu1:2867)usb storage warning (0 throttled) on vmhba33:0:0:0 (SCSI cmd INQUIRY): Patching removable media bit to force to on (removable media), was previously off
Dec 29 14:00:56 vmkernel: usb storage message on vmhba33:0:0:0: Bulk data transfer result 0x1
Dec 29 14:00:56 vmkernel: usb storage message on vmhba33:0:0:0: Failure to read CSW, clearing endpoint halt for pipe 0xc0008380
Dec 29 14:00:56 vmkernel: usb storage message on vmhba33:0:0:0: Patching inquiry data to change SCSI revision number from 0 to 2
Dec 29 14:00:56 vmkernel: 0:00:02:15.335 cpu1:1053)ScsiScan: 398: Path 'vmhba33:C0:T0:L0': Vendor: 'Seagate '  Model: 'FA GoFlex Desk  '  Rev: '0D0B'
Dec 29 14:00:56 vmkernel: 0:00:02:15.335 cpu1:1053)ScsiScan: 399: Type: 0x0, ANSI rev: 2
Dec 29 14:00:56 vmkernel: 0:00:02:15.342 cpu1:2867)usb storage warning (0 throttled) on vmhba33:0:0:0 (SCSI cmd INQUIRY): Patching removable media bit to force to on (removable media), was previously off
Dec 29 14:00:56 vmkernel: usb storage message on vmhba33:0:0:0: Bulk data transfer result 0x1
Dec 29 14:00:56 vmkernel: usb storage message on vmhba33:0:0:0: Failure to read CSW, clearing endpoint halt for pipe 0xc0008380
Dec 29 14:00:56 vmkernel: usb storage message on vmhba33:0:0:0: Patching inquiry data to change SCSI revision number from 0 to 2
Dec 29 14:00:56 vmkernel: 0:00:02:15.342 cpu1:1053)WARNING: ScsiUid: 700: path vmhba33:C0:T0:L0: Read of EVPD page 0x0 returns pQual: 0x0 pageCode 0x80
Dec 29 14:00:56 vmkernel: 0:00:02:15.349 cpu1:2867)usb storage warning (0 throttled) on vmhba33:0:0:0 (SCSI cmd INQUIRY): Patching removable media bit to force to on (removable media), was previously off
Dec 29 14:00:56 vmkernel: usb storage message on vmhba33:0:0:0: Bulk data transfer result 0x1
Dec 29 14:00:56 vmkernel: usb storage message on vmhba33:0:0:0: Failure to read CSW, clearing endpoint halt for pipe 0xc0008380
Dec 29 14:00:56 vmkernel: usb storage message on vmhba33:0:0:0: Patching inquiry data to change SCSI revision number from 0 to 2
Dec 29 14:00:56 vmkernel: VMWARE SCSI Id: Supported VPD pages for vmhba33:C0:T0:L0 : 
Dec 29 14:00:56 vmkernel: 0:00:02:15.349 cpu1:1053)VMWARE SCSI Id: Could not get disk id for vmhba33:C0:T0:L0
Dec 29 14:00:56 vmkernel: 0:00:02:15.356 cpu1:2867)usb storage warning (0 throttled) on vmhba33:0:0:0 (SCSI cmd INQUIRY): Patching removable media bit to force to on (removable media), was previously off
Dec 29 14:00:56 vmkernel: usb storage message on vmhba33:0:0:0: Bulk data transfer result 0x1
Dec 29 14:00:56 vmkernel: usb storage message on vmhba33:0:0:0: Failure to read CSW, clearing endpoint halt for pipe 0xc0008380
Dec 29 14:00:56 vmkernel: usb storage message on vmhba33:0:0:0: Patching inquiry data to change SCSI revision number from 0 to 2
Dec 29 14:00:56 vmkernel: 0:00:02:15.356 cpu1:1053)WARNING: ScsiUid: 700: path vmhba33:C0:T0:L0: Read of EVPD page 0x0 returns pQual: 0x0 pageCode 0x80
Dec 29 14:00:56 vmkernel: 0:00:02:15.356 cpu1:1053)ScsiUid: 776: Path 'vmhba33:C0:T0:L0' does not support VPD Serial Id page.
Dec 29 14:00:56 vmkernel: 0:00:02:15.356 cpu1:1053)ScsiUid: 847: Path 'vmhba33:C0:T0:L0' does not support VPD Device Id page.
Dec 29 14:00:56 vmkernel: 0:00:02:15.356 cpu1:1053)ScsiScan: 568: Path 'vmhba33:C0:T0:L0': No standard UID: Failure
Dec 29 14:00:56 vmkernel: 0:00:02:15.356 cpu1:1053)ScsiScan: 650: Discovered path vmhba33:C0:T0:L0
Dec 29 14:00:56 vmkernel: 0:00:02:15.357 cpu2:1053)SCSI: 2580: Device vmhba33:0:0 has not been identified as being attached  to an active/passive SAN. It is either attached to an active/active SAN or is a local device.
Dec 29 14:00:56 vmkernel: 0:00:02:15.357 cpu2:1053)ScsiPath: 3227: Plugin 'legacyMP' claimed path 'vmhba33:C0:T0:L0'
Dec 29 14:00:56 vmkernel: 0:00:02:15.406 cpu2:1053)ScsiDevice: 4259: Adding Device "vmhba33:0:0" from Plugin "legacyMP", Device Type 0
Dec 29 14:00:57 vmkernel: 0:00:02:16.581 cpu2:2867)WARNINGusb-storage: RESERVE command is not supported on usb-storage devices
Dec 29 14:00:57 vmkernel: 0:00:02:16.584 cpu2:1026)StorageMonitor: 196: vmhba33:0:0:0 status = D:0x2/H:0x0 0x5 0x20 0x0
Dec 29 14:00:57 vmkernel: 0:00:02:16.584 cpu2:1053)WARNING: FS3: 2996: reservation error: Not supported
Dec 29 14:00:57 vmkernel: 0:00:02:16.584 cpu2:1053)WARNING: FS3: 3460: Failed with bad001f- status : Not supported
Dec 29 14:00:57 vmkernel: 0:00:02:17.094 cpu2:1053)SCSI: 5647: Logical device vmhba33:0:0 for target vmhba33:0:0 was registered successfully.
Dec 29 14:00:57 vmkernel: 0:00:02:17.094 cpu2:1053)SCSI: 1003: GetInfo for adapter vmhba33, [0x6045000], max_vports=0, vports_inuse=0, linktype=0, state=0, failreason=0, rv=-1, sts=bad001f

~~~~~~~~~~~~~~

0 Kudos
6 Replies
DSTAVERT
Immortal
Immortal

It isn't possible to mount a USB device in ESXi 3.5. It can not be used as a datastore.

-- David -- VMware Communities Moderator
0 Kudos
vmfr3ak
Contributor
Contributor

Thanks Dave. Is it possible to mount USB drive's ext3/fat32 partition as a Read-Write or Read-Only file system using "mount" (not as a datastore)?

0 Kudos
DSTAVERT
Immortal
Immortal

Not possible at all. It is in ESX but not ESXi.

-- David -- VMware Communities Moderator
0 Kudos
vmfr3ak
Contributor
Contributor

All right.. thanks for clarifying.

0 Kudos
DSTAVERT
Immortal
Immortal

If you need to transfer files I wold look at Veeam Fastscp (a free download) If you need backup I would look at http://communities.vmware.com/docs/DOC-8760 (link isn't available right now but should be fixed soon.

-- David -- VMware Communities Moderator
0 Kudos
idle-jam
Immortal
Immortal

DSTAVERT advise would be the better one. alternatively you could use the browse datastore in the vsphere client and upload/download from there. atleast you have a GUI.

0 Kudos