Monitoring Hard Disks with SMART
- « first
- ‹ previous
- 1
- 2
- 3
- 4
Today’s modular x86 servers are compute-centric, designed as a least common denominator to support a wide range of IT workloads. Those generic, virtualized IT workloads have much different resource optimization requirements than hyperscale and cloud applications. They have resulted in a “one size fits all” enterprise IT architecture that is not optimized for a specific set of IT workloads, and especially not emerging hyperscale workloads, such as web applications, big data, and object storage. In this report, you will learn how shifting the focus from traditional compute-centric IT architectures to an innovative disaggregated fabric-based architecture can optimize and scale your data center.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
Free Webinar: Linux Backup and Recovery
Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.
In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
| Non-Linux FOSS: Seashore | May 10, 2013 |
| Trying to Tame the Tablet | May 08, 2013 |
| Dart: a New Web Programming Experience | May 07, 2013 |
- RSS Feeds
- New Products
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Drupal Is a Framework: Why Everyone Needs to Understand This
- Home, My Backup Data Center
- A Topic for Discussion - Open Source Feature-Richness?
- Dart: a New Web Programming Experience
- Developer Poll
- What's the tweeting protocol?
- Trying to Tame the Tablet
- Reply to comment | Linux Journal
1 hour 8 min ago - great post
1 hour 42 min ago - Google Docs
2 hours 5 min ago - Reply to comment | Linux Journal
6 hours 53 min ago - Reply to comment | Linux Journal
7 hours 40 min ago - Web Hosting IQ
9 hours 14 min ago - Thanks for taking the time to
10 hours 51 min ago - Linux is good
12 hours 48 min ago - Reply to comment | Linux Journal
13 hours 6 min ago - Web Hosting IQ
13 hours 36 min ago




Comments
re:S.M.A.R.T
Isn't the BIOS just activating the function and then some other piece of software has to do the checking. I am not sure, if the BIOS is giving you an alert, when harddisks are getting damaged.
The BIOS does alert you if
The BIOS does alert you if the drive is about to fail. However, if the machine is rarely restarted, we still need the monitoring software of course :-/
re:S.M.A.R.T
Oh yes - thanks a lot for the informaton.
Smart Tool - Active
Dear Mr. Bruce,
we are using the smart tools to test the 2.5" Fugitsu HD on one of embedded cPCI dual P-III board. We used it due to a problem we met - freezed "black screen" after POST (happened during the OS loading). It happened only with XP OS. The "Black screen" lead the user to manualy reset the card and hope it will not happened again in the next power cycle.
The command line used to run the test was smartctl -t long –d ata /dev/hda - the test run 40 minutes ! and fix the problem - but we have no idea what cause the problem and how this tool solve it if it should be only a TEST TOOL.
Can you assist with the following:
A. What tests is it running? read only? writes? does it change the HD controller working parameters?
Can you specifiy locations of the strings written/readden ?or this is random ?
B. Does it change something in the operating system? if it does, then what?
C. Does it change the Disk structure? if yes, how ?
Thank you
Shahar
A: SMART extended self test.
A: SMART extended self test. No it does not change drive parameters.
B. No, it does not change something in the OS.
C. It does not change the disk structure. However as the previous responder says, when the self-test is run, the disk firmware may find and correct some types of problems on the disk surface.
Bruce Allen
As far as I know the given co
As far as I know the given command line runs the diagnostic procedure *embedded* inside the hd firmware so it is to hd manufacturers discretion what is actually done. What may be possible in your case is that there was a bad sector in the disk that couldn't be read most of the times. When you run the procedure it might have happened that the sector could have been read one time and it have been immediately remaped (i.e. its data was moved to the disk spare area and the sector itself marked as unavailable).
Otherwise than that the tool doesn't affect HD state other than smart monitoring enable/disable flag and heath attributes values.
Regards,
DS.
Thanks for the article. Great
Thanks for the article. Great stuff!
Thanks
Thanks for this very useful article!
Maxtor HD: Smart not be enabled
Hello Bruce,
thanks for your great work. I have this Maxtor HD:
=== START OF INFORMATION SECTION ===
Device Model: MAXTOR 4K040H2
Firmware Version: A08.1500
User Capacity: 40,037,760,000 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 5
ATA Standard is: ATA/ATAPI-5 T13 1321D revision 1
SMART support is: Available - device has SMART capability.
SMART support is: Disabled
And I cant enable SMART? I use the HD under Win2000. I have tried:
C:\s\bin>smartctl -s on /dev/hda
smartctl version 5.33 [i386-pc-mingw32] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
Its only a note. The HD works fine and I only want to be informed about the status...
Please try a more recent
Please try a more recent release of smartmontools. There were some teething problems with the initial Windows version, but those have been fixed.
Bruce
Have you checked that it is e
Have you checked that it is enabled in the BIOS?
Usually there is a setting which controls if SMART is enabled or not.
Re: Monitoring Hard Disks with SMART
I have a drive that I can't even get into with fdisk, but I can access mounted file systems. It's temperature is indicating 53 celsius, but there is no max-min. It's in my machine next to another drive, and I'm going to try moving them apart. But any thoughts on fdisk not being able to get into the partition table even? It reads the other drive fine.
Re: Monitoring Hard Disks with SMART
I don't have any idea why fdisk can't provide information. What's the command line to and error message from fdisk?
The temperature min/max isn't provided by all vendors. IBM/Hitachi and Toshiba (recent disks) have this, but many other vendors and older disks either have no temperature information, or (as with your disk) just the current temperature.
Re: Monitoring Hard Disks with SMART
excellent tool, using this now on a possibly faulty hd from our debian server
Re: Monitoring Hard Disks with SMART
Thank you!
Monitoring Hard Disks with SMART
how are the following 2 situations are dealt by SMART
1. If the server needs to be shutdown and the disks have to be intentionally unmounted when SMART is doing its job ? can it be terminated abruptly ?
2. what happens when the SMART is trying to access a disk thats not responding over NFS ?
Re: Monitoring Hard Disks with SMART
Here are the answers to your questions:
(1) You can unmount the disk while SMART activity is taking place, with no harmful effects. In fact you can get all smart data (run smartctl for example, or smartd) on an unmounted disk. This is because SMART operates at the level of the disk hardware, whereas 'mounting' refers to file systems on the disk and is at a much higher level. When you ask 'can it be terminated abruptly?' I assume that you mean, can you power down or unmount a disk which is carrying out SMART operations? The anwer is yes.
(2) This question does not make sense. SMART does not 'access a disk'. A utility such as smartctl or smartd 'accesses a disk'. These utilities can only access a disk connected to the local machine, such as /dev/hda or /dev/sda. These utilities can not access a disk 'over the network': see my response (1) above. Linux only allows you to access FILE SYSTEMS over a network (eg, using NFS), not 'raw disks'.
smartd may spin up the disk
Today I finally found out why hda was always spinning despite a
hdparm -S 241 /dev/hda
command, and no file systems mounted on that disk.
It's the smartd that comes with Fedora Core 1. Whenever smartd checks
the disk, the disk spins up (in my case it's a Seagate ST360020A, but
this seems to be a general problem). Newer versions of smartd have
the -n option that allows suppressing the check for disks that are in
various power-saving modes, but not the version that comes with Fedora
Core 1. The workarounds are: use the newer smartd with the
appropriate option, don't use smartd for this particular disk, or
disable smartd altogether. Being lazy, I chose the latter, and now
hda spins down and stays that way.
Re: smartd may spin up the disk
This makes sense.
As you said, smartd can be told not to spin up non-spinning disk. To implement this for your Fedora system, you need to:
(0) save a copy of smartd.conf:
cp /etc/smartd.conf /etc/smartd.conf.save
(1) download the current stable release (5.30)
(2) install it (over the Fedora smartmontools which are part of kernel-utils):
rpm -ivh --nodeps --force smartmontools-5.30-1.i386.rpm
(3) cp /etc/smartd.conf.save /etc/smartd.conf
(4) add '-n standby' after /dev/hda in smartd.conf
(5) restart smartd:
/etc/rc.d/init.d/smartd restart
Bruce
Re: Monitoring Hard Disks with SMART
I read this article with great interest, then I went and tried it out, and viola! one of my servers reported a problem. With the long diagnostics output in hand, the vendor replaced the disk, no questions. I then deployed this across all my machines, including a lab, plus client machines and bingo! found another one.
As before, the vendor ponied up the replacement disk without any difficulties.
It was a little awkward explaining to the client that I needed to replace the disk BEFORE it died. That's a new concept, one they are not familiar with, to say the least.
I now run the smartctrl demon and feel much better knowing it's keeping tabs on my disks. Prior to this, ignorance was NOT bliss, it was just this nagging feeling lurking in the back of my mind, waiting for a disk failure.
Excellent article! Thanks for bringing this to our attention. This one article alone more than paid for my whole subscription. As is typical of every issue of LJ, I always find several articles I just have to try out. A real 'hands-on' magazine.
-tim
timbornATdeltacfax.com
Re: Monitoring Hard Disks with SMART
Tim,
thanks for your comment - I'm glad this has been useful.
If your disks are failing their self-tests, but still have 'passing' SMART health status, it may just be that they have one or more sectors that are unreadable. Next time this happens, you can probably fix it by forcing the disk to reallocate the sectors. Two ways to do this are:
(1) with a scalpel: see
http://smartmontools.sourceforge.net/BadBlockHowTo.txt
(2) with a hatchet:
dd if=/dev/zero of=/dev/hda bs=4k
but note that this will DESTROY ALL INFORMATION ON THE DISK!
(sorry for shouting.)
This may be easier than returning the disk to the vendor for replacement.
Bruce
Re: Monitoring Hard Disks with SMART
A good monitoring for disk, and it will be more powerful when smartmontools on one server can read all disk health on a network. :)
Re: Monitoring Hard Disks with SMART
Well, indeed you can get that functionality by way of redirecting syslog output on each host to a master server.
Cheers,
Pancho
Re: Monitoring Hard Disks with SMART
I'm not sure if your comment about smartmontools on one server reading the health of all disks on a network is serious or not! It might be possible if
the raw disk SMART data were made available in some exportable file-system like way, but I doubt that this will happen anytime soon. (I did post a patch to
the linux kernel mailing list for this purpose, but didn't get any response.)
Bruce
Re: Monitoring Hard Disks with SMART
Of course i'm serious, in my mind if smartmontools can work just like snmpd with its fork, it would be better.
--Aria--
Re: Monitoring Hard Disks with SMART
I picked up a copy of the Linux Journal in an airport in Nashville, TN. I was impressed! This is a great publication.
Few weeks later, and I'm wondering, "how's it that all my values are over the threshold..." and I remembered the article.
But I had lost my magazine! I was distressed! Then I found this web site, and lo and behold! The article was printed here too! Thats great! Not all publications will do such a nice service.
Thanks for a great article, and for posting it on the net!
Re: Monitoring Hard Disks with SMART
I'm also happy that Linux Journal allowed me to post a copy of the article here! -- Bruce
Re: Monitoring Hard Disks with SMART
Thank you for turning me on to and maintaining a very useful tool. This was my first introduction to SMART and smartmontools.
Re: Monitoring Hard Disks with SMART
You're welcome!
Re: Monitoring Hard Disks with SMART
Thanks for a great article explaining something I'd always been suspicious of until I started having an HD fail this morning.
Would be interesting to see the smartd tools integrated in with the DBUS work.
http://www.freedesktop.org/software/dbus
Re: Monitoring Hard Disks with SMART
how are the following 2 situations are dealt by SMART
1. If the server needs to be shutdown and the disks have to be intentionally unmounted when SMART is doing its job ? can it be terminated abruptly ?
2. what happens when the SMART is trying to access a disk thats not responding over NFS ?
Re: Monitoring Hard Disks with SMART
Could you please be a more explicit about how you'd like
for smartmontools to integrate with DBUS?
It would also be helpful if you could send these suggestions to the
smartmontools support mailing list: smartmontools-support@lists.sourceforge.net
Additonal information about the mailing list is at:
http://lists.sourceforge.net/lists/listinfo/smartmontools-support
Sourceforge.net is not access
Sourceforge.net is not accessible. How can I get source for SMART tools ?
smartmontools
On my system, Mandriva 2006, it is part of this package:
smartmontools
You can try to find any similar precompiled package for your system.