Inaccurate Design

Enabling Time Slider on Solaris 11 Express

Saturday, 9 July 2011

For those who don’t know, Time Slider is the equivilent of OS’s Time Machine. it enabled automatic snapshots of ZFS filesystems for point-in-time recoveries. Best of all, if you use Solaris 11 as a fileserver for a Windows system, the snapshotted versions of files will appear in the Previous Versions tab of the file properties!

Time Slider will automatically snapshot at the following intervals (remember, snapshots start at 0 in size and only grow when you modify or delete data. If you don’t modify data, or only add data to a filesystem, then snapshots are free! It’s also smart enough not to fill up your drive):

frequent: every 15 mins, keeps 4 snapshots
hourly: every 60 mins, keeps 24 snapshots
daily: every 24 hours, keeps 31 snapshots
weekly: every 7 days, keeps 7 snapshots
monthly: every 1 months, keeps 12 snapshots

For Time Slider to work, you need the GNOME packages installed (a pain, but time slider needs the notification systems and such).

solaris@solaris:~$ sudo pkg install slim_install

Then enable the time-slider services:

solaris@solaris:~$ sudo svcadm enable auto-snapshot:frequent
solaris@solaris:~$ sudo svcadm enable auto-snapshot:hourly
solaris@solaris:~$ sudo svcadm enable auto-snapshot:daily
solaris@solaris:~$ sudo svcadm enable auto-snapshot:weekly
solaris@solaris:~$ sudo svcadm enable auto-snapshot:monthly
solaris@solaris:~$ sudo svcadm enable time-slider/plugin:zfs-send
solaris@solaris:~$ sudo svcadm enable time-slider/plugin:rsync
solaris@solaris:~$ sudo svcadm enable time-slider

(I had to reboot at this point to get the time-slider service out of maintenance mode). After a while you should see snapshots starting to appear:

solaris@solaris:~$ zfs list -t snapshot
NAME                                                  USED  AVAIL  REFER  MOUNTPOINT
data/storage@zfs-auto-snap_monthly-2011-07-09-13h42      0      -   789G  -
rpool/ROOT/solaris@install                           97.5M      -  2.04G  -