CentOS下使用smartmontools查看硬碟使用時間

來源:互聯網
上載者:User

CentOS下使用smartmontools查看硬碟使用時間

首先安裝:

[python]view plaincopy
  1. [arm@acer~]$sudoyum-yinstallsmartmontools

執行:

[python]view plaincopy
  1. [arm@acer~]$sudosmartctl-A/dev/sda

可以看到如下結果:

[python]view plaincopy
  1. smartctl5.432012-06-30r3573[i686-linux-2.6.32-358.23.2.el6.i686](localbuild)
  2. Copyright(C)2002-12byBruceAllen,http://smartmontools.sourceforge.net
  3. ===STARTOFREADSMARTDATASECTION===
  4. SMARTAttributesDataStructurerevisionnumber:16
  5. VendorSpecificSMARTAttributeswithThresholds:
  6. ID#ATTRIBUTE_NAMEFLAGVALUEWORSTTHRESHTYPEUPDATEDWHEN_FAILEDRAW_VALUE
  7. 1Raw_Read_Error_Rate0x002f200200051Pre-failAlways-0
  8. 3Spin_Up_Time0x0027186166021Pre-failAlways-1666
  9. 4Start_Stop_Count0x0032092092000Old_ageAlways-8708
  10. 5Reallocated_Sector_Ct0x0033200200140Pre-failAlways-0
  11. 7Seek_Error_Rate0x002e100253000Old_ageAlways-0
  12. 9Power_On_Hours0x0032092092000Old_ageAlways-6137
  13. 10Spin_Retry_Count0x0032100100051Old_ageAlways-0
  14. 11Calibration_Retry_Count0x0032100100000Old_ageAlways-0
  15. 12Power_Cycle_Count0x0032098098000Old_ageAlways-2652
  16. 191G-Sense_Error_Rate0x0032001001000Old_ageAlways-958
  17. 192Power-Off_Retract_Count0x0032200200000Old_ageAlways-111
  18. 193Load_Cycle_Count0x0032099099000Old_ageAlways-304147
  19. 194Temperature_Celsius0x0022106095000Old_ageAlways-41
  20. 196Reallocated_Event_Count0x0032200200000Old_ageAlways-0
  21. 197Current_Pending_Sector0x0032200200000Old_ageAlways-0
  22. 198Offline_Uncorrectable0x0030200200000Old_ageOffline-0
  23. 199UDMA_CRC_Error_Count0x0032200200000Old_ageAlways-0
  24. 200Multi_Zone_Error_Rate0x0008200200051

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.