LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-23-2009, 07:21 PM   #1
felixk
Member
 
Registered: Jul 2008
Posts: 60

Rep: Reputation: 15
Using smartd to check health of hard-drives?


My OS is configured to use <smartd|smartctl> to check the health of both of my hard-drives; one drive(/dev/hdb) is mounted and used routinely. The second drive (/dev/hda) once had a problem - which has been rectified by reformatting. It is now only mounted when being used for storing backups.

However, "smartd" dutifully checks its health every 30 minutes and reports the presence of an unreadable HD sector - despite the fact that this is no longer the case.

Full details are below.

1. smartd checks:

Sep 24 08:16:41 carrot smartd[2717]: Device: /dev/hda, 41 Currently unreadable (pending) sectors
Sep 24 08:16:41 carrot smartd[2717]: Device: /dev/hda, 41 Offline uncorrectable sectors
Sep 24 08:46:40 carrot smartd[2717]: Device: /dev/hda, 41 Currently unreadable (pending) sectors
Sep 24 08:46:40 carrot smartd[2717]: Device: /dev/hda, 41 Offline uncorrectable sectors

2. smartctl test:

[root@carrot felixk]# smartctl -H /dev/hda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

While the problem is just an irritation, any advice on how to get rid of the misleading messages will be gratefully received.

Felix
 
Old 09-23-2009, 07:35 PM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by felixk View Post
My OS is configured to use <smartd|smartctl> to check the health of both of my hard-drives; one drive(/dev/hdb) is mounted and used routinely. The second drive (/dev/hda) once had a problem - which has been rectified by reformatting. It is now only mounted when being used for storing backups.

However, "smartd" dutifully checks its health every 30 minutes and reports the presence of an unreadable HD sector - despite the fact that this is no longer the case.

While the problem is just an irritation, any advice on how to get rid of the misleading messages will be gratefully received.

Felix
If it were no longer the case, the message would not be printed. Look into:

Code:
$ man badblocks
Code:
$ man e2fsck
 
Old 09-23-2009, 10:31 PM   #3
felixk
Member
 
Registered: Jul 2008
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by lutusp View Post
If it were no longer the case, the message would not be printed. Look into:

Code:
$ man badblocks
Code:
$ man e2fsck
I <hope|think> the penny has dropped.

My backup hard drive :

- still has "bad blocks/sectors" (i.e. reformatting made no
difference); and
- this does not prevent it from being considered "healthy" by smartctl.

Thank you for the prompt response and helpful advice.

Felix
 
Old 09-24-2009, 03:52 AM   #4
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by felixk View Post
I <hope|think> the penny has dropped.

My backup hard drive :

- still has "bad blocks/sectors" (i.e. reformatting made no
difference); and
- this does not prevent it from being considered "healthy" by smartctl.

Thank you for the prompt response and helpful advice.

Felix
But reformatting cannot solve the problem. The only way to solve the problem is to directly address it using "badblocks" and "e2fsck".

Code:
$ man badblocks
Code:
$ man e2fsck
 
Old 09-25-2009, 07:18 PM   #5
felixk
Member
 
Registered: Jul 2008
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by lutusp View Post
But reformatting cannot solve the problem. The only way to solve the problem is to directly address it using "badblocks" and "e2fsck".

Code:
$ man badblocks
Code:
$ man e2fsck
Unfortunately, it is not that simple.

I use the "xfs file system" and not the <e2fs|e3fs> system.

I do have access to "/sbin/fsck.xfs"; but this merely confirms what I already know - that I have a damaged <block|sector>.

And, based on <warnings|advice> in "man badblocks" (to use the badblocks option as part of a reformat) I am reluctant to experiment with the badblocks command (since mkfs.xfs does not provide a "badblocks" option).

Again, thank you for the continuing intewrest in my problem.

Felix
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
check the health of a drive? genmaicha Linux - General 3 08-28-2009 05:57 PM
LXer: Know when your drives are failing, with smartd LXer Syndicated Linux News 0 12-09-2008 06:00 AM
Monitoring Hardware Health: lm_sensors, smartd & apcupsd njdube Linux - General 2 06-07-2007 07:03 PM
Health Check / Server Completion Check Software? tells Linux - Enterprise 0 04-20-2006 11:03 AM
Sparc5, no peripherals, health-check? Tinkster Solaris / OpenSolaris 4 12-05-2005 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration