[zfs-discuss] Best process for recovering a snapshot and not losing the latest version
ruben at vfn-nrw.de
Thu May 19 00:51:25 EDT 2016
Actually you don't want to rollback if you expect any data left. The rollback feature is used when you tried something which doesn't work or want a clean state before retrying an operation.
In any other situation you want to clone the specific snapshot which was done before the event happened and than promote it. After this operation you can just run off the machine from this cloned snapshot without affecting the other snapshots or the old running state which was effected.
Since you don't copy any data but just reorganize the data hold by the snapshot, both operations should be completed in minutes.
> Am 19.05.2016 um 05:00 schrieb Ryan How via zfs-discuss <zfs-discuss at list.zfsonlinux.org>:
> Hi Everyone,
> I've had an issue pop up several times with VMs when rolling back to a snapshot, but not wanting to lose the latest data on the VM.
> The specific situation that has happened a few times where a virtual server has been hit by a virus.
> I can rollback the server to the last snapshot and spin it up again, virus free, but in the window between the last snapshot and the virus hitting there is data loss.
> It would take an hour to copy the entire VM before I rollback the snapshot and I like to try and keep downtime as minimal as possible.
> At the moment I've just come to accept a small amount of data loss in the window. And sometimes a quick application level backup from within the VM (if it is functioning) can save most of the data, but it isn't as foolproof as a snapshot and means that the VM needs to be functioning (and online, which is sometimes dangerous at this point).
> It would be great to be able to clone a snapshot, then rollback to an earlier version without needing to destroy the clone, but not having to copy the entire filesystem, but that isn't possible to my knowledge.
> Has anyone got any great techniques for handling this situation?
> Cheers, Ryan
> zfs-discuss mailing list
> zfs-discuss at list.zfsonlinux.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the zfs-discuss