飞飞CMS官方论坛

FeiFeiCms官方发布_【电视TV版系统】 通过这个窗口,关注跟踪我们的研发进展 飞飞CMS开发手册 - 飞飞官方论坛说明

FeiFeiCms官方发布_【商业版_V16系统】 功能强大,终身免费升级,建站不二选择 模板展示中心 - 飞飞免费版与收费版介绍

飞飞cms影视系统_免费版_8.1正式版【官方下载】 程序100%开源,视频管理系统PHP版,5分钟快速建站 销售QQ:1306428988 - TG:https://t.me/feifeicms520

0 2637

linux系统硬盘检测健康状态

收藏 跳转到指定楼层
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

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Powered by  © 2006-2024 飞飞网络科技有限公司,官方销售QQ:1306428988 或加Telegram: feifeicms520

手机版  |  飞飞CMS官方论坛 ( 鄂ICP备14015395号-2

立刻咨询
快速回复 返回顶部 返回列表