Ubuntu 19.10 with ZFS - test only successful on each second run?

Hi,

I have set up a new server and followed the normal setup documentation as done on several servers before.This time I used Ubuntu 18.04.3 LTS as system and get very strange behaviour.

I have set up a pool called “tank” and mounted it under /media/BACKUP

/etc/urbackup/backupfolder contains:
/media/BACKUP/urbackup

/etc/urbackup/dataset contains:
tank/i

Starting “urbackup_snapshot_helper test” gives the following output in the first run:
root@urbackup:/etc/urbackup# urbackup_snapshot_helper test
Testing for btrfs…
ERROR: not a btrfs filesystem: /media/BACKUP/urbackup/testA54hj5luZtlorr494
TEST FAILED: Creating test btrfs subvolume failed
Testing for zfs…
Destroying subvol tank/i/testA54hj5luZtlorr494 failed. Promoting dependencies…
cannot open ‘tank/i/testA54hj5luZtlorr494@ro’: dataset does not exist
Searching for origin tank/i/testA54hj5luZtlorr494@testA54hj5luZtlorr494
cannot destroy ‘tank/i/testA54hj5luZtlorr494’: dataset is busy
TEST FAILED: Creating test zfs volume “tank/i/testA54hj5luZtlorr494” failed

Starting it a second time shows that it seems to work:
root@urbackup:/etc/urbackup# urbackup_snapshot_helper test
Testing for btrfs…
ERROR: not a btrfs filesystem: /media/BACKUP/urbackup/testA54hj5luZtlorr494
TEST FAILED: Creating test btrfs subvolume failed
Testing for zfs…
ZFS TEST OK

The problem is that only every second time is successful and I never had anything like that before. Even a new installation did not change the problem.

Did I miss anything here?

Hi,

Does UrBackup running as root (USER=root in /etc/default/urbackupsrv) ?
Have you try to create / destroy dataset or subvolume manually ?

Regards,