Project

General

Profile

Actions

Feature #22456

open

efficient snapshot rollback

Added by Марк Коренберг over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Snapshots
Target version:
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Component(RADOS):
Pull request ID:

Description

#21305 :

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 ?

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.

Yes, ability to do FAST rollback to latest snapshot will be huge improvement, IMHO.

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. There is nothing RBD can do -- you can perhaps open a new ticket against RADOS to optimize snap rollback directly.

So, I have done that.

Actions #1

Updated by Josh Durgin over 6 years ago

  • Tracker changed from Bug to Feature
  • Subject changed from Discard changed data since snapshot in "rbd rollback" command. to efficient snapshot rollback
Actions

Also available in: Atom PDF