Hello,

Le 01/08/2019 à 06:50, Anand Jain a écrit :
>>
>> So, I've had the issue of 2 FSes so far :
>>
>> - BTRFS FS on LVM over LUKS on a SATA SSD.
>>
>> - BTRFS FS directly over LUKS on an USB-3 mechanical HD.
>>
>> (All this having been perfectly stable until upgrade to 5.2 kernel...)
>>
> 
>  What kind of btrfs chunk profiles were used here (I guess its either
> single or dup)?

Yes, it was the default profiles :

- Single data, single metadata on the internal SSD (mounted with the
"ssd,discard,noatime" options and no compression.

- Single data, DUP metadata on the external USB HD (mounted with the
"noatime,compress=zstd" options.


I have downgraded the kenel to 5.1.16-arch1-1-ARCH when I restored the
machine (before rebooting it) and recreated the SSD BTRFS FS using the
latest "Parted Magic" (5.1 kernel).

The kernel was the ONLY package I downgraded.

The machine has been running like a charm since - as it ever dit - and
I'm typing this email on it.

(The SSD has passed extended self-tests, SMART tests, and BTRFS has been
successfully scrubbed since it was recreated)


So I am - for myself - positively sure that the 2 FS corruptions I met
were related to Arch kernel 5.2 on this machine, as it happened right
after I had upgraded the kernel, had never happened before, and doesn't
happen since I downgraded the kernel.

I have to add however that I upgraded another little machine to Manjaro
kernel 5.2 - after taking a full clone of the FS - and I don't have met
any filesystem corruption so far.

It is worth noting that Manjaro is the same family as Arch.


So even though I have no better logs to provide, here is my experience :

- Arch kernel 5.2 : BTRFS over LVM over LUKS on a SSD, and BTRFS over
LUKS on an USB HD : 2 filesystem corruptions. Both using numerous
snapshots, some were deleted (either by snapper or manually). Downgraded
to 5.1 now OK.


- Manjaro kernel 5.2 on a small laptop, BTRFS over LUKS on eMMC, no
compression, no snapshots, no problem so far.


- Manjaro kernel 5.2 on another laptop for a very short while before
reverting to 5.1, BTRFS over LVM over LUKS on SSD, a few snapshots, I
dunno if some were deleted (snapper) : Still OK.

- Manjaro kernel 5.2 on a desktop for a very short while before
reverting to 5.1, BTRFS RAID-1 over bcache over LUKS on a 2 HD + 1 SSD
mix, a few snapshots, I dunno if some were deleted (snapper) : Still OK.

So you see the setups can be a bit complex : Always a LUKS layer,
compression used on mechanical HDs, sometimes LVM or bcache, some BTRFS
RAID on one system...

As far as I can tell, the issue doesn't relate to the most complex setups.


I am under the unproved but strong feeling that the mess has something
to do with snapshots deletion with kernel 5.2...

Dunno if it can be of some help.

Kind regards.

ॐ

-- 
Swâmi Petaramesh <sw...@petaramesh.org> PGP 9076E32E

Reply via email to