Why does an intermediate snapshot have to be destroyed to rollback an earlier snapshot #13667
Replies: 3 comments 4 replies
-
Currently all the snapshots are organized in a sequence. What you suggest
will make them organized in a tree: one parent snapshot can have multiple
children snapshots. It makes management more complicated. You can actually
keep the intermediate snapshot if you want by using 'zfs clone, zfs
promote'. This will explicitly instruct zfs that you would like to have a
tree of snapshots.
…On Tue, Jul 19, 2022 at 1:01 PM unkownerror1 ***@***.***> wrote:
I use ZFS version 0.8.6.
I have 3 ***@***.***, ***@***.***, ***@***.*** when i rollback
***@***.***, ***@***.*** will be destroyed, why not keep ***@***.***
[image: image]
<https://user-images.githubusercontent.com/109565529/179654234-f29d27de-ad87-473c-b398-6cbbc01c9f61.png>
—
Reply to this email directly, view it on GitHub
<#13667>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXQ6HKIKV3SI6JGRURK3MTVUYK7FANCNFSM536M2FXQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
… On Tue, Jul 19, 2022 at 2:21 PM unkownerror1 ***@***.***> wrote:
I do not understand why following my suggestion would make them organized
in a tree
—
Reply to this email directly, view it on GitHub
<#13667 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXQ6HJWCTUR32YJFPNSYGDVUYUNFANCNFSM536M2FXQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Currently, AIUI, the way ZFS decides whether something can be actually deleted is "are there any snapshots present between [creation of thing] and [deletion of thing]", which relies on there being one timeline of things with one creation and one deletion time. If, given snapshots A,B,C,D, you rolled back to snapshot B, and then made changes, you would then have timeline A,B,C,D, and also timeline A,B,E, and the requirement for lifetimes of things to only have a single start and stop is broken and significantly more complicated to reason about. (Conceptually, one could use something like #13392 to implement a clone-like operation where you end up with the equivalent of |
Beta Was this translation helpful? Give feedback.
-
I use ZFS version 0.8.6.
I have 3 snapshots,xxx/fs2@1, xxx/fs2@2, xxx/fs2@3. when i rollback xxx/fs2@2, xxx/fs2@3 will be destroyed, why not keep xxx/fs2@3
Beta Was this translation helpful? Give feedback.
All reactions