=== modified file 'sbin/snap.lvm2' --- sbin/snap.lvm2 2015-12-15 11:52:13 +0000 +++ sbin/snap.lvm2 2015-12-15 11:44:03 +0000 @@ -28,6 +28,7 @@ # make sure it's empty and unused rmdir "$SNAPSHOT" || exit $? fi +echo $$ >"$LOCKFILE" || exit $? mkdir -p "$SNAPSHOT" || exit $? lvcreate -n "${SRC##*/}.snaprep" -L "${SNAPSHOT_SIZE:-10G}" -s "$SRC" || exit $? die_lvremove() {