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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:
! l3 E& o6 M6 F$ {Centos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME
    , `" |5 [0 R4 j9 q& N3 ~5 J& |5 E+ K3 u
  2. Raw_Read_Error_Rate
    4 d) y1 s) y6 z% o# L6 X
  3. Spin_Up_Time
    . `5 j$ j' Z+ @% ?: g* P
  4. Start_Stop_Count1 e' w: m" H8 p" y; T
  5. Reallocated_Sector_Ct
    4 i" g  G5 k( B6 L% ?% d$ [0 P
  6. Seek_Error_Rate* ?0 [! h9 `1 v. {
  7. Power_On_Hours$ I# L' f/ F; |! y: h
  8. Spin_Retry_Count
    1 S* u6 Y" g5 U1 C- _! {6 I
  9. Calibration_Retry_Count
    % B8 Y4 }2 H4 P  N0 K4 J
  10. Power_Cycle_Count
    ! f0 C' s& U* e6 g) M; U
  11. G-Sense_Error_RatePower-Off_Retract_Count
    / p& Y+ x. ?8 J; e: U" r
  12. Load_Cycle_Count
    7 _" k1 U4 T- o2 j
  13. Temperature_Celsius; y0 Z# l2 V, x' j5 K/ ]
  14. Reallocated_Event_Count- Z0 U4 J5 i) u+ e
  15. Current_Pending_Sector3 p+ _! O6 Z1 e- l6 x$ e
  16. Offline_Uncorrectable
    & n2 V9 [8 L$ l8 o) C3 T
  17. UDMA_CRC_Error_Count5 D$ D9 J6 b$ m/ X, ^( x: g
  18. Multi_Zone_Error_Rate8 M8 }8 v2 H4 x! y, ]  q, K
复制代码
  1. Power_On_Hours:是硬盘使用的总时间
    & x2 ^2 W8 p* G0 e; }/ S/ O
  2. Load_Cycle_Count:是加载循环计数' d6 u( R1 c# p- [3 c
  3. Temperature_Celsius:硬盘的英文温度# `& p9 `. F% C- [- s0 t. w
  4. 直接输入下列命令,查询你所关心的:
    $ F1 h3 H3 C  d+ S2 p* B
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码

$ N6 m9 _' W* d0 y- [
% I- |# d; E" f$ j2 }* M  h
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-1-19 14:23 , Processed in 0.006839 second(s), 6 queries , APCu On.

Powered by Discuz!

© 2010-2023.

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