To find out current ESXi boot disk

I have 2 boot disks in my ESXi.

1x1TB SSD
1x32GB pen drive
Q. From which disk its currently booted?
A. From these 2 commands, we found its booted from SSD
# fdisk -lu
shown 1754529792 sectors devided by 2 = 877264896 KB = 877 GB = around 1TB
# fdisk -lu
***
*** The fdisk command is deprecated: fdisk does not handle GPT partitions.  Please use partedUtil
***
Found valid GPT with protective MBR; using GPT
Disk /dev/disks/naa.690b11c02d2926001b1dcce40a9c7d66: 1754529792 sectors, 1673M
Logical sector size: 512
Disk identifier (GUID): b36e60cd-96dd-41da-a40b-7794cab5c983
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1754529758
Number  Start (sector)    End (sector)  Size       Code  Name
1              34          262177        256K   0700  Microsoft reserved partition
2          264192      1754527743       1672M   0700  Basic data partition
Found valid GPT with protective MBR; using GPT
Disk /dev/disks/naa.690b11c02d2926001b1dcaf00f26bc58: 1952448512 sectors, 1862M
Logical sector size: 512
Disk identifier (GUID): 4c3060e3-dc8f-4a39-95c4-052556e22d2d
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1952448478
Number  Start (sector)    End (sector)  Size       Code  Name
1              64            8191        8128   0700
2         7086080        15472639       8190K   0700
3        15472640      1952448478       1847M   0700
5            8224          520191        499K   0700
6          520224         1032191        499K   0700
7         1032224         1257471        219K   0700
8         1257504         1843199        571K   0700
9         1843200         7086079       5120K   0700
# ls -lisa /dev/disks/
total 3706976145
4      0 drwxr-xr-x    1 root     root           512 Feb 17 18:05 .
1      0 drwxr-xr-x    1 root     root           512 Feb 17 18:05 ..
148 976224256 -rw——-    1 root     root     999653638144 Feb 17 18:05 naa.690b11c02d2926001b1dcaf00f26bc58
132   4064 -rw——-    1 root     root       4161536 Feb 17 18:05 naa.690b11c02d2926001b1dcaf00f26bc58:1
134 4193280 -rw——-    1 root     root     4293918720 Feb 17 18:05 naa.690b11c02d2926001b1dcaf00f26bc58:2
136 968487919 -rw——-    1 root     root     991731629568 Feb 17 18:05 naa.690b11c02d2926001b1dcaf00f26bc58:3
138 255984 -rw——-    1 root     root     262127616 Feb 17 18:05 naa.690b11c02d2926001b1dcaf00f26bc58:5
140 255984 -rw——-    1 root     root     262127616 Feb 17 18:05 naa.690b11c02d2926001b1dcaf00f26bc58:6
142 112624 -rw——-    1 root     root     115326976 Feb 17 18:05 naa.690b11c02d2926001b1dcaf00f26bc58:7
144 292848 -rw——-    1 root     root     299876352 Feb 17 18:05 naa.690b11c02d2926001b1dcaf00f26bc58:8
146 2621440 -rw——-    1 root     root     2684354560 Feb 17 18:05 naa.690b11c02d2926001b1dcaf00f26bc58:9
155 877264896 -rw——-    1 root     root     898319253504 Feb 17 18:05 naa.690b11c02d2926001b1dcce40a9c7d66
151 131072 -rw——-    1 root     root     134217728 Feb 17 18:05 naa.690b11c02d2926001b1dcce40a9c7d66:1
153 877131776 -rw——-    1 root     root     898182938624 Feb 17 18:05 naa.690b11c02d2926001b1dcce40a9c7d66:2
149      0 lrwxrwxrwx    1 root     root            36 Feb 17 18:05 vml.0200000000690b11c02d2926001b1dcaf00f26bc58504552432048 -> naa.690b11c02d2926001b1dcaf00f26bc58
133      0 lrwxrwxrwx    1 root     root            38 Feb 17 18:05 vml.0200000000690b11c02d2926001b1dcaf00f26bc58504552432048:1 -> naa.690b11c02d2926001b1dcaf00f26bc58:1
135      0 lrwxrwxrwx    1 root     root            38 Feb 17 18:05 vml.0200000000690b11c02d2926001b1dcaf00f26bc58504552432048:2 -> naa.690b11c02d2926001b1dcaf00f26bc58:2
137      0 lrwxrwxrwx    1 root     root            38 Feb 17 18:05 vml.0200000000690b11c02d2926001b1dcaf00f26bc58504552432048:3 -> naa.690b11c02d2926001b1dcaf00f26bc58:3
139      0 lrwxrwxrwx    1 root     root            38 Feb 17 18:05 vml.0200000000690b11c02d2926001b1dcaf00f26bc58504552432048:5 -> naa.690b11c02d2926001b1dcaf00f26bc58:5
141      0 lrwxrwxrwx    1 root     root            38 Feb 17 18:05 vml.0200000000690b11c02d2926001b1dcaf00f26bc58504552432048:6 -> naa.690b11c02d2926001b1dcaf00f26bc58:6
143      0 lrwxrwxrwx    1 root     root            38 Feb 17 18:05 vml.0200000000690b11c02d2926001b1dcaf00f26bc58504552432048:7 -> naa.690b11c02d2926001b1dcaf00f26bc58:7
145      0 lrwxrwxrwx    1 root     root            38 Feb 17 18:05 vml.0200000000690b11c02d2926001b1dcaf00f26bc58504552432048:8 -> naa.690b11c02d2926001b1dcaf00f26bc58:8
147      0 lrwxrwxrwx    1 root     root            38 Feb 17 18:05 vml.0200000000690b11c02d2926001b1dcaf00f26bc58504552432048:9 -> naa.690b11c02d2926001b1dcaf00f26bc58:9
156      0 lrwxrwxrwx    1 root     root            36 Feb 17 18:05 vml.0200000000690b11c02d2926001b1dcce40a9c7d66504552432048 -> naa.690b11c02d2926001b1dcce40a9c7d66
152      0 lrwxrwxrwx    1 root     root            38 Feb 17 18:05 vml.0200000000690b11c02d2926001b1dcce40a9c7d66504552432048:1 -> naa.690b11c02d2926001b1dcce40a9c7d66:1
154      0 lrwxrwxrwx    1 root     root            38 Feb 17 18:05 vml.0200000000690b11c02d2926001b1dcce40a9c7d66504552432048:2 -> naa.690b11c02d2926001b1dcce40a9c7d66:2
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s