Diferencia entre revisiones de «S.M.A.R.T SSD en ESXi»
Línea 19: | Línea 19: | ||
'''/opt/smartmontools/smartctl -d [Device Type] --all /dev/disks/[DISK]''' | '''/opt/smartmontools/smartctl -d [Device Type] --all /dev/disks/[DISK]''' | ||
==Listar discos== | ==Listar discos== | ||
+ | [[Archivo:Dev-disk.png]] | ||
esxcli storage core device list | esxcli storage core device list | ||
− | + | <syntaxhighlight lang="bash"> | |
+ | naa.600508b1001c64f41a4414b42c604835 | ||
+ | Display Name: Local HP Disk (naa.600508b1001c64f41a4414b42c604835) | ||
+ | Has Settable Display Name: true | ||
+ | Size: 476908 | ||
+ | Device Type: Direct-Access | ||
+ | Multipath Plugin: NMP | ||
+ | Devfs Path: /vmfs/devices/disks/naa.600508b1001c64f41a4414b42c604835 | ||
+ | Vendor: HP | ||
+ | Model: LOGICAL VOLUME | ||
+ | Revision: 3.66 | ||
+ | SCSI Level: 5 | ||
+ | Is Pseudo: false | ||
+ | Status: on | ||
+ | Is RDM Capable: true | ||
+ | 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.0200050000600508b1001c64f41a4414b42c6048354c4f47494341 | ||
+ | Is Shared Clusterwide: false | ||
+ | Is Local SAS Device: true | ||
+ | Is SAS: true | ||
+ | Is USB: false | ||
+ | Is Boot USB Device: false | ||
+ | Is Boot Device: false | ||
+ | Device Max Queue Depth: 1024 | ||
+ | No of outstanding IOs with competing worlds: 32 | ||
+ | Drive Type: logical | ||
+ | RAID Level: RAID0 | ||
+ | Number of Physical Drives: 1 | ||
+ | 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 | ||
+ | </syntaxhighlight> |
Revisión del 10:55 28 oct 2020
Prácticamente he ido sustituyendo los disco duros mecánicos por SSD, en todos los host que administro, el problema que me he encontrado es poder detectar algún posible fallo, debido a que los SSD tienen una vida util dependiendo de las celdas que se pueden sobrescribir 1000 en los SSD TLC o 100.000 en los SLC.
Por eso este hecho me parece interesante poder controlar estos datos de escritura de las celdas, desafortunadamente no hay opción de controlar estos valores desde VMware Host Client, pero podemos usara la herramienta smartmontools que nos permite poder acceder a los datos de control de S.M.A.R.T
El valor que tendremos que tener en cuenta es 'TBW (Total Bytes Written) este valor describe cuantos Bytes se pueden escribir en todo el dispositivo, hasta que espire la garantía, el valor lo podremos leer en S.M.A.R.T en el campo Total_LBAs_Written
Instalar smartctl
copiar el archivo vib en /tmp/
Aceptar instalación de CommunitySupported
esxcli software acceptance set --level=CommunitySupported
Instalar
esxcli software vib install -v /tmp/smartctl-6.6-4321.x86_64.vib
/opt/smartmontools/smartctl -d [Device Type] --all /dev/disks/[DISK]
Listar discos
esxcli storage core device list
naa.600508b1001c64f41a4414b42c604835 Display Name: Local HP Disk (naa.600508b1001c64f41a4414b42c604835) Has Settable Display Name: true Size: 476908 Device Type: Direct-Access Multipath Plugin: NMP Devfs Path: /vmfs/devices/disks/naa.600508b1001c64f41a4414b42c604835 Vendor: HP Model: LOGICAL VOLUME Revision: 3.66 SCSI Level: 5 Is Pseudo: false Status: on Is RDM Capable: true 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.0200050000600508b1001c64f41a4414b42c6048354c4f47494341 Is Shared Clusterwide: false Is Local SAS Device: true Is SAS: true Is USB: false Is Boot USB Device: false Is Boot Device: false Device Max Queue Depth: 1024 No of outstanding IOs with competing worlds: 32 Drive Type: logical RAID Level: RAID0 Number of Physical Drives: 1 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