Btrfs RAID5 斷電、拔碟、write hole 實測:把三顆 SSD 折騰到底的實驗紀錄
在 Arch Linux(kernel 6.14)上用 2×NVMe + 1×SATA SSD 建 Btrfs RAID5,實測斷電、拔碟、傳輸中掉碟、bitrot 與 write hole,最後用 fio 對比 md-raid bitmap:Btrfs RAID5 隨機寫只有 md-raid 的八分之一。
在 Arch Linux(kernel 6.14)上用 2×NVMe + 1×SATA SSD 建 Btrfs RAID5,實測斷電、拔碟、傳輸中掉碟、bitrot 與 write hole,最後用 fio 對比 md-raid bitmap:Btrfs RAID5 隨機寫只有 md-raid 的八分之一。
從 CoW B-tree 實現與十五年郵件列表史料,逐一拆解 btrfs RAID5/6 的 write hole、metadata parity 陷阱與 replace 維運坑,並對照 ZFS raidz 的根治思路。