稳定互联,中美互联,站长交流,虚拟主机,香港主机,美国主机,虚拟空间,免费空间,免费VPS,免费域名

 找回密码
 立即注册
查看: 2349|回复: 0

[经验] linux系统下查看独立服务器硬盘使用时间

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:+ u1 M. j5 }8 f$ f% Z% ]) u
Centos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME1 h# c+ ]% x" b+ @7 ^3 U' z; e: F4 k
  2. Raw_Read_Error_Rate( x  Q" X: e( w/ V7 ?9 y
  3. Spin_Up_Time
    ' R0 T+ D, w0 A/ d
  4. Start_Stop_Count1 M5 E, n; X$ b4 g  a
  5. Reallocated_Sector_Ct- c( M2 \% ^$ k# I; T: p' C
  6. Seek_Error_Rate; u, ~) e  @6 `( s5 u0 i/ D- A
  7. Power_On_Hours
    * }3 @1 m9 |( V. d# ^( m
  8. Spin_Retry_Count. n0 D7 b# E$ o; w
  9. Calibration_Retry_Count& n: e/ s* S  k% v6 |( b* q
  10. Power_Cycle_Count9 s) s% s+ t" q+ M, c7 q- {6 t
  11. G-Sense_Error_RatePower-Off_Retract_Count7 @# d7 k  a  e
  12. Load_Cycle_Count
    9 f, U9 x) Q& A# a$ t
  13. Temperature_Celsius
    8 [6 @4 V6 j+ W( j) V
  14. Reallocated_Event_Count4 j' y) D4 D+ J. f/ Y! E; G5 h3 `
  15. Current_Pending_Sector; p4 z8 |: n( z" ?& ~0 C% X
  16. Offline_Uncorrectable9 d' A: _2 G5 o$ H' d/ T
  17. UDMA_CRC_Error_Count7 M0 m6 f6 n0 L" x. w/ p- b
  18. Multi_Zone_Error_Rate
    0 c" ~& _7 v( m+ x
复制代码
  1. Power_On_Hours:是硬盘使用的总时间
    7 Q- I1 b9 }; L  Q9 }3 Z
  2. Load_Cycle_Count:是加载循环计数
    $ \6 x: ^( M+ ~4 h6 Z0 Q" x- d/ T
  3. Temperature_Celsius:硬盘的英文温度0 L" `! t' r7 f4 L  M6 b# ?
  4. 直接输入下列命令,查询你所关心的:1 P6 _6 s. i* \1 l. {% M- v" Q
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码

/ ?( g2 r, y+ v& [
7 h; R& e  Z! S4 J5 [8 K' X
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|WdidcNet ( 苏ICP备17005075号-1 )

GMT+8, 2025-7-26 07:41 , Processed in 0.030606 second(s), 7 queries , APCu On.

Powered by Discuz!

© 2010-2023.

快速回复 返回顶部 返回列表