#dattobd_create_snapshot script image backup faild
#loginfo
…
truncate -s100M /boot/.overlay_2fefd007-3e48-4162-b2c6-45ccdda22f37_3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
losetup -f
LODEV=/dev/loop5
echo 0 4194304 snapshot /dev/datto0 /dev/loop5 N 8 | dmsetup create wsnap-3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
mkdir -p /mnt/urbackup_snaps/3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
mkdir -p /mnt/urbackup_snaps/cbt_info
mount: /mnt/urbackup_snaps/3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0: wrong fs type, bad option, bad superblock on /dev/mapper/wsnap-3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0, missing codepage or helper program, or other error.
…
/boot/.overlay_2fefd007-3e48-4162-b2c6-45ccdda22f37_3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
create a 100MB empty overlay file ?
#base info
root@urbakub20:~# cat /etc/issue
Ubuntu 20.04.6 LTS \n \l
root@urbakub20:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 64M 1 loop /snap/core20/2379
loop1 7:1 0 63.3M 1 loop /snap/core20/1828
loop2 7:2 0 91.9M 1 loop /snap/lxd/24061
loop3 7:3 0 49.9M 1 loop /snap/snapd/18357
loop4 7:4 0 91.9M 1 loop /snap/lxd/29619
sr0 11:0 1 1024M 0 rom
vda 252:0 0 60G 0 disk
├─vda1 252:1 0 1M 0 part
├─vda2 252:2 0 2G 0 part /boot
└─vda3 252:3 0 58G 0 part /
#used dbdctl
root@urbakub20:~# dbdctl
Usage:
dbdctl setup-snapshot [-c ] [-f fallocate]
dbdctl reload-snapshot [-c ]
dbdctl reload-incremental [-c ]
dbdctl destroy
dbdctl transition-to-incremental
dbdctl transition-to-snapshot [-f fallocate]
dbdctl reconfigure [-c ]
dbdctl help
2024-10-15 01:03:10: + echo Using /dev/datto0…
2024-10-15 01:03:10: Using /dev/datto0…
2024-10-15 01:03:10: + echo CBT=type=datto&reset=1
2024-10-15 01:03:10: CBT=type=datto&reset=1
2024-10-15 01:03:10: + get_path /boot .datto_3d41c58e-6724-4d47-8981-11c766a08a24_3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
2024-10-15 01:03:10: + echo /boot/.datto_3d41c58e-6724-4d47-8981-11c766a08a24_3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
2024-10-15 01:03:10: + sed s@//@/@g
2024-10-15 01:03:10: + dbdctl setup-snapshot /dev/vda2 /boot/.datto_3d41c58e-6724-4d47-8981-11c766a08a24_3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0 0
2024-10-15 01:03:10: + echo 0
2024-10-15 01:03:10: + blockdev --getsize /dev/datto0
2024-10-15 01:03:10: + DEV_SIZE=4194304
2024-10-15 01:03:10: + get_path /boot .overlay_2fefd007-3e48-4162-b2c6-45ccdda22f37_3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
2024-10-15 01:03:10: + echo /boot/.overlay_2fefd007-3e48-4162-b2c6-45ccdda22f37_3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
2024-10-15 01:03:10: + sed s@//@/@g
2024-10-15 01:03:10: + truncate -s100M /boot/.overlay_2fefd007-3e48-4162-b2c6-45ccdda22f37_3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
2024-10-15 01:03:10: + losetup -f
2024-10-15 01:03:10: + LODEV=/dev/loop5
2024-10-15 01:03:10: + [ x/dev/loop5 = x ]
2024-10-15 01:03:10: + get_path /boot .overlay_2fefd007-3e48-4162-b2c6-45ccdda22f37_3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
2024-10-15 01:03:10: + echo /boot/.overlay_2fefd007-3e48-4162-b2c6-45ccdda22f37_3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
2024-10-15 01:03:10: + sed s@//@/@g
2024-10-15 01:03:10: + losetup /dev/loop5 /boot/.overlay_2fefd007-3e48-4162-b2c6-45ccdda22f37_3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
2024-10-15 01:03:10: + echo 0 4194304 snapshot /dev/datto0 /dev/loop5 N 8
2024-10-15 01:03:10: + dmsetup create wsnap-3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
2024-10-15 01:03:10: + echo Mounting /dev/mapper/wsnap-3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0…
2024-10-15 01:03:10: Mounting /dev/mapper/wsnap-3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0…
2024-10-15 01:03:10: + mkdir -p /mnt/urbackup_snaps/3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
2024-10-15 01:03:10: + mkdir -p /mnt/urbackup_snaps/cbt_info
2024-10-15 01:03:10: + MOUNTOPTS=ro
2024-10-15 01:03:10: + [ ext4 = xfs ]
2024-10-15 01:03:10: + mount -o ro /dev/mapper/wsnap-3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0 /mnt/urbackup_snaps/3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
2024-10-15 01:03:10: mount: /mnt/urbackup_snaps/3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0: wrong fs type, bad option, bad superblock on /dev/mapper/wsnap-3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0, missing codepage or helper program, or other error.
2024-10-15 01:03:10: + echo Mounting filesystem failed
2024-10-15 01:03:10: Mounting filesystem failed
2024-10-15 01:03:10: + rmdir /mnt/urbackup_snaps/3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
2024-10-15 01:03:10: + rm /mnt/urbackup_snaps/3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0-num
2024-10-15 01:03:10: + dmsetup remove wsnap-3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
2024-10-15 01:03:10: + losetup -d /dev/loop5
2024-10-15 01:03:10: + get_path /boot .overlay_2fefd007-3e48-4162-b2c6-45ccdda22f37_3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
2024-10-15 01:03:10: + echo /boot/.overlay_2fefd007-3e48-4162-b2c6-45ccdda22f37_3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
2024-10-15 01:03:10: + sed s@//@/@g
2024-10-15 01:03:10: + rm /boot/.overlay_2fefd007-3e48-4162-b2c6-45ccdda22f37_3b6f64d1f7d8e1df22d60737f96be3d70b7ca9d19a3d3fc0
2024-10-15 01:03:10: + dbdctl destroy 0
2024-10-15 01:03:10: + exit 1
2024-10-15 01:03:10: Creating shadowcopy of “/dev/vda2” failed.
2024-10-15 01:03:10: Creating shadow copy failed. See client log file for details.