Hi,
I do have a LVM volume group with 5 volumes (one for root, home, tmp, var and swap) and roughly 4GB unallocated space (1046 blocks):
LVM configuration overview
# lvs
LV VG Attr LSize
home system-vg -wi-ao---- 12.00g
root system-vg -wi-ao---- 8.00g
swap_01 system-vg -wi-ao---- 3.81g
tmp system-vg -wi-ao---- <3.86g
var system-vg -wi-ao---- 48.00g
# vgdisplay
— Volume group —
VG Name system-vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 100182
VG Access read/write
VG Status resizable
VG Size <79.76 GiB
PE Size 4.00 MiB
Total PE 20418
Alloc PE / Size 19372 / 75.67 GiB
Free PE / Size 1046 / <4.09 GiB
While creating a backup using LVM snapshots, the script (/usr/lib/duplicati/lvm-scripts/create-lvm-snapshot.sh) tries to create snapshots for 4 volumes - the script determines the snapshot size in a way, that only 2 snapshots will be created - first with 1000 blocks, 2nd with 46 blocks.
I would suggest dividing the free remaining space equally between all snapshots which needs to be created. I added two lines in the script:
#
# distribute snapshot space equally for all volumes
#
NUMBER_VOLUMES=lvs --noheadings | wc -l
FREEBLOCKS=$((( $FREEBLOCKS + $NUMBER_VOLUMES/2 ) / $NUMBER_VOLUMES ))
This needs to be inserted in line 44. It’s not an optimal solution, but it will do the trick (at least in my case).
Hope this helps anyone or maybe can be added to future releases…
BR, Heinrich