[SOLVED] Centos 7 server failing BTRFS test

Hi,

I am trying to setup a Urbackup server on Centos 7 but it fails the btrfs test with the following output
[root@server4 disk2]# urbackup_snapshot_helper test
Testing for btrfs…
Create subvolume ‘/disk2/urbackup/testA54hj5luZtlorr494/A’
Create a snapshot of ‘/disk2/urbackup/testA54hj5luZtlorr494/A’ in ‘/disk2/urbackup/testA54hj5luZtlorr494/B’
TEST FAILED: Creating cross sub-volume reflink failed. Need Linux kernel >= 3.6.
Delete subvolume (commit): ‘/disk2/urbackup/testA54hj5luZtlorr494/A’
Delete subvolume (commit): ‘/disk2/urbackup/testA54hj5luZtlorr494/B’

It appears that the test program can create the snapshots but not the cross snapshot link. However my kernel version is 3.10 which is greater than the minimum supported version 3.6 mentioned in the output.
[root@server4 disk2]# uname -r
3.10.0-693.2.2.el7.x86_64

I am using urbackup-server-2.1.19.1765-2.2.x86_64 and btrfs-progs-4.9.1-1.el7.x86_64

I would be grateful if anyone can suggest a way around this problem. Urbackup-server works fine for me but is not using it’s btrfs mode and therefore I don’t get the benefits of the snapshotting file backup mode which I am particularly interested in.

Regards

Ciaran

I have managed to solve this by upgrading my kernel to 4.13 using the elrepo repository.

Recently updated to server 2.1.20.2045 on Centos 7.4 and started getting the same failure. All incremental and full image backups are failing. Previous server 2.1.19 was working fine on this Centos 7.4 system.

UrBackup: UrBackup Server v2.1.20.2045
Centos: Linux bu.example.com 3.10.0-693.11.1.el7.x86_64 #1 SMP Mon Dec 4 23:52:40 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Error:
$ sudo urbackup_snapshot_helper test
Testing for btrfs…
Create subvolume ‘/data/backup/urbackup/testA54hj5luZtlorr494/A’
Create a snapshot of ‘/data/backup/urbackup/testA54hj5luZtlorr494/A’ in ‘/data/backup/urbackup/testA54hj5luZtlorr494/B’
TEST FAILED: Creating cross sub-volume reflink failed. Need Linux kernel >= 3.6.
Delete subvolume (commit): ‘/data/backup/urbackup/testA54hj5luZtlorr494/A’
Delete subvolume (commit): ‘/data/backup/urbackup/testA54hj5luZtlorr494/B’

We do not want to update the kernel to the elrepo version. Is there any solution on Centos 7.4? Or is it due to Centos/RHEL dropping BTRFS support?

With Centos/RHEL ending support for BTRFS what is the recommended distro to use for UrBackup?

Btrfs bugs currently only get fixed with kernel version 4.4 and 4.14 . I would suggest you use one of them, otherwise you are using years old versions with a unknown number of bugs. And if you report a problem with it everyone will ignore you ;). If you want payed support for btrfs the only one providing that is SuSE with SLES (and that indirectly pays for a few developers improving btrfs).