Comments on: ZFS Administration, Part XII- Snapshots and Clones https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/ Linux. GNU. Freedom. Mon, 09 Oct 2017 10:42:05 +0000 hourly 1 https://wordpress.org/?v=4.9-alpha-41547 By: Simone Baglioni https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-270096 Thu, 04 May 2017 14:49:32 +0000 http://pthree.org/?p=2900#comment-270096 Hi, excellent work. I always go back to this pages about ZFS. I think there's a typo here: " The clone does not need to reside in the same dataset as the clone, but it does need to reside in the same storage pool."... one of the two "clone" should be "snapshot".

]]>
By: Pritchard Musonda https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-262791 Mon, 25 Apr 2016 18:40:10 +0000 http://pthree.org/?p=2900#comment-262791 Just wanted to say this is the most comprehensive set of tutorials on ZFS for linux available on the internet. Thank you!

]]>
By: Wade Fitzpatrick https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-236841 Mon, 13 Jul 2015 05:01:42 +0000 http://pthree.org/?p=2900#comment-236841 It might be worth mentioning that a snapshot is really just a reference to the merkle tree (see the Copy-on-write section) at the point in time that the snapshot was created. Therefore destroying the snapshot is only destroying the reference to the data in the snapshot. It is also the reason why creating and deleting snapshots is instantaneous.

If you have a file in a dataset, snapshot the dataset then remove the file from the original dataset, you can still access it via the snapshot. The original dataset no longer has a reference to the file but the snapshot does. So when you destroy the dataset, you remove the last remaining reference to it and ZFS can then re-use that space.

]]>
By: Aaron Toponce https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-230594 Thu, 02 Apr 2015 15:48:30 +0000 http://pthree.org/?p=2900#comment-230594 Correct. When destroying the snapshot, you are only destroying the snapshot itself, not the data it points to.

]]>
By: HSN https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-230433 Mon, 30 Mar 2015 15:48:03 +0000 http://pthree.org/?p=2900#comment-230433 When you destroy a snapshot you are not actually destroying user data from that snapshot, correct? I mean the most recent data in the dataset will still have all your up-to-the instant changes. If that is true then destroying a snapshot effectively merges that with the previous one in the chain.

]]>
By: Aaron Toponce https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-219386 Tue, 09 Dec 2014 17:52:54 +0000 http://pthree.org/?p=2900#comment-219386 I'm not sure what you mean by "volume". You snapshot datasets. The snapshot then keeps a delta of any deltas after the snapshot. If you rollback the snapshot, then the data on the dataset will be restored to the time you took the snapshot.

]]>
By: Martin Colello https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-209896 Wed, 22 Oct 2014 21:27:21 +0000 http://pthree.org/?p=2900#comment-209896 If I snap the volume, and then roll back the snap, does that mean all filesystems on that volume are rolled back also?

Please email me if you know the answer.

]]>
By: RvdK https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-134648 Tue, 13 May 2014 14:02:58 +0000 http://pthree.org/?p=2900#comment-134648 Wow...this is easily the best explanation of snapshots/clones I've found yet!

]]>
By: Steve Yuroff https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-131941 Mon, 20 Jan 2014 19:04:20 +0000 http://pthree.org/?p=2900#comment-131941 A small correction: you say "However, once the data begins to change, the snapshot will begin storing data."
No, the production filesystem starts storing data. I know you know this, but as this series is a great benefit to those wrapping their heads around ZFS concepts, this is a point worth clarifying.

I think this section would also benefit from documenting how the .zfs directory can be used to navigate to a file or folder and duplicating that content vs rolling back the entire filesystem to the snapshot state. I experience needing a file or directory restore from previous version much more often than an entire filesystem.

]]>
By: Truxton Fulton https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-131909 Fri, 17 Jan 2014 07:11:06 +0000 http://pthree.org/?p=2900#comment-131909 Thank you Aaron, for these ZFS articles. I have started using ZFS for linux in the last few weeks, and your articles are the most succinct source of information that searching could find. I'm still experimenting with my 12 TB raidz3 pool, but after learning not to use the "sda", "sdb" disk identifiers, I'm rapidly getting comfortable with the idea of trusting my new filesystem. I appreciate you sharing your knowledge.

]]>
By: Chris https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-131081 Sun, 08 Dec 2013 16:48:24 +0000 http://pthree.org/?p=2900#comment-131081 one question, just to clarify: assume I create a snapshot, clone it and then write files to the clone. Will these files be written to the snapshot and therefore change the snapshot or will these files be stored at another position. Basically, the question is if cloning a snapshot makes the snapshot writable or if cloning makes a writable snapshot of the snapshot. (in the later the original snapshot should be restored after deleting the clone).

]]>
By: Ahmed Kamal https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-128449 Mon, 22 Jul 2013 20:51:28 +0000 http://pthree.org/?p=2900#comment-128449 Worth noting that if you clone a snapshot, that snapshot cannot be deleted afterwards. If you really want to delete it, you can "zfs promote" the clone to a full file-system, and reverse the parent-child relationship, enabling you to delete the origin snapshot

]]>
By: Aaron Toponce : ZFS Administration, Appendix A- Visualizing The ZFS Intent LOG (ZIL) https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-124841 Fri, 19 Apr 2013 14:15:46 +0000 http://pthree.org/?p=2900#comment-124841 [...] Snapshots and Clones [...]

]]>
By: Aaron Toponce : ZFS Administration, Part XIII- Sending and Receiving Filesystems https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-124820 Fri, 19 Apr 2013 10:59:06 +0000 http://pthree.org/?p=2900#comment-124820 [...] Snapshots and Clones [...]

]]>
By: Aaron Toponce : ZFS Administration, Part XVI- Getting and Setting Properties https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-122826 Tue, 08 Jan 2013 04:18:58 +0000 http://pthree.org/?p=2900#comment-122826 [...] Snapshots and Clones [...]

]]>
By: Aaron Toponce : ZFS Administration, Part XVII- Best Practices and Caveats https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-122824 Tue, 08 Jan 2013 04:18:09 +0000 http://pthree.org/?p=2900#comment-122824 [...] Snapshots and Clones [...]

]]>
By: Aaron Toponce : ZFS Administration, Part XV- iSCSI, NFS and Samba https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-122518 Tue, 01 Jan 2013 18:04:26 +0000 http://pthree.org/?p=2900#comment-122518 [...] Snapshots and Clones [...]

]]>
By: Aaron Toponce : ZFS Administration, Part IV- The Adjustable Replacement Cache https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/#comment-122029 Thu, 20 Dec 2012 15:08:33 +0000 http://pthree.org/?p=2900#comment-122029 [...] Snapshots and Clones [...]

]]>