elastio / elastio-snap

kernel module for taking block-level snapshots and incremental backups of Linux block devices
GNU General Public License v2.0
19 stars 7 forks source link

List all devices in "incremental" mode? #211

Open polarpurple opened 1 year ago

polarpurple commented 1 year ago

After creating a snapshot of a block device (elioctl setup-snapshot /dev/dm-0 "/.eliosnap/eliosnap1" 0), backing it up and then calling elioctl transition-to-incremental 0, I observe that my /proc/elastio-snap-info no longer contains any mention of the block device I've put into "incremental mode". How can I query the system for a list of all block devices that are "being tracked"?

For reference, here is my /proc/elastio-snap-info after calling transition-to-incremental

nobody@linuxbackuptest:/# cat /proc/elastio-snap-info
{
        "version": "0.11.0",
        "devices": [

        ]
}
e-kov commented 1 year ago

@polarpurple could you please re-load driver in debug mode

sudo rmmod elastio-snap
sudo modprobe elastio-snap debug=1

and repeat the steps and then collect dmesg output. Also it would be great to know what is the Linux kernel version (uname -a), what is the Linux distro (cat /etc/os-release) and what is the kind of device /dev/dm-0 and its FS (sudo lsblk -f).

One more diagnostic question, what is the /proc/elastio-snap-info after the 1st setup-snapshot command? Does it contain device information?

e-kov commented 1 year ago

@polarpurple

I observe that my /proc/elastio-snap-info no longer contains any mention of the block device I've put into "incremental mode".

It seems to be a bug.

How can I query the system for a list of all block devices that are "being tracked"?

Just read /proc/elastio-snap-info or use elioctl info <MINOR> command. The json output should contain block_device with the device name and state which is 2 for the incremental mode. See driver-status.