Hi all, in CephFS, creating and removing a snapshot is as easy as - mkdir .snap/SNAPSHOT_NAME - rmdir .snap/SNAPSHOT_NAME Both steps are completed in no time, because no data has to be moved around. However, what I cannot find is a way to revert to a snapshot. The only way I see is to rsync … .snap/SNAPSHOT_NAME/ . In this case all the data has to be moved around, with two main disadvantages: - takes forever - consumes double the space than before Is there a better way to do this? Cheers -- Andre Tann
On Thu, Dec 5, 2024 at 1:37 PM Andre Tann <atann@alphasrv.net> wrote:
Hi all,
in CephFS, creating and removing a snapshot is as easy as
- mkdir .snap/SNAPSHOT_NAME - rmdir .snap/SNAPSHOT_NAME
Both steps are completed in no time, because no data has to be moved around.
However, what I cannot find is a way to revert to a snapshot. The only way I see is to
rsync … .snap/SNAPSHOT_NAME/ .
In this case all the data has to be moved around, with two main disadvantages:
- takes forever - consumes double the space than before
Is there a better way to do this?
Unfortunately, there is not. Ceph snapshots are read only and I don’t think we will ever provide a “revert” functionality. What we would like to do is provide the ability to clone from a snapshot into a portion of the live filesystem (conceptually similar to an rbd clone). This is a big project but it’s on the road map. -Greg
Cheers -- Andre Tann _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
participants (2)
-
Andre Tann
-
Gregory Farnum