So far everything runs very smooth, I’m very happy with my adjustments
In addition to that I just wanted to share a small script I will run at startup to clean up the files after a reboot (I haven’t setup datto to reload the snapshots before mounting the drives yet). This should get rid of any obsolete .datto, .overlay or cbt_info files at startup:
#!/bin/sh
for FILE in /mnt/urbackup_snaps/cbt_info/*-cowfile
do
SNAP_COWFILE_PATH=$(cat $FILE)
SNAP_COWFILE_NAME=".$(cat $FILE | cut -d '.' -f2-)"
if [ ! -e /proc/datto-info ] || ! grep -q "$SNAP_COWFILE_NAME" /proc/datto-info; then
echo "COW-File is not loaded by kernel module"
if [ -e $SNAP_COWFILE_PATH ]; then
echo "Deleting $SNAP_COWFILE_PATH"
rm -f $SNAP_COWFILE_PATH
fi
DEVNUM_PATH=$(echo "$FILE" | sed s/-cowfile$/-snapdev/)
if [ -e $DEVNUM_PATH ]; then
echo "Deleting $DEVNUM_PATH"
rm -f $DEVNUM_PATH
fi
OVERLAY_PATH=$(echo "$SNAP_COWFILE_PATH" | sed s/.datto_3d41c58e-6724-4d47-8981-11c766a08a24/.overlay_2fefd007-3e48-4162-b2c6-45ccdda22f37/)
if [ -e $OVERLAY_PATH ]; then
echo "Deleting $OVERLAY_PATH"
rm -f $OVERLAY_PATH
fi
echo "Deleting $FILE"
rm -f $FILE
fi
done