Just discard changed data since snapshot in "rbd rollback" command
Rolling back images is painfully slow. Yes, I know, "rbd clone", but this creates another image and automatic-snapshotting-backuppers get failed.
Why not to bring image to the state of specified snapshot ?
#1 Updated by Jason Dillaman almost 3 years ago
- Project changed from Ceph to rbd
- Subject changed from Just discard changed data since snapshot in "rbd roollback" command to Just discard changed data since snapshot in "rbd rollback" command
Only possible if you are rolling back to the most recent snapshot. If you are rolling back to an older snapshot, you would need to copy the older data to the HEAD revision instead of just deleting the HEAD revision to expose the most recent snapshot.
#4 Updated by Jason Dillaman almost 3 years ago
- Status changed from In Progress to Rejected
I quickly hacked this up and it turns out the OSDs don't actually allow you to do this. The low-level, internal transactions within the OSD will still clone the HEAD object and then "delete" it, which results in a zeroed object at HEAD.