Hi,
We have several proxmox install with linstor as SDS, we found out that if you take snapshot, and rollback with ZFS as a storage pool, everything works flawless.
However, when you try the same thing with a lvm-thin storage pool, it fails almost everytime. Sometimes it will work but when it is not you are left with stuck ressources.
We tried :
- powered on or powered off VM
- the oldest snap
- the most recent one
- snap in the middle of the “tree”
- DrbdOptions/Net/allow-two-primaries set to yes or no : same problem
We did not find a stable working method of rolling back snapshots via the proxmox web UI.
I will try the same with the linstor CLI and report back
EDIT : Yes, same problem with the linstor snapshot rollback cmd
Description:
(Node: 'vc-swarm3') Failed to rollback to snapshot pve/vm-700-disk-1_00000_snap_vm-700-disk-1_snap1
Details:
Command 'lvconvert --config devices { filter=['a|/dev/sdg3|','r|.*|'] } --merge pve/vm-700-disk-1_00000_snap_vm-700-disk-1_snap1' returned with exitcode 5.
Standard out:
Error message:
pve/vm-700-disk-1_00000_snap_vm-700-disk-1_snap1 is not a mergeable logical volume.
And we can see that we end up with a snap that is not “linked” to the parent lvm
vm-700-disk-1_00000 pve Vwi---tz-- 10,00g thin-hdd
vm-700-disk-1_00000_snap_vm-700-disk-1_snap1 pve Vwi-a-tz-k 10,00g thin-hdd 100,00
We have three cluster in that situation one with like so :
root@vc-swarm1:~# dpkg -l | grep linstor
ii linstor-client 1.18.0-1 all Linstor client command line tool
ii linstor-common 1.22.0-1 all DRBD distributed resource management utility
ii linstor-controller 1.22.0-1 all DRBD distributed resource management utility
ii linstor-proxmox 7.0.0-1 all DRBD distributed resource management utility
hi linstor-satellite 1.22.0-1 all DRBD distributed resource management utility
ii python-linstor 1.18.0-1 all Linstor python api library
And two other :
└─$ dpkg -l | grep linstor
ii linstor-client 1.23.0-1 all Linstor client command line tool
hi linstor-common 1.29.0-1 all DRBD distributed resource management utility
ii linstor-controller 1.29.0-1 all DRBD distributed resource management utility
hi linstor-proxmox 8.0.4-1 all DRBD distributed resource management utility
ii linstor-satellite 1.29.0-1 all DRBD distributed resource management utility
ii python-linstor 1.23.0-1 all Linstor python api library