VMware Cloud Community
baber
Expert
Expert

how can understand esxi disk installation

Dear all

Hi

i have 3 disk on my server and 2 of my disks are raid 1+0 but one of them is just raid0 now how can understand esxi has been installed on which disk ?

BR

Please mark helpful or correct if my answer resolved your issue.
5 Replies
kalle1982
Contributor
Contributor

You can try using fdisk or partedUtil do see partitions on the disks. The one with ESXi on it should have several partitions.

Reply
0 Kudos
baber
Expert
Expert

can you exactly say what command do i have to use

Please mark helpful or correct if my answer resolved your issue.
Reply
0 Kudos
HassanAlKak88
Expert
Expert

Hello,

Kindly find the below, It will be a combination of several commands:

First find the vmfs path of boot disk:    ls -la /bootbank

which will give you something like: /bootbank -> /vmfs/volumes/c3fc2b77-b938092d-0a3d-abb9bf510f0f

Now do find which disk id that is actually using: vmkfstools -P /vmfs/volumes/c3fc2b77-b938092d-0a3d-abb9bf510f0f

which will give you something like

    "Partitions spanned (on "disks"):

            t10.ATA_____WDC_"

Now you can find the details of the disk with: esxcli storage core device list |grep -A27 ^t10.ATA_____WDC

which will give you the information you are looking for

    "t10.ATA_____WDC_WD2500AAKS2D00B3A0________________________WD2DWMAT12492277

       Display Name: Local ATA Disk (t10.ATA_____WDC_WD2500AAKS2D00B3A0________________________WD2DWMAT12492277)

       Has Settable Display Name: true

       Size: 238475

       Device Type: Direct-Access

       Multipath Plugin: NMP

       Devfs Path: /vmfs/devices/disks/t10.ATA_____WDC_WD2500AAKS2D00B3A0________________________WD2DWMAT12492277

       Vendor: ATA

       Model: WDC WD2500AAKS-0

       Revision: 01.0

       SCSI Level: 5

       Is Pseudo: false

       Status: on

       Is RDM Capable: false

       Is Local: true

       Is Removable: false

       Is SSD: true

       Is Offline: false

       Is Perennially Reserved: false

       Queue Full Sample Size: 0

       Queue Full Threshold: 0

       Thin Provisioning Status: unknown

       Attached Filters:

       VAAI Status: unknown

       Other UIDs: vml.0100000000202020202057442d574d41543132343932323737574443205744

       Is Local SAS Device: false

       Is Boot USB Device: false"


If my reply was helpful, I kindly ask you to like it and mark it as a solution

Regards,
Hassan Alkak
Reply
0 Kudos
Gavis4569
Enthusiast
Enthusiast

There is maybe more straight forward process but this should work.

1) ls -la /bootbank

Should return something like

lrwxrwxrwx    1 root     root            49 Mar 12 08:27 /bootbank -> /vmfs/volumes/3ca06c7f-b2f44bac-a3b4-aca9a1a6c993

2) vmkfstools -P /vmfs/volumes/3ca06c7f-b2f44bac-a3b4-aca9a1a6c993

vfat-0.04 (Raw Major Version: 0) file system spanning 1 partitions.

File system label (if any):

Mode: private

Capacity 261853184 (63929 file blocks * 4096), 107102208 (26148 blocks) avail, max supported file size 0

UUID: 3ca06c7f-b2f44bac-a3b4-aca9a1a6c993

Partitions spanned (on "disks"):

  mpx.vmhba0:C0:T0:L0:5

Is Native Snapshot Capable: NO

This is your disk (and 5 is partition)

3) esxcli storage core device list

And looks for your disk

mpx.vmhba0:C0:T0:L0

   Display Name: Local VMware, Disk (mpx.vmhba0:C0:T0:L0)

   Has Settable Display Name: false

   Size: 10240

   Device Type: Direct-Access

   Multipath Plugin: NMP

   Devfs Path: /vmfs/devices/disks/mpx.vmhba0:C0:T0:L0

   Vendor: VMware,

   Model: VMware Virtual S

   Revision: 1.0

   SCSI Level: 2

   Is Pseudo: false

   Status: on

   Is RDM Capable: false

   Is Local: true

   Is Removable: false

   Is SSD: false

   Is VVOL PE: false

   Is Offline: false

   Is Perennially Reserved: false

   Queue Full Sample Size: 0

   Queue Full Threshold: 0

   Thin Provisioning Status: unknown

   Attached Filters:

   VAAI Status: unsupported

   Other UIDs: vml.0000000000766d686261303a303a30

   Is Shared Clusterwide: false

   Is Local SAS Device: false

   Is SAS: false

   Is USB: false

   Is Boot USB Device: false

  Is Boot Device: true

   Device Max Queue Depth: 1024

   No of outstanding IOs with competing worlds: 32

   Drive Type: unknown

   RAID Level: unknown

   Number of Physical Drives: unknown

   Protection Enabled: false

   PI Activated: false

   PI Type: 0

   PI Protection Mask: NO PROTECTION

   Supported Guard Types: NO GUARD SUPPORT

   DIX Enabled: false

   DIX Guard Type: NO GUARD SUPPORT

   Emulated DIX/DIF Enabled: false

You would have different names here - like identification of your RAID volume.

Martin Gavanda https://martingavanda.com https://learnvmware.online
isheriff
Contributor
Contributor

Hi,

You can do the following to find on which disk is your ESXi installed:

     1. Run command ls -l /

     2. You will get the paths to each of the folder under /

     3. Find bootbank from it:

          lrwxrwxrwx    1 root     root            49 Mar 28 13:39 bootbank -> /vmfs/volumes/07100d7f-97af111a-ddb3-b5b4282c84a2

     4. Run command: vmkfstools -Ph /vmfs/volumes/07100d7f-97af111a-ddb3-b5b4282c84a2

     5. It will list the details where the bootbank has been created. The disk identifier is also listed, something like:

          Partitions spanned (on "disks"):

             mpx.vmhba2:C0:T0:L0:5

Regards,

Iram