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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:# X5 q1 y) s2 b0 b
Centos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME
    / Z0 j) C6 R9 t' f+ Z( I& o, w
  2. Raw_Read_Error_Rate
    ' Z1 V* U$ T7 {
  3. Spin_Up_Time) c* j  T+ q3 z" U1 K6 o
  4. Start_Stop_Count
    2 G+ i# V3 W2 w4 M, L
  5. Reallocated_Sector_Ct
    2 \3 n; G$ b+ G. h/ P: R6 }9 w3 W
  6. Seek_Error_Rate
    3 ~# Z* u- s, W2 G
  7. Power_On_Hours# z' r: L; A/ F" y+ F" V
  8. Spin_Retry_Count, @5 S- o% e1 t
  9. Calibration_Retry_Count
    9 @9 H; H* Z0 ~$ P1 p9 i% `1 O
  10. Power_Cycle_Count
    4 B" R9 j4 L+ s3 [6 m  U6 O6 f) e2 p
  11. G-Sense_Error_RatePower-Off_Retract_Count
    0 `) c! R9 ^& K0 d8 v
  12. Load_Cycle_Count! Z0 _% Z, i  Q8 x: Q# J
  13. Temperature_Celsius/ _: S: t3 r- w0 a( t7 b
  14. Reallocated_Event_Count7 x/ }! q1 ~2 y) p1 \
  15. Current_Pending_Sector
    ' o2 d; M& S! u
  16. Offline_Uncorrectable
    : e6 \+ [: w8 z, V
  17. UDMA_CRC_Error_Count' F- ~( Q* T7 k3 n
  18. Multi_Zone_Error_Rate
    / w3 C3 ?  F- W
复制代码
  1. Power_On_Hours:是硬盘使用的总时间7 U- I5 R' _- L+ u% ?1 K
  2. Load_Cycle_Count:是加载循环计数1 s  u" G- i4 O6 H
  3. Temperature_Celsius:硬盘的英文温度
    - p0 L! Z1 j. j) J/ f) C; J5 ?0 ?
  4. 直接输入下列命令,查询你所关心的:
    7 v5 q7 V/ Y, q% P/ t! e7 M) d0 X
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
% I+ h9 e, I9 H: b. C

) D6 j9 y' O7 P& h' ?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-5-13 15:36 , Processed in 0.024366 second(s), 15 queries .

Powered by Discuz!

© 2010-2023.

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