User Tools

Site Tools


computing:storage:zfs_snapshot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:storage:zfs_snapshot [2021/07/08 11:11]
gcooper
computing:storage:zfs_snapshot [2024/04/05 06:59] (current)
gcooper
Line 1: Line 1:
 ====== ZFS Snapshots ====== ====== ZFS Snapshots ======
  
-https://docs.oracle.com/cd/E23824_01/html/821-1448/gavvx.html+**Oracle Documentation**: https://docs.oracle.com/cd/E23824_01/html/821-1448/gavvx.html
  
-ZFS snapshots can be a fast and easy way to perform backups.+**Napp-IT Replication Docs**: https://www.napp-it.org/extensions/replication.html
  
-:!: Napp-IT has a commercial (Pro) module available that performs ZFS snapshots and sends them to another ZFS server.+**Napp-IT Documentation**: https://napp-it.org/doc/downloads/napp-it.pdf 
 + 
 +<note important>ZFS snapshots can be a fast and easy way to enhance your disaster preparedness.</note> 
 + 
 +:!: Napp-IT has a commercial (Pro) Replication module available that performs ZFS snapshots and pulls them to another ZFS server.
  
 ===== Recover Data from Snapshots ===== ===== Recover Data from Snapshots =====
  
-**Snapshots are automatically mounted** under ''/$MOUNTPOINT/.zfs/snapshot/$SNAPSHOTNAME''.+==== By File ====
  
-Example with nested ZFS filesystem showing an NFS storage repository containing VHDs:+**Snapshots are automatically mounted** (read only) under ''/$FILESYSTEM/.zfs/snapshot/$SNAPSHOTNAME'' You can use the CLI to copy data you want to recover to another location. 
 + 
 +Example with a (three level) nested ZFS filesystem showing an NFS storage repository containing VHDs:
  
 <file> <file>
-/toplevel/midlevel/bottomlevel/.zfs/snapshot/job-name-job-ID_year.month.day.hour.min.sec/nfs_SR_ID/+/toplevelfs/midlevelfs/bottomlevelfs/.zfs/snapshot/job-name-job-ID_year.month.day.hour.min.sec/nfs_sr_id/
 </file> </file>
  
-You could also **clone the snapshot** if you don't want to muck with ''.zfs'', copy out your files/folders that need recovering, then destroy the clone.+==== Using Clones ==== 
 + 
 +:!: As with snapshots, creating a clone (writeable filesystem) is nearly instantaneous and initially consumes no additional disk space. Clones can only be created from snapshots. 
 + 
 +If you don't want to muck with the ''.zfs'' hidden folderyou could also: 
 + 
 +  - **Clone the snapshot** 
 +  - Copy out your files/folders that need recovering 
 +  - Destroy the clone 
 + 
 +==== Rollback ==== 
 + 
 +You can use the ZFS rollback feature to discard all changes made to a file system since a specific snapshot was createdThe file system reverts to its state at the time the snapshot was taken. 
 + 
 +<note warning>If you roll back, all intermediate snapshots and all clones based on them are destroyed without an undo option.</note>
  
 +For most rollback cases, using Windows and Previous Version is the suggested method for a roll back as you can restrict the rollback to files and folders.
  
 +You can use Napp-IT menu **ZFS-Filesystem -> Rollback** to initiate a rollback.
computing/storage/zfs_snapshot.1625764285.txt.gz · Last modified: 2021/07/08 11:11 by gcooper