| smartctl -i /dev/sda 
 正常情况下显示如下=== START OF INFORMATION SECTION === Model Family: Crucial/Micron BX/MX1/2/3/500, M5/600, 1100 SSDs
 Device Model: CT1000MX500SSD1
 Serial Number: 2303E69F5E44
 LU WWN Device Id: 5 00a075 1e69f5e44
 Firmware Version: M3CR045
 User Capacity: 1,000,204,886,016 bytes [1.00 TB]
 Sector Sizes: 512 bytes logical, 4096 bytes physical
 Rotation Rate: Solid State Device
 Form Factor: 2.5 inches
 Device is: In smartctl database [for details use: -P show]
 ATA Version is: ACS-3 T13/2161-D revision 5
 SATA Version is: SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
 Local Time is: Thu Jun 22 14:07:20 2023 CST
 SMART support is: Available - device has SMART capability.
 SMART support is: Enabled
 
 在这里,如果看到SMART support is: Enabled,则表示SMART已启用 如果未启用我们需要执行如下命令,启动SMART:smartctl –smart=on –offlineauto=on –saveauto=on /dev/sda
 复制代码如下:
 
 再次查看如果变成SMART support is: Enabled,则表示SMART已开启 查看硬盘当前的健康状态使用如下命令
 smartctl -H /dev/sda
 
 显示如下=== START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED
 
 请注意result后边的结果:PASSED,这表示硬盘健康状态良好如果这里显示Failure,那么最好立刻给服务器更换硬盘。
 执行如下命令可以看到详细的参数:smartctl -A /dev/sda
 
 显示结果如下=== START OF READ SMART DATA SECTION === SMART Attributes Data Structure revision number: 16
 Vendor Specific SMART Attributes with Thresholds:
 ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate 0x002f 100 100 000 Pre-fail Always - 0
 5 Reallocate_NAND_Blk_Cnt 0x0032 100 100 010 Old_age Always - 0
 9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 5 这里表示磁盘使用时间
 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 11
 171 Program_Fail_Count 0x0032 100 100 000 Old_age Always - 0
 172 Erase_Fail_Count 0x0032 100 100 000 Old_age Always - 0
 173 Ave_Block-Erase_Count 0x0032 100 100 000 Old_age Always - 0
 174 Unexpect_Power_Loss_Ct 0x0032 100 100 000 Old_age Always - 0
 180 Unused_Reserve_NAND_Blk 0x0033 000 000 000 Pre-fail Always - 69
 183 SATA_Interfac_Downshift 0x0032 100 100 000 Old_age Always - 0
 184 Error_Correction_Count 0x0032 100 100 000 Old_age Always - 0
 187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
 194 Temperature_Celsius 0x0022 066 065 000 Old_age Always - 34 (Min/Max 23/35)
 196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
 197 Current_Pending_Sector 0x0032 100 100 000 Old_age Always - 0
 198 Offline_Uncorrectable 0x0030 100 100 000 Old_age Offline - 0
 199 UDMA_CRC_Error_Count 0x0032 100 100 000 Old_age Always - 0
 202 Percent_Lifetime_Remain 0x0030 100 100 001 Old_age Offline - 0
 206 Write_Error_Rate 0x000e 100 100 000 Old_age Always - 0
 210 Success_RAIN_Recov_Cnt 0x0032 100 100 000 Old_age Always - 0
 246 Total_Host_Sector_Write 0x0032 100 100 000 Old_age Always - 33235385
 247 Host_Program_Page_Count 0x0032 100 100 000 Old_age Always - 304465
 248 FTL_Program_Page_Count 0x0032 100 100 000 Old_age Always - 13400
 
 上边列出的参数表中可供进行技术分析和参考,使用下边的命令可以输出完整结果:smartctl -a /dev/sda 
                                                      飞飞cms官方论坛-www.feifeicms.vip |