It is currently Sat Jan 23, 2021 4:12 am

Linux data loss, RAID, SSDs, discard mount option?

If you have something technology-related to share and don't feel like cluttering up General Chat, post it here. Anything is fair game and anything highly technical is preferred.

Linux data loss, RAID, SSDs, discard mount option?

Postby Zancarius » Thu May 21, 2015 1:23 pm

There's a lot of interesting stuff going on at the moment, but since last night it looks like the problem has been narrowed down.

Here's the bug report: ... bug=785672

Miscellaneous links: ... 86512.html (Lovely that it was backported to 3.x huh?)

So, the gist of it is that if you're running ext4 on SSDs and have a fairly recent kernel (3.16, 3.19, 3.4, 3.6, 4.0.x), there's a chance that some file system extents will be zeroed leading to data loss (and an extent can be up to 128MiB in size--ouch). Apparently, though, the problem appears to most often hit systems configured with RAID-0 and/or mounted with the discard option enabled. Sometimes enabling trim (or using fstrim) seems to contribute.

As I understand it, a proper fix hasn't yet landed in the kernel but is expected some time today or tomorrow.
I gave that lich a phylactery shard. Liches love phylactery shards.
User avatar
Site Admin
Posts: 3907
Joined: Wed Jul 05, 2006 3:06 pm
Location: New Mexico
Gender: Male

Return to Technology Lounge

Who is online

Users browsing this forum: No registered users and 1 guest