On 1/11/24 11:52, Polarian wrote:
ext4 has no bit rot detection, I know a lot of people who say ext4 is
old and insecure, but bare in mind the overhead of the new filesystem
features in say, btrfs.
btrfs does have detection as it does checksumming on the filesystem
level, however this only detects the bit rot, it can't fix it, which
requires redundant storage or backups. I believe the standard for bit
rot protection is run 2 SSDs both with btrfs and then RAID 1 them, when
a checksum fails, it pulls the sector from the other SSD allowing
decent data integrity, correct me if I am wrong, I am bit rot insecure
as I don't store any data on my daily driver of use.
Good, I don't feel like such a dinosaur with RAID1 ext4 on spinning rust --
which has been incredibly reliable:
# mdadm -D /dev/md{0,1,2,4}
<snip>
/dev/md2:
Version : 1.2
Creation Time : Thu Aug 20 23:46:24 2015
Raid Level : raid1
Array Size : 921030656 (878.36 GiB 943.14 GB)
Used Dev Size : 921030656 (878.36 GiB 943.14 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Fri Jan 12 23:20:49 2024
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Consistency Policy : bitmap
Name : archiso:2
UUID : 73a0a0b5:fa3629e1:7c1a7c87:23044fc8
Events : 7421
Number Major Minor RaidDevice State
0 8 7 0 active sync /dev/sda7
1 8 23 1 active sync /dev/sdb7
<snip>
Though I do keep a close eye on the drives given their age, and have spare
available -- and knock-on-wood often :)
--
David C. Rankin, J.D.,P.E.