Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

SATA Drive Dying??

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
klees
n00b
n00b
Posts: 41
Joined: Sat Feb 10, 2007 2:39 pm
Location: NJ

SATA Drive Dying??

  • Quote

Post by klees » Fri Jul 27, 2007 12:18 pm

I have two 120G Samsung SP1213C SATA drives and I believe one of them is acting weird. During boot when the modules are loading I now get a scsi_wait_scan loaded message that I don't recall seeing before. Moreover, when I perform a df -h a FAT32 partition I have on the drive takes longer to show up than the other partitions even though the partition is empty. I reformatted the drive and re-partitioned it again and I still get the aforementioned.

Are there any diagnostics/commands I can run to determine whether the drive is behaving weird? I would like to be ready ahead of time if in fact is dying. What about testing the drive's performance? Thanks in advanced.
Top
Rob1n
l33t
l33t
Posts: 714
Joined: Sat Nov 29, 2003 5:16 pm
Location: Cambridge, UK

  • Quote

Post by Rob1n » Fri Jul 27, 2007 12:45 pm

You can try smartmontools - that uses the inbuilt SMART diagnostics which may tell you whether there's any errors - after emerging do:

Code: Select all

smartctl -d ata -a /dev/sda
to get a full report and

Code: Select all

cmartctl -d ata -t long /dev/sda
to start off a full test (results will be show in the full report, or see the manual pages for how to check progress and view only test results).

For testing performance you could use "hdparm -tT /dev/sda" to get a ballpark figure. A proper testing tool like bonnie++ will give you more realistic results though.
Top
klees
n00b
n00b
Posts: 41
Joined: Sat Feb 10, 2007 2:39 pm
Location: NJ

  • Quote

Post by klees » Fri Jul 27, 2007 1:21 pm

Rob1n wrote:You can try smartmontools - that uses the inbuilt SMART diagnostics which may tell you whether there's any errors - after emerging do:

Code: Select all

smartctl -d ata -a /dev/sda
to get a full report and

Code: Select all

cmartctl -d ata -t long /dev/sda
to start off a full test (results will be show in the full report, or see the manual pages for how to check progress and view only test results).

For testing performance you could use "hdparm -tT /dev/sda" to get a ballpark figure. A proper testing tool like bonnie++ will give you more realistic results though.
Rob1n, thank you for the prompt reply. What should I be comparing the numbers to? Basically, once I receive the results how do I know "yes my drive is under performing" or "everything is normal"?
Top
Rob1n
l33t
l33t
Posts: 714
Joined: Sat Nov 29, 2003 5:16 pm
Location: Cambridge, UK

  • Quote

Post by Rob1n » Fri Jul 27, 2007 1:32 pm

Well, if you have two of them then I'd say comparing it to the other one should give you an idea :lol:

On a standard IDE drive I get:
/dev/hda:
Timing cached reads: 1718 MB in 2.00 seconds = 859.79 MB/sec
Timing buffered disk reads: 168 MB in 3.00 seconds = 55.95 MB/sec
The cached reads is affected more by memory and processor speed. The buffered disk reads is a more accurate measure of disk performance. For a standard SATA drive you should get about the same figure (they're nominally slightly faster but I don't think that really shows up), whereas for a SATA-II drive you'd be expecting a bit faster - in fact, I should have one of those hooked up around here somewhere. Ah:
/dev/sdl:
Timing cached reads: 1338 MB in 2.00 seconds = 669.28 MB/sec
Timing buffered disk reads: 204 MB in 3.03 seconds = 67.41 MB/sec
That system's a bit heavier loaded though.
Top
adsmith
Veteran
Veteran
Posts: 1386
Joined: Sun Sep 26, 2004 6:59 pm
Location: NC, USA

  • Quote

Post by adsmith » Fri Jul 27, 2007 1:53 pm

I had a new Seagate SATA drive last year which was giving similar error messages, which at the time I thought were due to hardware failure, but SMART logs were reasonably clean.

It turns out that the SATA drive or controller was not properly dealing with "unreadable block" error messages, and was spewing "OMG IM DYING" messages instead. It was also re-seeking a lot during this, which meant I heard the "click click click" which makes us all cringe.

Anyway, the error messages stopped after marking the badblocks on the filesystem. E.g., e2fsck -c -c /dev/sda1. All is well, just a bit of improper bad block handling in the hardware or driver.
Last edited by adsmith on Fri Jul 27, 2007 1:58 pm, edited 1 time in total.
Top
Carlo
Developer
Developer
User avatar
Posts: 3356
Joined: Mon Aug 12, 2002 10:57 pm

  • Quote

Post by Carlo » Fri Jul 27, 2007 1:55 pm

klees wrote:What should I be comparing the numbers to?
When the self detection notices something is really wrong, you've a value in the WHEN_FAILED column. The Problem is, that the chance is around 50% to have a dead harddisk, without getting such a notice before.
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Top
klees
n00b
n00b
Posts: 41
Joined: Sat Feb 10, 2007 2:39 pm
Location: NJ

  • Quote

Post by klees » Fri Jul 27, 2007 1:58 pm

Good point on comparing the two disks but do filesystems play a role? My first drive is my Windows XP drive which is NTFS (RO). Will there be a difference?
Top
Rob1n
l33t
l33t
Posts: 714
Joined: Sat Nov 29, 2003 5:16 pm
Location: Cambridge, UK

  • Quote

Post by Rob1n » Fri Jul 27, 2007 2:02 pm

klees wrote:Good point on comparing the two disks but do filesystems play a role? My first drive is my Windows XP drive which is NTFS (RO). Will there be a difference?
Not in the hdparm results, no - it works on the raw disk (doing read-only tests) rather than on a mounted partition.
Top
klees
n00b
n00b
Posts: 41
Joined: Sat Feb 10, 2007 2:39 pm
Location: NJ

  • Quote

Post by klees » Mon Jul 30, 2007 12:03 am

Rob1n wrote:
klees wrote:Good point on comparing the two disks but do filesystems play a role? My first drive is my Windows XP drive which is NTFS (RO). Will there be a difference?
Not in the hdparm results, no - it works on the raw disk (doing read-only tests) rather than on a mounted partition.
Below are the results from hdparm:

Code: Select all

# hdparm -tT /dev/sda /dev/sdb

/dev/sda:
 Timing cached reads:   900 MB in  2.00 seconds = 449.99 MB/sec
 Timing buffered disk reads:  160 MB in  3.02 seconds =  52.97 MB/sec

/dev/sdb:
 Timing cached reads:   898 MB in  2.00 seconds = 448.35 MB/sec
 Timing buffered disk reads:  174 MB in  3.03 seconds =  57.49 MB/sec
Moreover, I ran a Samsung specific test on both drives and not a single error was found (this includes deep scanning). So now I'm wondering whether a recent update (maybe genkernel?) is causing the scsi_wait_scan message during boot as well as 'df -h' slowing down when reading the FAT32 partition. Anymore ideas?
Top
klees
n00b
n00b
Posts: 41
Joined: Sat Feb 10, 2007 2:39 pm
Location: NJ

  • Quote

Post by klees » Mon Jul 30, 2007 12:12 am

Low and behold, it seems to be related to a latest update and I believe the latest genkernel update is introducing these issues. The reason for this is, I start on an older kernel 2.6.21.6 and I get no scsi_wait_scan plus no slowdowns on any commands. I also see that the scsi_wait_scan module is not loaded on the 2.6.21.6 kernel whereas in the 2.6.22.1 (built recently) it does load. However, I do not have the SCSI_SCAN_ASYNC option enabled in the kernel yet scsi_wait_scan module loads in the 2.6.22.1 kernel. Does this make sense (I'm still a noob)?

I notice any kernel I built with the latest genkernel has scsi_wait_scan module loaded at boot. Is this a bug?
Top
klees
n00b
n00b
Posts: 41
Joined: Sat Feb 10, 2007 2:39 pm
Location: NJ

  • Quote

Post by klees » Wed Aug 01, 2007 3:22 am

Ideas?
Top
Post Reply

11 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic