LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 11-08-2022, 08:53 PM   #1
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Calculating TBW for an SSD in ESXi


Trying to see how much life is left in my SSD, under ESXi.

Am I right to use 'blocks written' x 'logical block size' to get bytes written?

Code:
[root@vmware-esxi:~] esxcli storage core device capacity list
Device                                                                    Physical Blocksize  Logical Blocksize  Logical Block Count         Size  Format Type
------------------------------------------------------------------------  ------------------  -----------------  -------------------  -----------  -----------
t10.NVMe____Samsung_SSD_970_PRO_1TB_________________XXXXXXXXXXXXXXXX                    4096                512           2000409264   976762 MiB  512e

[root@vmware-esxi:~] esxcli storage core device stats get
t10.NVMe____Samsung_SSD_970_PRO_1TB_________________XXXXXXXXXXXXXXXX
   Device: t10.NVMe____Samsung_SSD_970_PRO_1TB_________________XXXXXXXXXXXXXXXX
   Successful Commands: 92984701
   Blocks Read: 1682127948
   Blocks Written: 2348390012
   Read Operations: 27059624
   Write Operations: 65067428
   Reserve Operations: 5598
   Reservation Conflicts: 0
   Failed Commands: 7204
   Failed Blocks Read: 0
   Failed Blocks Written: 0
   Failed Read Operations: 0
   Failed Write Operations: 4
   Failed Reserve Operations: 0
[root@vmware-esxi:~]
In other words:

2348390012 x 512 = 1202375686144 bytes written?

and then

(1202375686144 / (1024^4)) = 1.094 TBW?

This is after 3 years in a small business setting... I'm a bit confused.

Last edited by rkelsen; 11-08-2022 at 10:16 PM.
 
Old 11-10-2022, 05:52 AM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463

Original Poster
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
In the end, I used a live Linux distro with smartmontools' smartctl to find the required information.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
To get the total max TBW of 8 GB nand in sshd BudiKusasi Linux - Hardware 6 02-14-2021 06:40 PM
TBW for flash drive waddles Linux - Hardware 3 03-11-2013 10:49 AM
LXer: Upgrade/Migrate VMware ESX/ESXi 4.x To ESXi 5.0 LXer Syndicated Linux News 0 09-11-2011 03:10 PM
RAID card for vmware esxi, and some other esxi questions JustinHoMi Linux - Enterprise 1 06-04-2010 03:57 PM
Trendnet TEW-226PC and TBW-101UB drivers kpreddy Linux - Wireless Networking 1 12-19-2003 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration