Hi Fiona,
thank your for the quick reply.
Maybe I am understanding something wrong. But afaik the qcow2 is even better possible to create snapshots as zfs?
Cold standby replication
My maybe too simple assumption for a simple solution via qcow2:
- run filesystem
- create qcow2 snapshop on now state, let's name it "prxReplUUID"
- wait for finishing the replication
- replicate the snapshot prxReplUUID
- on success delete snapshot prxReplUUID
By the way this is the mechanism which I used on VMware since about 2009 very successfully to manually replicate snapshot states for a cold standby of the machine. Also you can take a look at GhettoVCB, which uses this mechanism to backup vmware images.
This above named mechanism would decouple the underneath filesystem and storage system fully. And for the most cases I think the most users here would be fully happy already with that simplistic approach.
If required it would be also possible to add restrictions like:
- max replication period of 5 or 15 mins between each replication run
Online failover
For the online failover, I am not sure if this meachnism would work. But I cannot see an issue as of now that it is not working in the given approach, since the ZFS replication shall work the same way. Or do I not understand something well?
Because after step 5, which maybe costly in terms of high bandwidth usage, we could do:
6. rerun from step 2. and enforce memory snapshot
7. migrate the VM to new host