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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:. V3 |0 K! p: i( \# d8 \8 x
Centos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME5 g% Y; w5 W4 g- l/ {
  2. Raw_Read_Error_Rate
    ; d# H4 d/ t1 ?" e' D
  3. Spin_Up_Time
    . y; b4 L- m+ r4 P4 I( {1 U
  4. Start_Stop_Count5 Y5 g' W9 M3 V6 s" W) {/ E
  5. Reallocated_Sector_Ct  O/ c5 S- p9 m% U" `4 |( F) Q; I
  6. Seek_Error_Rate
    4 p- `6 ^1 H* v" M, v7 e7 B
  7. Power_On_Hours9 D  {- O4 n  j
  8. Spin_Retry_Count+ e9 e2 M5 d; M1 V% H9 P; `
  9. Calibration_Retry_Count
    3 ^8 p0 f' h1 M; X1 C2 {
  10. Power_Cycle_Count
    0 n( p% Y5 U0 q* t) U
  11. G-Sense_Error_RatePower-Off_Retract_Count  \+ J2 O9 j% ~: f5 W3 K
  12. Load_Cycle_Count
    + G! }7 x6 B# p; ^6 Q( }
  13. Temperature_Celsius  C& [5 U0 O& x4 K
  14. Reallocated_Event_Count! ?0 D+ r2 u4 s5 a2 q. M; `# k
  15. Current_Pending_Sector
    , r4 t7 ?! ?( ~
  16. Offline_Uncorrectable
    3 l% F1 L9 V3 p& j  j  U. {
  17. UDMA_CRC_Error_Count
    # y4 ~. C% a4 N0 z
  18. Multi_Zone_Error_Rate# |; @( N5 `  C! ]
复制代码
  1. Power_On_Hours:是硬盘使用的总时间, J  ~0 L& f4 y# j$ ]
  2. Load_Cycle_Count:是加载循环计数% T9 _2 \9 C+ G+ W
  3. Temperature_Celsius:硬盘的英文温度: T. o3 `* m' f, c; y( h# Y
  4. 直接输入下列命令,查询你所关心的:
    * n4 i% S& c% [. |
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码

: n& W% d) A* I
6 p/ @6 K9 ~9 ]" j4 x, t) i
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-8-7 04:41 , Processed in 0.006060 second(s), 6 queries , Redis On.

Powered by Discuz!

© 2010.

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