Skip to contentSkip to conversation

btrfs-transacti hangs system for several seconds every few minutes

DISCUSSION Tomasz Chmielewski 4 participants 5 messages Mar 30, 2020 – Mar 31, 2020 Btrfs file system

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines

I wonder why they put 5.3.0 as the standard advanced Kernel in Ubuntu
LTS if it has a data corruption bug. I don't know if I've seen any
release of 5.4.14 in a PPA yet -- manual kernel install is such a pain the few times I have done it.

You have all kernels compiled as packages here (for Ubuntu):

https://kernel.ubuntu.com/~kernel-ppa/mainline/

So just download two deb packages, dpkg -i, and done.

btrfs can be still not quite as stable as one would wish, but the following work well for me on quite many servers:

- use a recent kernel - late 5.5.x, now perhaps 5.6 - will typically work better for btrfs than a default distribution kernel

- use "noatime" mount option

- use "space_cache=v2" mount option

- absolutely do not use qgroups (make sure this command returns an error saying that quotas are not enabled): btrfs qgroup show /mount/point

- if using RAID-5, make sure to use RAID-1 for metadata (and raid1c3 metadata for RAID-6 data)

- if you use any software automation, make sure that it doesn't accidentally re-enable quotas (in btrfs, there is no mount flag for quotas, unlike in other filesystems, so it's not intuitive to say if the quotas are enabled or not)

Tomasz Chmielewski
https://lxadm.com

#1 lore raw

30.03.2020 05:29, Tomasz Chmielewski пишет:

Quoted 11 lines
Quoted 4 lines

I wonder why they put 5.3.0 as the standard advanced Kernel in Ubuntu LTS if it has a data corruption bug.   I don't know if I've seen any release of 5.4.14 in a PPA yet -- manual kernel install is such a pain the few times I have done it.

You have all kernels compiled as packages here (for Ubuntu):

https://kernel.ubuntu.com/~kernel-ppa/mainline/

So just download two deb packages, dpkg -i, and done.

Beware that it is not exactly the same as distribution kernel (both in terms of included patches and enabled configuration options). Also matching linux-tools is not provided which means perf, cpupower, turbostat and some other tools stop working.

#2 lore raw

Also, isn't it 4 debs -- image, modules, headers and architecture independent headers?

Still, I am surprised that the ubuntu team, with a data corruption issue, would not make a priority to install a fixed kernel or at least backport btrfs modules into the current kernel.

Quoted 18 lines · Andrei Borzenkov

30.03.2020 05:29, Tomasz Chmielewski пишет:

Quoted 11 lines
Quoted 4 lines

I wonder why they put 5.3.0 as the standard advanced Kernel in Ubuntu LTS if it has a data corruption bug.   I don't know if I've seen any release of 5.4.14 in a PPA yet -- manual kernel install is such a pain the few times I have done it.

You have all kernels compiled as packages here (for Ubuntu):

https://kernel.ubuntu.com/~kernel-ppa/mainline/

So just download two deb packages, dpkg -i, and done.

Beware that it is not exactly the same as distribution kernel (both in terms of included patches and enabled configuration options). Also matching linux-tools is not provided which means perf, cpupower, turbostat and some other tools stop working.

#3 lore raw
Quoted 2 lines · Brad Templeton

Also, isn't it 4 debs -- image, modules, headers and architecture independent headers?

You don't have to install header debs (unless compiling the modules yourself etc.).

Tomasz Chmielewski
https://lxadm.com

#4 lore raw
In reply to Brad Templeton
Quoted 6 lines · Brad Templeton

Also, isn't it 4 debs -- image, modules, headers and architecture independent headers?

Still, I am surprised that the ubuntu team, with a data corruption issue, would not make a priority to install a fixed kernel or at least backport btrfs modules into the current kernel.

It probably hasn't been reported to them. Distro vendors are kind of on their own for long-term kernel bug fixes, especially for non-LTS kernels like 5.3. kernel.org support ended last year, just before the bug was identified.

Quoted 19 lines · Andrei Borzenkov
Quoted 18 lines

30.03.2020 05:29, Tomasz Chmielewski пишет:

Quoted 11 lines
Quoted 4 lines

I wonder why they put 5.3.0 as the standard advanced Kernel in Ubuntu LTS if it has a data corruption bug.   I don't know if I've seen any release of 5.4.14 in a PPA yet -- manual kernel install is such a pain the few times I have done it.

You have all kernels compiled as packages here (for Ubuntu):

https://kernel.ubuntu.com/~kernel-ppa/mainline/

So just download two deb packages, dpkg -i, and done.

Beware that it is not exactly the same as distribution kernel (both in terms of included patches and enabled configuration options). Also matching linux-tools is not provided which means perf, cpupower, turbostat and some other tools stop working.