Contents

Background

Where to get the utilities

Steps on how to use each utility.

SmartMonTools for Windows - JBOD mode

SmartMonTools for Linux – JBOD Mode

SmartMonTools for ESXi – JBOD Mode

Sg3_utils for Windows - JBOD mode

Sg3_utils for Linux - JBOD mode

Sandisk Tool for Windows - JBOD mode

Sandisk Tool for Linux - JBOD mode

SmartMonTools for Linux - RAID mode

Background

"Power on hours" is an important metric for SSD lifespan determination. In order to identify the affected Solid State Drives(SSD), you will need to download 3rdparty utilities that will allow you to see the Power-On Hours(PoH)and in some cases the model#for the affected SSD.  Below you will find the instructions on where to get the utilities and how to use them.

Where to get the utilities

There are4different utilities to choose from depending on your OS and needs.  Please review the below table.

Tool

Applicable OS's

Tool Source

SmartMon Tools

Linux, Windows, VMware

https://sourceforge.net/projects/smartmontools/files/smartmontools/

sg3_utils

Linux, Windows

http://sg.danny.cz/sg/sg3_utils.html

SanDisk Tool

Linux, Windows

https://kb.sandisk.com/app/answers/detail/a_id/18565/~/lightning-gen.-ii-ssd-drive-firmware

Storcli Utility

All OS's

https://docs.broadcom.com/docs/007.1410.0000.0000_Unified_StorCLI.zip

Steps on how to use each utility.

Each utility requires some knowledge on installing software in Linux, VMware and Windows.  Be sure to read any readme files before installing.

SmartMonTools for Windows - JBOD mode

Note: If you are using a RAID controller, you cannot collect this data through Windows

1. Installation:

1. Go the download link posted in the table above and download and install the smartmontools utility

2. Get the smartctl Windows setup file through above link.

3. Execute the setup file:

smartmontools-7.1-1.win32-setup.exe

4. Open the command prompt

5. Go to folder:

C:\Program Files\smartmontools\bin

2. Check Drive Firmware Version:

1. Run below command to get the device name of target drive.

smartctl –scan

[jbod windows smartmon fw 1]

2. Read drive firmware version as below:

smartctl -i /dev/sdc

[jbod windows smartmon fw 2]

3. Check Power On Hours:

1. Once installed, you will be using the ‘smartctl’ utility within the smartmontools package.

2. Open up CMD, go to the smartmontools directory and find the list of SSDs by typing:

smartctl.exe --scan

3. Once you identify which SSD you want to check, you can then type the following two commands in order to get the output needed (where X is the drive letter you wish to check��

smartctl -t short /dev/sdX – Wait 10 seconds before running the second command

smartctl -l selftest /dev/sdX

4. Look for the “Lifetime” hours from the 1st line.  That will be the latest record of PoH.

[jbod windows smartmon]

SmartMonTools for Linux – JBOD Mode

1. Installation:

1. Go the download link posted in the table above and download and install the smartmontools utility.

2. Get the smartctl installation file Linux version through above link.

3. Untar the installation file.

tar -zxvf smartmontools-7.1.tar.gz

4. Go to folder:

smartmontools-7.1

5. Run below commands in order.

./configure

make

make install

2. Check Drive Firmware Version:

1. ‘sdb’ is the device name of target drive.

smartctl -i /dev/sdb

[jbod linux smartmon fw]

3. Check Power On Hours (POH)

1. Go to the smartmontools directory and find the list of SSDs by typing:

esxcli storage core device list

2. Once you identify which SSD you want to check, you can thentype the following two commands in order to get the output needed (where X is the drive letter you wish to check��

smartctl -t short /dev/sdX – Wait 10 seconds before running the second command

smartctl -l selftest /dev/sdX

3. Look for the “Lifetime” hours from the 1st line.  That will be the latest record of PoH.

[jbod linux smartmon]

SmartMonTools for ESXi – JBOD Mode

1. Installation:

1. Go the download link posted in the table above and download and install the smartmontools utility

2. Get the smartctl ESXi installation file through above link.

3. Enable shell and SSH on the ESXi host.

[jbod esxi smartmon install]

4. Upload file ‘smartctl-6.6-4321.x86_64.vib’ into ESXi host ‘tmp’ folder through ftp tool.

5. SSH to the ESXi host.

6. Set the ViB acceptance level to CommunitySupported.

esxcli software acceptance set --level=CommunitySupported

7. Then install the package.

esxcli software vib install -v /tmp/smartctl-6.6-4321.x86_64.vib

2. Check the Drive Firmware Version

1. SSH to the ESXi host. Then run below command to get the device name and firmware version of target drive.

esxcli storage core device list

[jbod esxi smartmon fw]

2. Check Power On Hours (POH)

1. Go to the smartmontools directory and find the list of SSDs by typing

esxcli storage core device list

2. Once you identify which SSD you want to check, you can then type the following two commands in order to get the output needed (where naa.xxx is the drive letter you wish to check��

/opt/smartmontools/smartctl -d scsi -t short /dev/disks/naa.xxx – Wait 10 seconds before running the second command

/opt/smartmontools/smartctl -d scsi -l selftest /dev/disks/naa.xxx

3. Look for the “Lifetime” hours from the 1st line.  That will be the latest record of PoH.

[jbod esxi smartmon]

Sg3_utils for Windows - JBOD mode

1. Installation

1. Go the download link posted in the table above and download and install the sg3_utils utility

2. Get the smartctl Windows setup file through above link.

3. Execute the setup file:

smartmontools-7.1-1.win32-setup.exe

4. Open the command prompt

5. Go to folder:

C:\Program Files\smartmontools\bin

2. Check the Drive Firmware Version:

1. Run below command to get the device name of target drive.

smartctl –scan

[jbod windows sg3_utils fw 1]

2. Read drive firmware version as below

smartctl -i /dev/sdc

[jbod windows sg3_utils fw 2]

3. Check Power On Hours:

1. Go to the sg3_utils directory and find the list of SSDs by typing:

sg_scan

2. Once you identify which SSD you want to check, you can then type the following command(where X is the drive letter you wish to check):

sg_logs --page=0x15 pdX

3. Look for the “Accumulated power on minutes”.

[jbod windows sg3_utils]

Sg3_utils for Linux - JBOD mode

1. Installation:

1. Go the download link posted in the table above and download and install the sg3_utils utility

2. Get the sg3_utils installation file Linux version through above link.

3. Untar the installation file.

tar -zxvf sg3_utils-1.45.tgz

4. Go to folder ‘sg3_utils-1.45’.

5. Run below commands in order.

./configure

make

make install

2. Check Drive Firmware Version

1. ‘sdb’ is the device name of target drive.

sg_logs --page=0x33 /dev/sdb

[jbod linux sg3_utils fw]

3. Check Power On Hours

1. Once you identify which SSD you want to check, you can then type the following command(where X is the drive letter you wish to check):

sg_logs --page=0x15 /dev/sdX

2. Look for the “Accumulated power on minutes”.

[jbod linux sg3_utils.jpg]

Sandisk Tool for Windows - JBOD mode

1. Installation:

1. Go the download link posted in the table above and download and install the sg3_utils utility

2. Get the smartctl Windows setup file through above link.

3. Execute the setup file

smartmontools-7.1-1.win32-setup.exe

4. Open a command prompt

5. Go to folder:

C:\Program Files\smartmontools\bin

2. Check Drive Firmware Version

1. Run below command to get the device name of target drive.

smartctl –scan

[jbod windows sandisk fw]

3. Check Power On Hours

1. To identify the drive you want to check, type the command:

scli show all

2. Once you identify which SSD you want to check, you can then type the following command(where X is the drive letter you wish to check):

scli show diskX -S

3. Look for “Total Power on Hours”.

[jbod windows sandisk]

Sandisk Tool for Linux - JBOD mode

1. Installation

1. Go the download link posted in the table above and download and install the sg3_utils utility

2. Get the scli installation file Linux version through above link.

3. Unzip the installation file.

4. Go to folder:

Linux_1.8.0.12/generic/x86_64

5. Run below command to let ‘scli’ be executable.

chmod +x scli

2. Check Drive Firmware Version

1. ‘sdb’ is the device name of target drive.

./scli show /dev/sdb -a

[jbod linux sandisk fw]

3. Check Power On Hours

1. Once you identify which SSD you want to check, you can then type the following command(where X is the drive letter you wish to check):

./scli show /dev/sdX -S

2. Look for “Total Power on Hours”.

[jbod linux sandisk]

SmartMonTools for Linux - RAID mode

1. Installation

1. You will need to install both smartmontools and storcli utility to collect the data.

2. Go the download link posted in the table above and download and install the smartmontools utility

3. Get the smartctl installation file Linux version through above link.

4. Untar the installation file.

tar -zxvf smartmontools-7.1.tar.gz

5. Go to folder:

smartmontools-7.1

6. Run below commands in order.

./configure

make

make install

7. Now go to the download link posted in the table above and download and install the storcli utility.

8. To identify the drive you want to check, go to the storcli directory and type the command:

storcli /c0/eall/sall show

9. Look for the Device ID(DID).  The Device ID will be needed in the future steps.

[raid linux smartmon fw 1]

2. Check Drive Firmware Version

1. ‘148’ in below command is the device ID (DID) of target drive. And ‘sdc’ is its device name.

smartctl -d megaraid,148 -i /dev/sdc

[raid linux smartmon fw 2]

3. Check Power On Hours

1. Once you identify which SSD you want to check, you can then type the following two commands in order to get the output needed (where X is the Device ID you got from step 4��

Note: In order for this to work, you need to make sure and use the ‘megaraid’switch in the command when using a RAID set.  Otherwise it won’t work.

smartctl -d megaraid,N -t short /dev/sdX – Wait 10 seconds before running the second command

smartctl -d megaraid,N -l selftest /dev/sdX

2. Look for the “Lifetime” hours from the 1st line.  That will be the latest record of PoH.

[raid linux smartmon]

Note: SmartMonTools does not work in RAID for ESXi. sg3_utils and Sandisk Tool do not work in RAID for all OSes.