[arch-general] RAID-0 kernel bug
Hello. RE: "Data corruption on software RAID 0 when discard is used 2015-05-22 Recent Linux kernels (4.0.2+, LTS 3.14.41+), pushed to the [core] repository in the past couple of weeks, were affected by a bug that can cause data corruption on file systems mounted with the discard option and residing on software RAID 0 arrays. The issue has been addressed in the linux 4.0.4-2 and linux-lts 3.14.43-2 updates. Due to the nature of the bug, however, it is likely that data corruption has already occurred on systems running the aforementioned kernels. It is strongly advised to verify the integrity of affected file systems using fsck and/or restore their data from known good backups. For further information please read the LKML post by Holger Kiehl, the related article on Phoronix, as well as the proposed fix that was backported to the Arch kernels." Am I correct to assume that this would ONLY affect systems that include a RAID-0 filesystem, and that it would not affect other ext4 systems using SSDs with "discard" in /etc/fstab?
On 23.05.2015 03:12, Francis Gerund wrote:
Am I correct to assume that this would ONLY affect systems that include a RAID-0 filesystem, and that it would not affect other ext4 systems using SSDs with "discard" in /etc/fstab?
It affects all file systems when used with discard on a raid0 device. It is not a bug specific to ext4[1]. If you do not use raid0 with discard you are fine. [1] https://bugzilla.kernel.org/show_bug.cgi?id=98501#c14
On 05/23/2015 02:55 AM, Florian Pritz wrote:
On 23.05.2015 03:12, Francis Gerund wrote:
Am I correct to assume that this would ONLY affect systems that include a RAID-0 filesystem, and that it would not affect other ext4 systems using SSDs with "discard" in /etc/fstab?
It affects all file systems when used with discard on a raid0 device. It is not a bug specific to ext4[1]. If you do not use raid0 with discard you are fine.
UUgh, dumb question, but... I have not used/configured this "discard", but I do have 6 Raid0 arrays spinning on my Arch server. Does this corruption potentially apply to me? Is this "discard" something that would be enabled by default? I have never heard of it, so that is the only thing to that concerns me. From the kernel thread, the fix is out on 5/22. What do I do to test whether I suffered corruption? -- David C. Rankin, J.D.,P.E.
it says to run fsck.... On Sat, May 23, 2015 at 11:16 AM, David C. Rankin < drankinatty@suddenlinkmail.com> wrote:
On 05/23/2015 02:55 AM, Florian Pritz wrote:
On 23.05.2015 03:12, Francis Gerund wrote:
Am I correct to assume that this would ONLY affect systems that include a RAID-0 filesystem, and that it would not affect other ext4 systems using SSDs with "discard" in /etc/fstab?
It affects all file systems when used with discard on a raid0 device. It is not a bug specific to ext4[1]. If you do not use raid0 with discard you are fine.
UUgh, dumb question, but... I have not used/configured this "discard", but I do have 6 Raid0 arrays spinning on my Arch server. Does this corruption potentially apply to me? Is this "discard" something that would be enabled by default? I have never heard of it, so that is the only thing to that concerns me. From the kernel thread, the fix is out on 5/22. What do I do to test whether I suffered corruption?
-- David C. Rankin, J.D.,P.E.
On Sat, May 23, 2015 at 04:16:59AM -0500, David C. Rankin wrote:
UUgh, dumb question, but... I have not used/configured this "discard", but I do have 6 Raid0 arrays spinning on my Arch server. Does this corruption potentially apply to me? Is this "discard" something that would be enabled by default? I have never heard of it, so that is the only thing to that concerns me. From the kernel thread, the fix is out on 5/22. What do I do to test whether I suffered corruption?
Hello! Discard is an option to use the built-in deletion function of flash storage drives, so no hard disks are vulnerable. Assuming that your drives are actually 'spinning' in your server, it's safe to assume that you are free of this bug.
-- David C. Rankin, J.D.,P.E.
Thanks for the replies. I have been out of touch for a few days. Sorry for the delay in acknowledgement. On Sat, May 23, 2015 at 6:17 AM, Temlin Olivér <temlin@gmail.com> wrote:
On Sat, May 23, 2015 at 04:16:59AM -0500, David C. Rankin wrote:
UUgh, dumb question, but... I have not used/configured this "discard", but I do have 6 Raid0 arrays spinning on my Arch server. Does this corruption potentially apply to me? Is this "discard" something that would be enabled by default? I have never heard of it, so that is the only thing to that concerns me. From the kernel thread, the fix is out on 5/22. What do I do to test whether I suffered corruption?
Hello! Discard is an option to use the built-in deletion function of flash storage drives, so no hard disks are vulnerable. Assuming that your drives are actually 'spinning' in your server, it's safe to assume that you are free of this bug.
-- David C. Rankin, J.D.,P.E.
participants (5)
-
David C. Rankin
-
Florian Pritz
-
Francis Gerund
-
Simon Hanna
-
Temlin Olivér