Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

List all devices in "incremental" mode? #211

Open
polarpurple opened this issue Jan 5, 2023 · 2 comments
Open

List all devices in "incremental" mode? #211

polarpurple opened this issue Jan 5, 2023 · 2 comments

Comments

@polarpurple
Copy link

polarpurple commented Jan 5, 2023

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
Copy link
Collaborator

e-kov commented Jan 5, 2023

@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
Copy link
Collaborator

e-kov commented Jan 5, 2023

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants