Greetings,
I have read and tried hard to understand but can't wrap my brain around it, so... I have two PVE servers at the same location, they are not clustered (for reasons) and the primary server has a particular VM that is very important. I'm currently using zsync to copy over the VM to the secundary server, and AFAIK everything is setup correctly. The secondary server has no VMs setup (its more of a storage and backup, we have not experimented failure of the primary server so far).
After the initial sync, subsequent snapshots are send (15m interval). My question is: zsync replicates the same name (ID) (that name is NOT used in the secondary server). My question is about the steps in case of a hardware failure or any event that renders the primary server offline for whatever reason, and I want the VM to be up and running as of the last snapshot on the secondary server. The docs say:
1) Stop the sync.
2) Copy the VM config.
3) ZFS send latest snapshot.
4) Edit VM config.
5) Run the VM on the secondary server.
I have doubts about the third step. Docs say ZFS send and receive in a new ID. That would copy the whole thing, right? (that would be very slow, its around 1TB on spinning disks and there's not a lot of space available). Can I ZFS send and receive in the same ID?
zfs send storage/vm-110-disk-1@<latest> | zfs receive storage/vm-110-disk-1
Is that redundant, or simply wrong? I have read a LOT of documentation, maybe is the language barrier, or I'm just not smart enough to get all this. Gotta love ZFS thoug.
I have read and tried hard to understand but can't wrap my brain around it, so... I have two PVE servers at the same location, they are not clustered (for reasons) and the primary server has a particular VM that is very important. I'm currently using zsync to copy over the VM to the secundary server, and AFAIK everything is setup correctly. The secondary server has no VMs setup (its more of a storage and backup, we have not experimented failure of the primary server so far).
After the initial sync, subsequent snapshots are send (15m interval). My question is: zsync replicates the same name (ID) (that name is NOT used in the secondary server). My question is about the steps in case of a hardware failure or any event that renders the primary server offline for whatever reason, and I want the VM to be up and running as of the last snapshot on the secondary server. The docs say:
1) Stop the sync.
2) Copy the VM config.
3) ZFS send latest snapshot.
4) Edit VM config.
5) Run the VM on the secondary server.
I have doubts about the third step. Docs say ZFS send and receive in a new ID. That would copy the whole thing, right? (that would be very slow, its around 1TB on spinning disks and there's not a lot of space available). Can I ZFS send and receive in the same ID?
zfs send storage/vm-110-disk-1@<latest> | zfs receive storage/vm-110-disk-1
Is that redundant, or simply wrong? I have read a LOT of documentation, maybe is the language barrier, or I'm just not smart enough to get all this. Gotta love ZFS thoug.