Gentoo Archives: gentoo-user

From: Laurence Perkins <lperkins@×××××××.net>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: RE: [gentoo-user] Hard drive error from SMART
Date: Tue, 12 Apr 2022 22:06:04
Message-Id: MW2PR07MB40582B1E258C17D98D50529CD2ED9@MW2PR07MB4058.namprd07.prod.outlook.com
In Reply to: Re: [gentoo-user] Hard drive error from SMART by Wol
1 >-----Original Message-----
2 >From: Wol <antlists@××××××××××××.uk>
3 >Sent: Tuesday, April 12, 2022 2:51 PM
4 >To: gentoo-user@l.g.o
5 >Subject: Re: [gentoo-user] Hard drive error from SMART
6 >
7 >On 12/04/2022 20:41, Laurence Perkins wrote:
8 >> LVM is good for being able to swap out drives easily but with the modern, huge drives you really want data checksums if you can get them. Otherwise all it takes is a flipped bit somewhere to wreck your data and drive firmware doesn't always notice. I think you can do that with LVM, but I've never looked into it for certain.
9 >
10 >Look at that link for my system that I posted. I use dm-integrity, so a flipped bit will trigger a failure at the raid-5 level and recover.
11 >
12 >For those people looking at btrfs - note that parity-raid (5 or 6) is not a wise idea at the moment so you don't get two-failure protection ...
13
14 Specifically if the system crashes or has a power failure there may be some data left hanging until it can complete a scrub. Disk failures during that period may lose some of said data.
15
16 How much of a risk that is depends on the stability of your power and kernel and how much data turnover you have. I only use it on systems with UPS power and additional backups. Needs careful monitoring of the drives too since system crashes due to drive failures can leave you in rather a sticky mess.
17
18 >
19 >Cheers,
20 >Wol
21 >
22 >