Display currently mounted storage
####vdf for ESX host is equivalent to df command for Linux, it shows any type (SCSI/FC/NFS/ISCSI)$ vdf -hFilesystem Size Used Avail Use% Mounted on../vmfs/volumes/4c5be33b-3a356289-ea3f-0024c1a35c5c135G 16G 118G 12% /vmfs/volumes/esx01:stor1/vmfs/volumes/7292e403-4f3672791.7T 1.5T 206G 88% /vmfs/volumes/nfs_stor####Check detailed file system information on the storage$ vmkfstools -P -h /vmfs/volumes/esx01:stor1VMFS-3.33 file system spanning 1 partitions.File system label (if any): esx01:stor1Mode: publicCapacity 135.2 GB, 118.5 GB available, file block size 1 MBUUID: 4c5be33b-3a356289-ea3f-0024c1a35c5cPartitions spanned (on "lvm"):mpx.vmhba0:C0:T0:L0:5$ vmkfstools -P -h /vmfs/volumes/nfs_storNFS-1.00 file system spanning 1 partitions.File system label (if any): nfs_storMode: publicCapacity 1.7 TB, 206.5 GB available, file block size 4 KBUUID: 7292e403-4f367279-0000-000000000000Partitions spanned (on "notDCS"):nfs:nfs_stor
Find out storage type (SCSI/FC/NFS/ISCSI)
####SCSI/FC TYPE[ESX4]$esxcfg-scsidevs -mmpx.vmhba0:C0:T0:L0:5 /dev/cciss/c0d0p5 4c5be33b-3a356289-ea3f-0024c1a35c5c 0 esx01:stor1[ESX3]$ esxcfg-vmhbadevs -mvmhba0:0:0:9 /dev/cciss/c0d0p9 4951068b-1dabf5db-74c8-0022640e9ea6####NFS TYPE$esxcfg-nas -lnfs_stor is /vol/vmdk_vol1 from 10.1.1.1.1 mounted####ISCSI TYPEvmkiscsi-tool ?
Find out adapter Vendor/ Device name
$ esxcfg-info | grep -B 12 vmhba0|----Vendor Name........................................Hewlett-Packard Company|----Device Name........................................Smart Array E200i|----Device Class.......................................260|----PIC Line...........................................11|----Service Console IRQ................................25|----Vector.............................................162|----PCI Pin............................................0|----Spawned Bus........................................0|----Flags..............................................513|----Module Id..........................................34|----Chassis............................................0|----Physical Slot......................................255|----VmKernel Device Name...............................vmhba0
How to find out storage not mounted
[ESX3]$esxcfg-mpath -lDisk vmhba0:0:0 /dev/cciss/c0d0 (139979MB) has 1 paths and policy of FixedLocal 66:8.0 vmhba0:0:0 On active preferred[ESX4]$ esxcfg-scsidevs -lmpx.vmhba0:C0:T0:L0Device Type: Direct-AccessSize: 139979 MBDisplay Name: Local VMware Disk (mpx.vmhba0:C0:T0:L0)Plugin: NMPConsole Device: /dev/cciss/c0d0Devfs Path: /vmfs/devices/disks/mpx.vmhba0:C0:T0:L0Vendor: VMware Model: Block device Revis: 1.0SCSI Level: 2 Is Pseudo: false Status: onIs RDM Capable: false Is Removable: falseIs Local: trueOther Names:vml.0000000000566d676261303a303b30[ESX4]$ esxcfg-mpath -l device=vml.0000000000566d676261303a303b30block.cciss/c0d0:0-block.0:0-mpx.vmhba0:C0:T0:L0Runtime Name: vmhba0:C0:T0:L0Device: mpx.vmhba0:C0:T0:L0Device Display Name: Local VMware Disk (mpx.vmhba0:C0:T0:L0)Adapter: vmhba0 Channel: 0 Target: 0 LUN: 0Adapter Identifier: block.cciss/c0d0:0Target Identifier: block.0:0Plugin: NMPState: activeTransport: block
Misc
####show vmware crash dump partitionesxcfg-dumppart -l####clone disk/convert thick disk to thin diskvmkfstools -i /vmfs/volumes/storage1/vm01.vmdk -d thin /vmfs/volumes/storage2/vm02.vmdkThick Disk: size of ls output = size of du outputThin Disk: size of ls output > size of du output