Fixing XFS RAID - does XFS ever issue non-aligned discards?

Michał Pecio michal.pecio at gmail.com
Tue Dec 15 07:16:05 CST 2015


Hi,

I'm using XFS with bsize=4096 on RAID0 of two Intel 320 SSDs under
Linux 3.18 LTS. I'm wondering if it's correct to assume that discards
issued by XFS will always be multiples of 4k and 4k-aligned?

I'm asking because I need to fix damage caused by the infamous RAID0
bug from May 2015, which, if I'm reading the code correctly, basically
permuted discard requests between component disks, i.e. sda discarded
offsets which were supposed to be discarded by sdb and vice-versa.

The only backup I have is very slow so I'm trying to minimize copying.
The list of files with 4k-aligned blocks of zeros is small and worth
reviewing manually, but there is much more files with smaller holes
and I'd like to know if I should be bothered by them. Fwiw, I checked
few and they've all been false positives so far.

Thanks for any help,
MP



More information about the xfs mailing list