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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:# E5 S" l" u4 i/ f; G% ]7 i" Q, C
Centos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME+ p, G: @  y* I
  2. Raw_Read_Error_Rate
    ! s6 m. s3 |- g
  3. Spin_Up_Time; C, s$ y, Z5 s; U: r' k) F
  4. Start_Stop_Count: \! I. g# ^" k: f% Z
  5. Reallocated_Sector_Ct( z  h( h- T9 }3 T( h
  6. Seek_Error_Rate& J, W' D8 [; _2 O& T+ p
  7. Power_On_Hours. j4 U( I# C3 {
  8. Spin_Retry_Count; F% }# E4 D, `9 |4 ]' Z: N9 @
  9. Calibration_Retry_Count' H' A* [" d# ]3 g, F% f5 N
  10. Power_Cycle_Count
    + O# Z% f) J6 Y1 c) Z% l
  11. G-Sense_Error_RatePower-Off_Retract_Count
    1 G& V4 U) L/ o0 J
  12. Load_Cycle_Count
    6 P5 n! ^$ c0 b5 j' b9 V6 h1 c
  13. Temperature_Celsius
    ) u0 z  i  q( B$ h0 C
  14. Reallocated_Event_Count
    ' U( y1 K7 j' I# h+ h& U
  15. Current_Pending_Sector  N. q  D0 @0 A  i+ T1 v
  16. Offline_Uncorrectable4 o$ j' D  i  s) D4 ^! j
  17. UDMA_CRC_Error_Count
    , ]& K3 R8 l! ^" N
  18. Multi_Zone_Error_Rate$ x, B" q- o, ~, L# f
复制代码
  1. Power_On_Hours:是硬盘使用的总时间: j: p, E6 j, c. Q- p( ?+ w
  2. Load_Cycle_Count:是加载循环计数
    * u$ g/ w. e8 r+ d' t
  3. Temperature_Celsius:硬盘的英文温度
    . q4 h1 Y2 l2 p% ~
  4. 直接输入下列命令,查询你所关心的:, B" H% I3 c0 q# N+ Z
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
* O" B- S2 G( _9 S+ ?: m

/ L& Z9 D0 M3 I: ]  h6 l( _2 N
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-7-12 02:23 , Processed in 0.011206 second(s), 7 queries , APCu On.

Powered by Discuz!

© 2010-2023.

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