In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use Smartmontools under Linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Smartmontools, an open source disk detection and control tool, happens to be used today when a server wants to check the power-up time of the server's hard disk, so record the installation and simple application of this tool. After all, the brain is not very easy to use when you are old. Slightly messy users will be useful when choosing a server to check the health of the hard drive and related parameters.
Installation under Ubuntu:
Sudo apt-get install smartmontools1
Smartctl command format
Smartctl [options] device1
Common options:
-h: display help information-V: display version information-I: display device identity information (SN manufacturer, etc.)-a: display device full SMART information-x: display device details-H: view hard drive health status 123456
Example:
$sudo smartctl-a / dev/sdasmartctl 5.41 2011-06-09 r3365 [i686-linux-3.2.0-29-generic-pae] (local build) Copyright (C) 2002-11 by Bruce Allen Http://smartmontools.sourceforge.net=== START OF INFORMATION SECTION = Device Model: VBOX HARDDISKSerial Number: VB9cc1f7fa-596d5552Firmware Version: 1.0User Capacity: 42949672960 bytes [42.9 GB] Sector Size: 512 bytes logical/physicalDevice is: Not in smartctl database [for details use:-P showall] ATA Version is: 6ATA Standard is: ATA/ATAPI-6 published, ANSI INCITS 361-2002Local Time is: Fri Jul 24 11:57:33 2015 HKTSMART support is: Unavailable-device lacks SMART capability. The above results are run on a virtual machine, which does not support SMART technology. But we still got the firmware version and SN123456789101112131415161718.
Another machine, which supports SMART technology, turns on SMART messages:
Smartctl 2013-07-26 r3841 [i686-linux-3.16.0-30-generic] (local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org=== START OF INFORMATION SECTION = Model Family: Hitachi/HGST Travelstar Z7K500Device Model: HGST HTS725050A7E630Serial Number: TF0500WJ2G3DDVLU WWN Device Id: 5 000cca 7c5e298f7Firmware Version: GH2OA420User Capacity: 500107862016 bytes [500 GB] Sector Sizes: 512 bytes logical 4096 bytes physicalRotation Rate: 7200 rpmDevice is: In smartctl database [for details use:-P show] ATA Version is: ATA8-ACS T13 Legend 1699 Gb/s revision 6SATA Version is: SATA 2.6,6.0 Gb/s (current: 3.0 Gb/s) Local Time is: Fri Jul 24 12:00:18 2015 CSTSMART support is: Available-device has SMART capability.SMART support is: Enabled above is all the content of the article "how to use Smartmontools under Linux" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.