guglgrid.blogg.se

Openzfs snapshot
Openzfs snapshot














To do so, specify the name of the hold tag and the name of the snapshot: zfs release keepme holds TAG TIMESTAMP If I no longer need to hold this snapshot and actually want to delete it, I’ll need to first release its hold. Now that this snapshot has a hold, I am unable to delete the snapshot: zfs destroy destroy snapshot dataset is busy

openzfs snapshot

To see the list of holds on a snapshot, specify the snapshot name: zfs holds TAG keepme Thu Aug 19 11:04 2021 Here I’ll create a hold tag of keepme on snapshot3: zfs hold keepme can use any value you want for the tag that reminds you why you created the hold, as long as the snapshot doesn’t already have a tag using that same value. To create a hold, specify a name for the hold (known as a tag) and the name of the snapshot. NAME USED AVAIL REFER 72K - 1.99M 72K - 2.03M 520K - 260M 0B - 259M -īut what if I have a snapshot that I don’t want even the root user or an errant deletion script to destroy? Perhaps that snapshot represents a baseline point-in-time that I might wish to return to. Enter zfs-hold(8): Hold a snapshot to prevent it being removed with the zfs destroy command. NAME USED AVAIL REFER 72K - 1.99M 64K - 2.03M 64K - 2.00M 512K - 260M 0B - 259M -Īnd here goes snapshot4: zfs destroy list -t snapshot Here I delete and verify the deletion of snapshot1: zfs destroy list -t snapshot NAME USED AVAIL REFER 80K - 96K 72K - 1.99M 64K - 2.03M 64K - 2.00M 512K - 260M 0B - 259M -īy default, as the root user, I can destroy any of these snapshots. Here is a listing of the available snapshots: zfs list -t snapshot On a FreeBSD 13.0 test system, I created a series of snapshots of the home directory in the default zroot pool.

openzfs snapshot openzfs snapshot

Openzfs snapshot how to#

Earlier in this series, we discussed the Basics of ZFS Snapshot Management: how to create OpenZFS snapshots, restore files from a snapshot, and delete snapshots. Today’s article dives a bit deeper into OpenZFS snapshot management with snapshot holds, clone creation and promotion, and assigning permissions to snapshot-related operations.














Openzfs snapshot