Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 140 1124518+ 83 Linux
/dev/sda2 141 154 112455 fc VMware VMKCORE
/dev/sda3 155 1305 9245407+ 5 Extended
/dev/sda5 155 1305 9245376 fb VMware VMFS
Disk /dev/sdb: 7973 MB, 7973371904 bytes
255 heads, 63 sectors/track, 969 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 76 610438+ 82 Linux swap / Solaris
/dev/sdb2 77 331 2048287+ 83 Linux
/dev/sdb3 332 969 5124735 5 Extended
/dev/sdb5 332 969 5124703+ 83 Linux
7. List current path (lines shortened to simplify output)ide.vmhba32-ide.0:0-mpx.vmhba32:C0:T0:L0
Runtime Name: vmhba32:C0:T0:L0
Device: mpx.vmhba32:C0:T0:L0
Device Display Name: Local NECVMWar CD-ROM (mpx.vmhba32:C0:T0:L0)
State: active
Transport: ide
pscsi.vmhba0-pscsi.0:0-mpx.vmhba0:C0:T0:L0
Runtime Name: vmhba0:C0:T0:L0
Device: mpx.vmhba0:C0:T0:L0
Device Display Name: Local VMware, Disk (mpx.vmhba0:C0:T0:L0)
State: active
Transport: parallel
8. Now plug in the drive to any available USB portNov 10 00:13:01 esx kernel: [ 1846.960769] scsi6 : usb-storage
Nov 10 00:13:04 esx kernel: [ 1849.251287] Vendor: Kingston Model: DataTraveler 2.0 Rev: PMAP
Nov 10 00:13:04 esx kernel: [ 1849.257273] Type: Direct-Access ANSI SCSI revision: 02
Nov 10 00:13:04 esx kernel: [ 1849.296265] SCSI device sde: 3919872 512-byte hdwr sectors (2007 MB)
Nov 10 00:13:04 esx kernel: [ 1849.319976] sde: Write Protect is off
Nov 10 00:13:04 esx kernel: [ 1849.372450] sde: got wrong page
Nov 10 00:13:04 esx kernel: [ 1849.374587] sde: assuming drive cache: write through
Nov 10 00:13:04 esx kernel: [ 1849.407522] SCSI device sde: 3919872 512-byte hdwr sectors (2007 MB)
Nov 10 00:13:04 esx kernel: [ 1849.418315] sde: Write Protect is off
Nov 10 00:13:04 esx kernel: [ 1849.431574] sde: got wrong page
Nov 10 00:13:04 esx kernel: [ 1849.440507] sde: assuming drive cache: write through
Nov 10 00:13:04 esx kernel: [ 1849.440514] sde: sde1
Nov 10 00:13:04 esx kernel: [ 1849.447718] sd 4:0:4:0: Attached scsi removable disk sde
Nov 10 00:13:04 esx kernel: [ 1849.449689] sd 4:0:4:0: Attached scsi generic sg5 type 0
11. As you can see the USB drive is detected & initialized by hostDisk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 140 1124518+ 83 Linux
/dev/sda2 141 154 112455 fc VMware VMKCORE
/dev/sda3 155 1305 9245407+ 5 Extended
/dev/sda5 155 1305 9245376 fb VMware VMFS
Disk /dev/sdb: 7973 MB, 7973371904 bytes
255 heads, 63 sectors/track, 969 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 76 610438+ 82 Linux swap / Solaris
/dev/sdb2 77 331 2048287+ 83 Linux
/dev/sdb3 332 969 5124735 5 Extended
/dev/sdb5 332 969 5124703+ 83 Linux
Disk /dev/sde: 2006 MB, 2006974464 bytes
16 heads, 32 sectors/track, 7656 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Device Boot Start End Blocks Id System
/dev/sde1 1 7656 1959920 6 FAT16
13. From the output above, /dev/sde1 is actually the USB drive (it may be different on your machine but it will be in this format /dev/sdXX)ide.vmhba32-ide.0:0-mpx.vmhba32:C0:T0:L0
Runtime Name: vmhba32:C0:T0:L0
Device: mpx.vmhba32:C0:T0:L0
Device Display Name: Local NECVMWar CD-ROM (mpx.vmhba32:C0:T0:L0)
State: active
Transport: ide
pscsi.vmhba0-pscsi.0:0-mpx.vmhba0:C0:T0:L0
Runtime Name: vmhba0:C0:T0:L0
Device: mpx.vmhba0:C0:T0:L0
Device Display Name: Local VMware, Disk (mpx.vmhba0:C0:T0:L0)
State: active
Transport: parallel
usb.vmhba34-usb.0:0-mpx.vmhba34:C0:T0:L0
Runtime Name: vmhba34:C0:T0:L0
Device: mpx.vmhba34:C0:T0:L0
Device Display Name: Local USB Direct-Access (mpx.vmhba34:C0:T0:L0)
State: active
Transport: usb
15. As you can see, the USB drive is active and ready to be mounted/dev/sdb5 on / type ext3 (rw)
None on /proc type proc (rw)
None on /sys type sysfs (rw)
None on /dev/pts type devpts (rw)
/dev/sda1 on /boot type ext3 (rw)
/dev/sdb2 on /var/log type ext3 (rw,errors=panic)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sde1 on /mnt/myusb type vfat (rw)
20. Your USB drive is now mounted as vfattotal 548K
drwxr-xr-x 2 root root 16K Nov 10 00:32 .
drwxr-xr-x 6 root root 4.0K Nov 10 00:23 ..
-rwxr-xr-x 1 root root 35K Nov 10 00:32 vmware-1.log
-rwxr-xr-x 1 root root 52K Nov 10 00:32 vmware-2.log
-rwxr-xr-x 1 root root 55K Nov 10 00:32 vmware-3.log
-rwxr-xr-x 1 root root 56K Nov 10 00:32 vmware-4.log
-rwxr-xr-x 1 root root 56K Nov 9 23:26 vmware-5.log
-rwxr-xr-x 1 root root 56K Nov 9 23:26 vmware-6.log
-rwxr-xr-x 1 root root 58K Nov 9 23:26 vmware-7.log
-rwxr-xr-x 1 root root 52K Nov 10 00:32 vmware.log
24. Now you get the idea, happy copying files to USB drive on your esx host!Disk /dev/disks/mpx.vmhba1:C0:T0:L0: 10.7 GB, 10737418240 bytes
64 heads, 32 sectors/track, 10240 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/disks/mpx.vmhba1:C0:T0:L0p1 5 900 917504 5 Extended
/dev/disks/mpx.vmhba1:C0:T0:L0p2 901 4995 4193280 6 FAT16
/dev/disks/mpx.vmhba1:C0:T0:L0p3 4996 10240 5370880 fb VMFS
/dev/disks/mpx.vmhba1:C0:T0:L0p4 * 1 4 4080 4 FAT16 <32M
/dev/disks/mpx.vmhba1:C0:T0:L0p5 5 254 255984 6 FAT16
/dev/disks/mpx.vmhba1:C0:T0:L0p6 255 504 255984 6 FAT16
/dev/disks/mpx.vmhba1:C0:T0:L0p7 505 614 112624 fc VMKcore
/dev/disks/mpx.vmhba1:C0:T0:L0p8 615 900 292848 6 FAT16
6. View current path with esxcfg-mpath -lide.vmhba32-ide.0:0-mpx.vmhba32:C0:T0:L0
Runtime Name: vmhba32:C0:T0:L0
Device: mpx.vmhba32:C0:T0:L0
Device Display Name: Local MagicISO CD-ROM (mpx.vmhba32:C0:T0:L0)
State: active
Transport: ide
pscsi.vmhba1-pscsi.0:0-mpx.vmhba1:C0:T0:L0
Runtime Name: vmhba1:C0:T0:L0
Device: mpx.vmhba1:C0:T0:L0
Device Display Name: Local VMware, Disk (mpx.vmhba1:C0:T0:L0)
State: active
Transport: parallel
7. Now plug in the drive to any available USB portDec 13 02:01:21 vmkernel: 0:00:04:46.032 cpu0:4298)<6>usb 1-1: New USB device found, idVendor=0951, idProduct=1607
Dec 13 02:01:21 vmkernel: 0:00:04:46.032 cpu1:8807)<7>usb-storage: device found at 2
Dec 13 02:01:21 vmkernel: 0:00:04:46.032 cpu0:4298)<6>usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=3
Dec 13 02:01:21 vmkernel: 0:00:04:46.032 cpu1:8807)<7>usb-storage: waiting for device to settle before scanning
Dec 13 02:01:21 vmkernel: 0:00:04:46.043 cpu0:4117)ScsiNpiv: 1304: GetInfo for adapter vmhba33, [0x410004103bc0], max_vports=0, vports_inuse=0, linktype=0, state=0, failreason=0, rv=-1, sts=bad0020
Dec 13 02:01:23 vmkernel: 0:00:04:48.038 cpu0:8806)usb-storage: detected SCSI revision number 0 on vmhba33
Dec 13 02:01:23 vmkernel: 0:00:04:48.038 cpu0:8806)usb-storage: patching inquiry data to change SCSI revision number from 0 to 2 on vmhba33
Dec 13 02:01:23 vmkernel: 0:00:04:48.038 cpu1:8807)ScsiScan: 839: Path 'vmhba33:C0:T0:L0': Vendor: 'Kingston' Model: 'DataTraveler 2.0' Rev: 'PMAP'
Dec 13 02:01:23 vmkernel: 0:00:04:48.038 cpu1:8807)ScsiScan: 842: Path 'vmhba33:C0:T0:L0': Type: 0x0, ANSI rev: 2, TPGS: 0 (none)
Dec 13 02:01:23 vmkernel: 0:00:04:48.038 cpu0:8807)ScsiUid: 268: Path 'vmhba33:C0:T0:L0' does not support VPD Device Id page.
Dec 13 02:01:23 vmkernel: 0:00:04:48.038 cpu0:8807)ScsiScan: 954: Path 'vmhba33:C0:T0:L0' : No standard UID: Failure. ANSI version 'SCSI-2' (0x2).
Dec 13 02:01:23 vmkernel: 0:00:04:48.039 cpu0:8807)VMWARE SCSI Id: Could not get disk id for vmhba33:C0:T0:L0
Dec 13 02:01:23 vmkernel: 0:00:04:48.040 cpu0:8807)ScsiPath: 3698: Plugin 'NMP' claimed path 'vmhba33:C0:T0:L0'
Dec 13 02:01:23 vmkernel: 0:00:04:48.046 cpu1:8806)usb-storage: detected SCSI revision number 0 on vmhba33
Dec 13 02:01:23 vmkernel: 0:00:04:48.046 cpu1:8806)usb-storage: patching inquiry data to change SCSI revision number from 0 to 2 on vmhba33
Dec 13 02:01:23 vmkernel: 0:00:04:48.046 cpu0:8807)ScsiUid: 268: Path 'vmhba33:C0:T0:L0' does not support VPD Device Id page.
Dec 13 02:01:23 vmkernel: 0:00:04:48.047 cpu1:8807)VMWARE SCSI Id: Could not get disk id for vmhba33:C0:T0:L0
Dec 13 02:01:23 Hostd: [2009-12-13 02:01:23.768 33018B90 verbose 'StorageSystem'] StoragePathUpdate Refresh --: [N11HostdCommon25VmkernelUpdateStoragePathE:0xec882f8] timestamp=1260669683768212 updated=0xecd3a08
Dec 13 02:01:23 Hostd: [2009-12-13 02:01:23.768 33018B90 verbose 'StorageSystem'] SendStorageInfoEvent() called
Dec 13 02:01:23 Hostd: [2009-12-13 02:01:23.769 33018B90 verbose 'StorageSystem'] StoragePathUpdate: Path state change event generated Storage related Notifications
Dec 13 02:01:23 vmkernel: 0:00:04:48.047 cpu1:8807)VMWARE SCSI Id: Could not get disk id for vmhba33:C0:T0:L0
Dec 13 02:01:23 vmkernel: 0:00:04:48.047 cpu1:8807)ScsiDeviceIO: 2114: Get VPD 80 Inquiry for device "mpx.vmhba33:C0:T0:L0" from Plugin "NMP" failed. Not supported
Dec 13 02:01:23 vmkernel: 0:00:04:48.047 cpu1:8807)ScsiDeviceIO: 2124: Get VPD 83 Inquiry for device "mpx.vmhba33:C0:T0:L0" from Plugin "NMP" failed. Not supported
Dec 13 02:01:23 vmkernel: 0:00:04:48.102 cpu1:8807)FSS: 3647: No FS driver claimed device 'mpx.vmhba33:C0:T0:L0:1': Not supported
Dec 13 02:01:23 vmkernel: 0:00:04:48.102 cpu1:8807)ScsiDevice: 1757: Successfully registered device "mpx.vmhba33:C0:T0:L0" from plugin "NMP" of type 0
Dec 13 02:01:23 vmkernel: 0:00:04:48.104 cpu1:8807)<7>usb-storage: device scan complete
10. As you can see the USB drive is detected as vmhba33:C0:T0:Disk /dev/disks/mpx.vmhba33:C0:T0:L0: 2006 MB, 2006974464 bytes
16 heads, 32 sectors/track, 7656 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Device Boot Start End Blocks Id System
/dev/disks/mpx.vmhba33:C0:T0:L0p1 1 7656 1959920 6 FAT16
Disk /dev/disks/mpx.vmhba1:C0:T0:L0: 10.7 GB, 10737418240 bytes
64 heads, 32 sectors/track, 10240 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/disks/mpx.vmhba1:C0:T0:L0p1 5 900 917504 5 Extended
/dev/disks/mpx.vmhba1:C0:T0:L0p2 901 4995 4193280 6 FAT16
/dev/disks/mpx.vmhba1:C0:T0:L0p3 4996 10240 5370880 fb VMFS
/dev/disks/mpx.vmhba1:C0:T0:L0p4 * 1 4 4080 4 FAT16 <32M
/dev/disks/mpx.vmhba1:C0:T0:L0p5 5 254 255984 6 FAT16
/dev/disks/mpx.vmhba1:C0:T0:L0p6 255 504 255984 6 FAT16
/dev/disks/mpx.vmhba1:C0:T0:L0p7 505 614 112624 fc VMKcore
/dev/disks/mpx.vmhba1:C0:T0:L0p8 615 900 292848 6 FAT16
12. From the output, we can see that the drive partition is detected fine as wellide.vmhba32-ide.0:0-mpx.vmhba32:C0:T0:L0
Runtime Name: vmhba32:C0:T0:L0
Device: mpx.vmhba32:C0:T0:L0
Device Display Name: Local MagicISO CD-ROM (mpx.vmhba32:C0:T0:L0)
State: active
Transport: ide
usb.vmhba33-usb.0:0-mpx.vmhba33:C0:T0:L0
Runtime Name: vmhba33:C0:T0:L0
Device: mpx.vmhba33:C0:T0:L0
Device Display Name: Local USB Direct-Access (mpx.vmhba33:C0:T0:L0)
State: active
Transport: usb
pscsi.vmhba1-pscsi.0:0-mpx.vmhba1:C0:T0:L0
Runtime Name: vmhba1:C0:T0:L0
Device: mpx.vmhba1:C0:T0:L0
Device Display Name: Local VMware, Disk (mpx.vmhba1:C0:T0:L0)
State: active
Transport: parallel
14. Looks good, but how do we mount it?l--------- 0 root root 1.9k Jan 1 1970 Hypervisor1 -> 8cb4ed7d-7ff4129e-ea93-3a40177d3073
l--------- 0 root root 1.9k Jan 1 1970 Hypervisor2 -> be05e675-6944d5d6-989a-883d97a99f55
l--------- 0 root root 1.9k Jan 1 1970 Hypervisor3 -> efd8efe3-03bc1cbf-15e0-080efd9e7379
l--------- 0 root root 1.9k Jan 1 1970 NO NAME -> mpx.vmhba33:C0:T0:L0:1
l--------- 0 root root 1.9k Jan 1 1970 datastore1 -> 4b2448d6-67f9bb38-2010-000c2963e851
17. Meaning you can copy files from anywhere to /vmfs/volumes/NO\ NAME/Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (11)
Commented:
He had a power outage yesterday and now can't get in to restart the VMs due to not knowing the password (and he can't get it either). I've turned up with ESX4i on USB and booted off of that to actually get in to the disks and I wanted to take a backup of the VMDK's I can now access following your handy hint before I try and run a repair on the ESXi 3.5 to remove the unknown root password. Little bit concerned as there is NO backup in place and all his business files etc are on the VMs. The Proliant had a TBU and he had thought it was being backed up to that unfortunately the integrators didn't configure it to take backups (handy).
I've tried searching alternative ways of bypassing the ESXi3.5 root password but no joy, repair seems the only option. While it may be 99% reliable, my mate doesn't want to risk the 1% unreliable on his data until it is the last resort. In your infinite wisdom in regards to vmware, am I missing something glaringly obvious I could be doing to a) ensure a successful backup of his VMs and b) bypassing the unknown root password?
I know I've gone a little OFT, I'm sorry, but a bit desperate now and appreciate any advice you could offer.
Author
Commented:Commented:
Commented:
Author
Commented:View More