+chiark-utils (4.0.99.0.15) unstable; urgency=low
+
+ * /etc/chiark-backup/snap/lvm (backup/lvm in the source tree) now
+ limits the snapshot size to 1.1x the original lv size (rounded down,
+ ish), as lvcreate has this as an undocumented restriction.
+
+ --
+
chiark-utils (4.0.99.0.14) unstable; urgency=low
* /etc/chiark-backup/snap/lvm (backup/lvm in the source tree) now uses
# shell script fragment setting options
# defaults for currently implemented parameters are
#lvm_lv=chiark_backup
-#lvm_lvsize_opts=-l <no. of free extents in vg>
+#lvm_lvsize_opts=-l <min(no. of free extents in vg, 1.1x total lv size)>
#lvm_lvtools_opts='-A n'
#lvm_lvcreate_opts=
#lvm_lvcreate_args=
vggroup="${vggroup%/*}"
vgdisplay_out="$(really vgdisplay -c "$vggroup")"
extents="$(printf "%s" "$vgdisplay_out" | awk -F: '{print $16}')"
+
+ lvdisplay_out="$(really lvdisplay -c "$device")"
+ extents2="$(printf "%s" "$lvdisplay_out" | awk -F: '{print $9}')"
+ extents2=$(( $extents2 + ($extents2+9)/10 - 1 ))
+
+ if [ $extents2 -lt $extents ]; then extents=$extents2; fi
+
lvm_lvsize_opts="-l $extents"
fi
+chiark-utils (4.0.99.0.15) unstable; urgency=low
+
+ * /etc/chiark-backup/snap/lvm (backup/lvm in the source tree) now
+ limits the snapshot size to 1.1x the original lv size (rounded down,
+ ish), as lvcreate has this as an undocumented restriction.
+
+ --
+
chiark-utils (4.0.99.0.14) unstable; urgency=low
* /etc/chiark-backup/snap/lvm (backup/lvm in the source tree) now uses