Skip to content

u/mercenary_sysadmin

In this archive from Sep 2013 to Aug 2023

13
posts
942
comments
4
media
2.4k
score

Top posts

Top comments

Maybe you should consider a more modern filesystem?

One one of my (ZFS) systems, that scenario would have gone more like this:

me@box:~$ rm -rf /poolname/dataset/
me@box:~$ ^C
me@box:~$ echo I am a dumbass.
I am a dumbass.
me@box:~$ sudo zfs list -rt snap poolname/dataset | tail -n 1
poolname/dataset@autosnap_2015-01-12_17:00:01_hourly                             0      -   136K  -
me@box:~$ sudo zfs rollback poolname/dataset@autosnap_2015-01-12_17:00:01_hourly

And all would have been undone.

Failing that, well, that's what the backup server is for.

me@box:~$ sudo syncoid root@backup:poolname/dataset poolname/dataset

... and we're off to the races.

41 points

I blindly went ahead and issued a zpool scrub which resulted in about 9,500 errors, basically corrupting my entire pool. I checked the BIOS event log and find five or so entries of an error saying something like "Single bit error in DIMM-A1" with the first entry dated for the 29th of last month. So apparently a bad DIMM has led the the initial corruption of my pool.

I think you have leapt to a faulty conclusion. You would need literally thousands of double or triple bit errors in order to generate the amount of corruption you're seeing here. Single bit errors are corrected, double-bit errors are detected but cannot be corrected, and triple (or more) bit errors may be detected, but cannot be corrected.

All you are showing is a whopping five single bit errors. So for the RAM to be the culprit here, you'd need to have literally tens of thousands of undetected triple-or-more bit errors, with no more than 5 single-bit errors, no double-bit errors at all, and no triple-bit errors detected at all. TL;DR: yeah, that didn't happen.

Further down that rabbit hole: that's tens of thousands of errors. A DIMM that badly malfunctioning would show up on Memtest86 on the first iteration, and in no uncertain terms (ie, with tens of thousands of errors). Again... yeah, that didn't happen.

But you do have the corruption. So you're looking for a single point of failure that isn't your RAM. What's left? CPU - unlikely; you'd have kernel panics. Motherboard (as in, the actual controller for the RAM) - unlikely; you'd have kernel panics. ZFS itself - unlikely; the entire ZFS on Linux world isn't collectively losing its mind. SATA/SAS cables - unlikely; failures occurred on all drives - though if you're using a mini-SFF breakout cable, or if you're using a single backplane that all drives plug into, that could be a potential SPOF.

What's left? SATA/SAS controller. Ding ding ding ding.

Next step: pull the disks, try to import the pool on different hardware. Preferably IMO, in a completely different machine; if that's not possible, definitely plugged into a different SATA/SAS controller. Don't reuse any mini-SFF cables or (if at all possible) hotswap backplanes, either. There's still a fairly good chance that the actual data is still intact or largely intact; the scrub only wrote blocks if it found blocks that PASSED their validation hashes.

26 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.