#Disk smart utility Offline#Finally, use the -a option to view the results, which may look like this: SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline Completed without error 00% 17877 - # 2 Extended offline Completed without error 00% 8449 - # 3 Short offline Completed without error 00% 8446 - # 4 Short offline Completed without error 00% 1307 - # 5 Short offline Completed without error 00% 2 - # 6 Extended offline Self-test routine in progress 90% 17877. Next, the long test: this one can take quite a bit longer (about two hours here on a 320GB SATA drive). This usually takes about a minute to perform, and the smartctl output will tell you when you can check the results. The above will first perform a short test of the /dev/sda device. These should be run periodically to do quick, or full, self-tests of the drive: # smartctl -test=short /dev/sda # smartctl -test=long /dev/sda # smartctl -a /dev/sda It also indicates when tests have been performed and what the results of those tests were.įinally, smartctl can be used to initiate long and short tests for the drive. This shows various SMART status information, such as the drive temperature, how many hours it has been powered on, and so forth. Next, the -a option shows the specifics of the SMART attributes and test history. #Disk smart utility serial#For instance: # smartctl -i /dev/sda smartctl version 5.38 Copyright (C) 2002-8 Bruce Allen Home page is = START OF INFORMATION SECTION = Model Family: Seagate Barracuda 7200.10 family Device Model: ST3320620AS Serial Number: 9QF26NGD Firmware Version: 3.AAJ User Capacity: 320,072,933,376 bytes Device is: In smartctl database ATA Version is: 7 ATA Standard is: Exact ATA specification draft version not indicated Local Time is: Sun Mar 7 14:20:18 2010 MST SMART support is: Available - device has SMART capability. In a system with a lot of drives, having this information recorded can assist in knowing which drive device (i.e., /dev/sda) corresponds with which physical drive. With the -i option, you can view the type of drive, its serial number, and so forth. Obtaining information on the drive is useful as well. You can quickly check the overall health of a drive by using: # smartctl -H /dev/sda smartctl version 5.38 Copyright (C) 2002-8 Bruce Allen Home page is = START OF READ SMART DATA SECTION = SMART overall-health self-assessment test result: PASSED The smartctl program also allows for you to view and test SMART attributes of a drive. On a Red Hat Enterprise Linux system, use: # chkconfig smartd on # service smartd start When smartd is configured, make sure to enable the monitoring daemon if it is not already started. There are a number of other options that can be added as well the nf file has examples of these. It also tells smartd that these are ATA devices. The above tells smartd to perform a very silent check and to email the root user if the overall SMART health status fails. To begin, edit /etc/nf and add entries for your drives: /dev/sda -d ata -H -m root /dev/sdb -d ata -H -m root. Using smartd is essential as it can let you know immediately when a SMART attribute fails. This package also provides the smartd daemon which periodically polls the drives to obtain SMART information. This information is invaluable in providing early warning signs of problems with a hard drive.Īll Linux distributions provide the smartmontools package, which contain the smartctl program used to display SMART information from attached drives. Vincent Danen has some tips for using the smartmontools package to obtain important information about the health of your hard drives that could provide early warning signs of problems.Ĭomputer hard drives today come with SMART (Self-Monitoring, Analysis, and Reporting Technology) built-in, which allows you to see the status or overall “health” of a hard drive. Using smartctl to get SMART status information on your hard drives
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |