storcli64和smartctl定位硬盘的故障信息 定位硬盘盘位和盘符的方法

https://www.cnblogs.com/wangl-blog/archive/2019/05/09/10839635.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Linux 系统中,可以使用以下命令来定位硬盘在服务器位置: ``` sudo smartctl -i /dev/sdX ``` 其中 `/dev/sdX` 是要定位硬盘设备号,例如 `/dev/sda`、`/dev/sdb` 等。 执行该命令后,会输出硬盘的详细信息,其中包括硬盘的序列号、固件版本、容量等信息。如果硬盘支持 SGPIO 或 SES 协议,还会输出硬盘所在的物理位置信息,包括槽位编号、通道编号、端口编号等。例如: ``` === START OF INFORMATION SECTION === Model Family: Seagate IronWolf Device Model: ST8000VN004-2M2104 Serial Number: ZAD0F5HB LU WWN Device Id: 5 000c50 0b2f90857 Firmware Version: SC60 User Capacity: 8,001,563,222,016 bytes [8.00 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: 7200 rpm Form Factor: 3.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.2, 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Sat Nov 27 14:16:28 2021 CST SMART support is: Available - device has SMART capability. SMART support is: Enabled ... Vendor Specific SMART Attributes with Thresholds: ... ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE ... 194 Temperature_Celsius 0x0022 064 045 000 Old_age Always - 27 (Min/Max 15/55) ... SMART Error Log Version: 1 No Errors Logged SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Extended offline Completed without error 00% 11117 - # 2 Short offline Completed without error 00% 11116 - # 3 Short offline Completed without error 00% 11115 - ... SMART Selective self-test log data structure revision number 1 SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS 1 0 0 Not_testing 2 0 0 Not_testing 3 0 0 Not_testing 4 0 0 Not_testing 5 0 0 Not_testing Selective self-test flags (0x0): After scanning selected spans, do NOT read-scan remainder of disk. If Selective self-test is pending on power-up, resume after 0 minute delay. ... Exit status: 0 ``` 其中,`Vendor Specific SMART Attributes with Thresholds` 部分列出了硬盘SMART 属性,包括温度、寿命、错误等信息。`ID# ATTRIBUTE_NAME` 列表中的 `194 Temperature_Celsius` 属性表示硬盘温度,可以根据其值来判断硬盘是否过热。 而 `SMART Self-test log structure` 和 `SMART Selective self-test log data structure` 部分列出了硬盘的自检信息。如果硬盘出现故障,这些信息可以帮助诊断问题。 需要注意的是,不是所有的硬盘都支持 SGPIO 或 SES 协议,因此有些硬盘可能无法输出物理位置信息。在使用该命令定位硬盘时,需要根据硬盘型号和服务器硬件设计来确定。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值