How do I list all ZFS snapshots?
To list the snapshots created for a specific file system, enter zfs list -r -t snapshot followed by the file system name. In the example above, the snapshots created for the file system rpool/export/home are listed. This information is displayed by using the name and creation properties.
How do I restore a ZFS snapshot?
Restoring Data with ZFS Snapshots
- Create a filesystem:
- Create a snapshot with no data inside the filesystem:
- List out the filesystems and snapshots (otherwise known as children) for the yesYouCan filesystem:
- Start adding data into the filesystem’s mountpoint.
- Run the list command again.
Where are ZFS snapshots stored?
Snapshots of file systems are accessible in the . zfs/snapshot directory within the root of the file system. For example, if tank/home/ahrens is mounted on /home/ahrens , then the tank/home/ahrens@thursday snapshot data is accessible in the /home/ahrens/. zfs/snapshot/thursday directory.
How long does a ZFS snapshot take?
A snapshot is a read-only copy of a file system or volume. Snapshots can be created almost instantly, and they initially consume no additional disk space within the pool.
How does ZFS snapshot work?
A snapshot is a read-only copy of a file system or volume. Snapshots consume disk space directly from the same storage pool as the file system or volume from which they were created. Recursive snapshots are created quickly as one atomic operation.
How are ZFS snapshots so small?
The actual meta-data of snapshots are negligible. As a copy-on-write file system, ZFS snapshots only require space for modified data; creating a snapshot does not immediately duplicate everything. If you have a snapshot of given size, and then add or modify files summing up to 100GB, the snapshot will “cost” you 100GB.
Where do I Find my ZFS snapshots in Solaris?
Snapshots of file systems are accessible in the .zfs/snapshot directory within the root of the file system. For example, if tank/home/matt is mounted on /home/matt, then the tank/home/matt@thursday snapshot data is accessible in the /home/matt/.zfs/snapshot/thursday directory.
What should I know about Oracle Solaris ZFS?
1. Oracle Solaris ZFS File System (Introduction) 2. Getting Started With Oracle Solaris ZFS 3. Oracle Solaris ZFS and Traditional File System Differences 4. Managing Oracle Solaris ZFS Storage Pools 5. Managing ZFS Root Pool Components 6. Managing Oracle Solaris ZFS File Systems 7. Working With Oracle Solaris ZFS Snapshots and Clones 8.
Is there a maximum number of ZFS snapshots?
However, as data within the active dataset changes, the snapshot consumes disk space by continuing to reference the old data, thus preventing the disk space from being freed. ZFS snapshots include the following features: The persist across system reboots. The theoretical maximum number of snapshots is 2 64.
Can a snapshot be destroyed in Oracle Solaris?
In the previous Oracle Solaris release, a snapshot could only be destroyed by using the zfs destroy command if it had no clones. In this Oracle Solaris release, the snapshot must also have a zero user-reference count.