linstor-proxmox icon indicating copy to clipboard operation
linstor-proxmox copied to clipboard

Restore snapshot fails

Open fab33 opened this issue 6 years ago • 8 comments

Create a snapshot from Proxmox web gui works fine and we can list the snapshot with "drbdmanage list-snapshots" but when we try to restore the snapshot it fails with the message "snapshot restore is not implemented yet".

fab33 avatar Oct 03 '18 20:10 fab33

Where exactly didn't you understand what I told you? Can/Should I explain it again?

https://github.com/LINBIT/drbdmanage-proxmox/issues/2

rck avatar Oct 04 '18 07:10 rck

Ok, I just copy the issue from drbdmanage-proxmox but it's the same in linstor-proxmox. You can't restore snapshot from the GUI and it will be a great feature.

fab33 avatar Oct 04 '18 08:10 fab33

Good then, let's keep it open. I don't see it happen because of these fundamental differences between "restore in place", and "restore to a now resource". There are ways it could be implemented, but that first needs to happen in LINSTOR itself.

rck avatar Oct 04 '18 08:10 rck

The traditional restore approach of PVE, is useless and very slow. If you want to restore a VM quickly, just use the command line. This is explained in the LINSTOR documentation.

acidrop avatar Oct 05 '18 15:10 acidrop

The current error message is not very helpful: DRBD snapshot rollback is not implemented, please use 'linstor' to recover your data, use 'qm unlock' to unlock your VM at /usr/share/perl5/PVE/Storage/Custom/LINSTORPlugin.pm line 441

If it can't be done automatically, could it perhaps include some hints on how to do the rollback manually?

elonen avatar Oct 07 '18 17:10 elonen

As an update to the whole "in place" vs. "new resource" topic: In place is now on the roadmap, so eventually this should be possible. (No, I don't know when exactly)

rck avatar Oct 08 '18 08:10 rck

Hello, The implementation of the snapshot restore feature in the proxmox console would be of real interest. Now, do you have any idea about when this feature will be available? thank you,

greb-o avatar Sep 05 '19 07:09 greb-o

In contrast to DRBDManage, LINSTOR has (limited) support for rolling back snapshots. This fits Proxmox's model a lot better. With the new API/abstraction ob the current release and by using the REST-client, it should be pretty easy to code something usable. That said, I'm too busy with other projects to just work on it because it would be fun. Perl is never fun. So this has to wait for a) a contribution (I will obviously help getting patches in shape), or b) a customer that requests it.

rck avatar Sep 06 '19 15:09 rck