ESXi: How to check on the health of your Datastore disks using Putty and ESXTOP commands.
In ESXi, you may need to check whether your hard drives are functioning properly or if it is time to replace them.
In this article, I will go over some shell commands you can use to check your hard drive's status.
Now, I am just learning about these commands myself, but I wanted to create this article.
#1: I would have them to fall back on if I needed them again.
#2: To share with the community.
Step 1: Enable Secure Shell
Log in to your [ESXi].
Right-click on either [Host] | [Manage] | [Monitor]
Choose Services
Then choose [Enable Secure Shell (SSH)]
Step 2: Download and Install Putty
Putty is possibly the best program to use for all Linux and even Windows Servers in DOS.
Download the latest version of Putty«
I download all my software to my D:\ drive.
This makes it easier to find and keep all downloads if you ever have to reinstall your OS.
Once installed.
Open [Putty]
In your taskbar for [Putty], Right-click and choose [Pin to taskbar]
(This will make it easier for the next step)
[PuTTy settings for a new Connection]
Host Name (or IP Address) 192.168.2.189
  1. Port: 22
  2. Saved Session: ESXi 189
  3. Click Save
    (The above will save the session so you can right-click on the Putty app in your taskbar and choose from the list of the last run sessions.)
  4. Click [Open]
When the screen opens,
Username: root
password: YourPassWord
Step 3: Command for ESXi
  1. List all the storage devices in ESXi.«
  2. ESXTOP - real-time troubleshooting«
  3. How to Identify Latency and Queuing«
List all the storage devices in ESXi
[ESXi - Get Storage Drive list]
CFFCS | CarrzSynEdit: | CMD (Windows Command Prompt) | L (Linux)
esxcli storage core device list


What we want is the name that starts with t10.ATA. It will look something like this.
t10.ATA_____ST9500620NS_____9XF335C4
Copy
Search Site
Search Google

If you have multiple drives, you will find multiple values.
[ESXi - Check on the drive's health and condition.]
CFFCS | CarrzSynEdit: | CMD (Windows Command Prompt) | L (Linux)
esxcli storage core device smart get -d t10.ATA_____ST9500620NS_____9XF335C4

Output will look something like this.
ParameterValueThresholdWorst
----------------------------------------------
Health StatusOKN/AN/A
Media Wearout IndicatorN/AN/AN/A
Write Error CountN/AN/AN/A
Read Error Count754463
Power-on Hours26026
Power Cycle Count10020100
Reallocated Sector Count10036100
Raw Read Error Rate754463
Drive Temperature39051
Driver Rated Max Temperature614549
Write Sectors TOT CountN/AN/AN/A
Read Sectors TOT CountN/AN/AN/A
Initial Bad Block CountN/AN/AN/A
ESXTOP - real-time troubleshooting
Other Resources.virten.net | ESXTOP Guide«yellow-bricks.com | ESXTOP«Broadcom.com | ESXi S.M.A.R.T. health monitoring for hard drives«
Type in the esxtop
Copy
Search Site
Search Google

Click [Enter]
Press the [F] key
This opens a list of options.
Current Field order: ABcDEFghij
*AID=Id
*BGID=Group Id
0CLWID=Leader World Id (World Group Id)
*DNAME=Name
*ENWLD=Num Members
*F%STATE TIMES=CPU State Times
0GEVENT COUNTS/s=CPU Event Counts
0HCPU ALLOC=CPU Allocations
0ISUMMARY STATS=CPU Summary Stats
0JPOWER STATS=CPU Power Stats
Toggle fields with a-j, any other key to return:
The * is for the selected items.
Using the following chart, you can switch between the different available modes.
Simply type either letter while esxtop is running.
ModesSwitch views using
cCPU
mMemory
dDisk Adapter
uDisk Device
nNetwork
vVM Disk
How to Identify Latency and Queuing in ESXi 6.5
To find the queuing metrics you need, use one of the following views:
The Output
(The Device names ___ have been shorten, and properties have been broken by letter to save space)
PWP = PATH/WORLD/PARTITION
Copy
Search Site
Search Google
DEVICEP
W
P
D
Q
L
E
N
W
Q
L
E
N
A
C
T
V
Q
U
E
D
%
U
S
D
L
O
A
D
C
M
D
S/s
R
E
A
D
S/s
W
R
I
T
ES/s
M
B
R
E
AD/s
M
B
W
R
TN/s
D
A
V
G
/cmd
K
A
V
G
/cmd
G
A
V
G
/cmd
Q
A
V
G
/cmd
t10.ATA
_____
ST9500620NS
___
-31-0000.001.380.00 1.380.000.020.370.020.390.00
t10.ATA
_____
ST9500620NS
___
-31-0000.000.790.00 0.790.000.000.240.010.260.00
t10.
SanDisk00Cruzer
_Blade00
-1-0000.000.000.00 0.000.000.000.000.000.000.00