Corsinvest / cv4pve-autosnap

Automatic snapshot tool for Proxmox VE
https://www.corsinvest.it/cv4pve
GNU General Public License v3.0
413 stars 51 forks source link

Is it safety to use cv4pve-autosnap in conjunction with Storage Replication (pvecm)? #73

Closed GusevVictor closed 1 year ago

GusevVictor commented 1 year ago

Hi all! I'm very like to use cv4pve-autosnap for years. In all time when I use it, I have a question about safety use it with Storage Replication (pvecm).

For example:

  1. case when cv4pve-autosnap runs for create a new snap and del some old snap while pvecm (send diff/full snapshot)
  2. case when pvecm runs for create a new or del old diff snap while cv4pve-autosnap want to runs too.

There is vm lock, but I have doubt about that will be work good.

It there any dangerous when use both tools?

franklupo commented 1 year ago

what command do you use with pvecm?

GusevVictor commented 1 year ago

what command do you use with pvecm?

First of all: Thank a lot for your answer.

I use gui of proxmox replication. I mean this one: sync

franklupo commented 1 year ago

Hi, this is replication vm. cv4pve-autosnap uses the API and there is no problem

Best regards

GusevVictor commented 1 year ago

Thank you so much. Yes, I understand about API. Below of the API resides zfs layer and I don't know what about when zfs send snapshot and during this cv4pve-autosnap send by API - "HEY! We need delete this snap." - Is there possible to destroy of zfs tank at all? :)

GusevVictor commented 1 year ago

Will be glad for any update :)

turrini commented 1 year ago

Don't worry, it will be safe. The PVE API serializes all commands and organizes them to avoid conflicts (snapshoting while replicating is an example). I've been using autosnap for months on 8 nodes, replicating vms between them.

GusevVictor commented 1 year ago

Don't worry, it will be safe. The PVE API serializes all commands and organizes them to avoid conflicts (snapshoting while replicating is an example). I've been using autosnap for months on 8 nodes, replicating vms between them.

Thank a lot. I have some error messages like this one: command 'zfs snapshot tank/vm-113-disk-1@__replicate_113-0_1675396830__' failed: got timeout

Think this is no so dangerous.