How to Manage the Automatic ZFS Snapshot Service

compared with
Current by sleeplessinsolarisland
on May 13, 2009 15:42.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (9)

View page history
h2. How to Manage the Automatic ZFS Snapshot Service
The Time Slider automatic snapshot tool automatically takes snapshots of ZFS file systems and enables you to browse and recover snapshots of file systems.
monthly snapshots every month, keeping 12 snapshots
{code}

h5. Before You Begin

Use the steps below to add yourself to the zfssnap role if you want to modify the Time Slider behavior with the GNOME file manager.
* From the System menu, choose Administration
* Then, select the Users and Groups tool
* Select your user account and select the properties menu
* Select the User roles tab and select the zfssnap role
* Click the OK button
* From the Users and Group screen, click the OK button
* Confirm that you are added to the zfssnap role from a terminal window:
$ *roles*
root,zfssnap

h5. Steps
# {include:root_step}
# *Enable the Time Slider service, which is disabled by default.*
You can enable or disable these services from the command line or from the System → Preferences Administration → Time Slider Setup menu. From this menu, you can also customize which ZFS file systems to snapshot and adjust the file system capacity setting for when snapshots are removed.
# *Review the default automatic snapshot service instances that are started when the Time Slider service is enabled.*
{code}
{code}
# zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
rpool@zfs-auto-snap:weekly-2008-11-13-15:39 0 - 46.5K -
rpool@zfs-auto-snap:daily-2008-11-13-15:39 0 - 46.5K -
rpool@zfs-auto-snap:hourly-2008-11-13-15:39 0 - 46.5K -
rpool@zfs-auto-snap:frequent-2008-11-13-15:39 0 - 46.5K -
rpool/ROOT@zfs-auto-snap:weekly-2008-11-13-15:39 0 - 18K -
rpool/ROOT@zfs-auto-snap:daily-2008-11-13-15:39 0 - 18K -
rpool/ROOT@zfs-auto-snap:hourly-2008-11-13-15:39 0 - 18K -
rpool/ROOT@zfs-auto-snap:frequent-2008-11-13-15:39 0 - 18K -
rpool@zfs-auto-snap:monthly-2009-05-12-15:46 0 - 78.5K -
rpool@zfs-auto-snap:weekly-2009-05-12-15:46 0 - 78.5K -
rpool@zfs-auto-snap:daily-2009-05-12-15:46 0 - 78.5K -
rpool@zfs-auto-snap:hourly-2009-05-13-14:00 18K - 78.5K -
rpool@zfs-auto-snap:frequent-2009-05-13-14:45 18K - 78.5K -
rpool@zfs-auto-snap:hourly-2009-05-13-15:01 0 - 78.5K -
rpool@zfs-auto-snap:frequent-2009-05-13-15:15 0 - 78.5K -
rpool@zfs-auto-snap:frequent-2009-05-13-15:30 0 - 78.5K -
.
.
In the following example, all automatic snapshots in the bash shell are removed.
{code}
for s in `zfs $(zfs list -H -o name -t snapshot | grep @zfs-auto-snap`);
do zfs destroy $s; done
{code}
 
In the OpenSolaris 2009.06 release, you can remove automatic ZFS snapshots from the Time Slider tool.
{include:bottom_navigation}

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact