Skip to contentSkip to conversation

Seagate Momentus XT and btrfs corruption

DISCUSSION Adam Ryczkowski 3 participants 3 messages Sep 5, 2012 – Sep 10, 2012 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Welcome,

I experience continuus degradation of btrfs system partition on hybrid 750GB Seagate Momentus XT-2 (ATA ST750LX003-1AC15, rev. SM12). dmesg fills with hundreds of errors like "btrfs csum failed ino 93608 off 425984 csum 2316250426 private 3579463503".

I had simmilar problems with the older model, Seagate Momentus XT bought two years ago, where firmware update didn't solve them (cf. http://superuser.com/questions/313447/seagate-momentus-xt-corrupting-files-linux-and-mac and http://forums.seagate.com/t5/Momentus-XT-Momentus-Momentus/Momentus-XT-corrupting-large-files-Linux/m-p/109008).

Now I want to give Linux another try on this amazingly fast hardrive. Yes - the drive perfectly well under default drivers on Windows XP. I use it everyday and I never lost a single byte under Windows.

What can I do on my part to help you troubleshoot the problem? I guess I might do some sort of tripwiring files to see that their contents actually degrades, but I think it the result is obvious and not very helpful to you.

If you can't help me, please advise me, how to heal the partition - the offline btrfsck (from btrfs-tools 0.19 available on Mint 13) doesn't fix anything here.

Is there any way to tell which files are getting broken?

I use Mint 13, 3.2.0-30-generic 64-bit kernel.

Signature · 2 lines
Adam Ryczkowski
Skype:sisteczko <skype:sisteczko>
#1 lore raw

Since btrfs is still under heavy and constant development, it is recommended to run either the latest kernel release (3.5) or even better the latest rc (3.6-rc4), if you could try running one of these and see if the issue has allready been fixed, or is still an outstanding issue.

Ronnie

#2 lore raw
In reply to Adam Ryczkowski
Quoted 14 lines · Adam Ryczkowski

Welcome,

I experience continuus degradation of btrfs system partition on hybrid 750GB Seagate Momentus XT-2 (ATA ST750LX003-1AC15, rev. SM12). dmesg fills with hundreds of errors like "btrfs csum failed ino 93608 off 425984 csum 2316250426 private 3579463503".

I had simmilar problems with the older model, Seagate Momentus XT bought two years ago, where firmware update didn't solve them (cf.
http://superuser.com/questions/313447/seagate-momentus-xt-corrupting-files-linux-and-mac
and
http://forums.seagate.com/t5/Momentus-XT-Momentus-Momentus/Momentus-XT-corrupting-large-files-Linux/m-p/109008).

Quoted 3 lines

Now I want to give Linux another try on this amazingly fast hardrive. Yes - the drive perfectly well under default drivers on Windows XP. I use it everyday and I never lost a single byte under Windows.

Hi,
I was seeing similar corruption issues with an older Linux version on my Momentus XT 500gb, but with recent kernel versions (and the latest drive firmware, I think I have SD28 right now) I haven't seen any issues at all. It's been quite solid. Please make sure that you're running the latest stable kernel, also... I'm currently using 3.5.3.
(I have no idea what the new revision XT-2 is like, I hope they haven't duplicated the firmware issue! It's still so new there doesn't seem to be much feedback.)

Quoted 4 lines

What can I do on my part to help you troubleshoot the problem? I guess I might do some sort of tripwiring files to see that their contents actually degrades, but I think it the result is obvious and not very helpful to you.

I still don't know the actual root cause of the problem; but from the posts on the seagate forums it may have had something to do with the Linux ram disk caching or possibly a drive NCQ bug. Is there any chance you could attempt to reproduce the issue with the latest linux kernel and a freshly formatted filesystem?

Quoted 3 lines

If you can't help me, please advise me, how to heal the partition - the offline btrfsck (from btrfs-tools 0.19 available on Mint 13) doesn't fix anything here.

I'm not currently aware of any fix, other than deleting/rewriting the offending files. Assuming you have backups of your personal data, it might be fastest to just reformat and reinstall. It might be possible to hack btrfs to ignore the checksum errors to allow you to read the corrupted files? I'm not sure.

Quoted 1 line

Is there any way to tell which files are getting broken?

The kernel log message prints an inode number in the log:

Quoted 1 line

"btrfs csum failed ino 93608 off 425984 csum 2316250426 private 3579463503".

You can use the 'find' command to track this inode number to a file (or files, if there are hardlinks involved:

find /btrfs/mountpoint -inum 93608

Quoted 1 line

I use Mint 13, 3.2.0-30-generic 64-bit kernel.

3.2 is old! Keep in mind that given the current state of btrfs development, fixes for btrfs are usually not backported to old stable or longterm kernel releases, although some distributions have done so.

Signature · 1 line
Calvin Walton <[email protected]>