[OpenIndiana-discuss] zfs-auto-snapshot yet again

Roman Naumenko roman at naumenko.ca
Thu Mar 21 02:42:19 UTC 2013


DormitionSkete at hotmail.com said the following, on 19-03-13 7:14 PM:
> On Mar 18, 2013, at 10:00 PM, Roman Naumenko wrote:
>> Hi,
>>
>> Just wanted to ask if this is the latest version of time-slider?
>>
>> data:~$ pkginfo -l SUNWgnome-time-slider
>>    PKGINST:  SUNWgnome-time-slider
>>       NAME:  Time Slider ZFS snapshot management for GNOME
>>   CATEGORY:  GNOME2,application,JDSoi
>>       ARCH:  i386
>>    VERSION:  0.2.97,REV=110.0.4.2011.04.17.15.25
>>    BASEDIR:  /
>>     VENDOR:  Sun Microsystems, Inc.
>>       DESC:  Time Slider ZFS snapshot management for GNOME
>>   INSTDATE:  Feb 26 2013 07:39
>>    HOTLINE:  Please contact your local service provider
>>     STATUS:  completely installed
>>
>> It's not managing snapshots very reliably.
>> For example, an error below is similar to what was discussed here https://www.illumos.org/issues/1013 couple of year ago.
>>
>> tail /var/svc/log/application-time-slider\:default.log
>> Snapshot monitor thread exited.
>> [ Mar 17 23:51:50 Stopping because all processes in service exited. ]
>> [ Mar 17 23:51:50 Executing stop method (:kill). ]
>> [ Mar 17 23:51:50 Executing start method ("/lib/svc/method/time-slider start"). ]
>> [ Mar 17 23:51:52 Method "start" exited with status 0. ]
>> [ Mar 18 20:55:31 Enabled. ]
>> [ Mar 18 20:56:09 Executing start method ("/lib/svc/method/time-slider start"). ]
>> [ Mar 18 20:56:16 Method "start" exited with status 0. ]
>> Failed to create snapshots for schedule: daily
>> Caught RuntimeError exception in snapshot manager thread
>> Error details:
>> --------BEGIN ERROR MESSAGE--------
>> ['/usr/bin/pfexec', '/usr/sbin/zfs', 'snapshot', '-r', 'pool1/groupd/vol1 at zfs-auto-snap_daily-2013-03-18-23h51'] failed with exit code 1
>> cannot create snapshot 'pool1/groupd/vol1/snap20130315 at zfs-auto-snap_daily-2013-03-18-23h51': dataset already exists
>> no snapshots were created
>>
>> Has anybody had positive experience with zfs-auto-snapshot and what version you're using then?
>>
>> --Roman
>>
> Well, nobody else has piped in, so I guess I will, for what it's worth.
>
> My pkginfo looks the same as yours.  My logs don't show any errors, thank God.  (I did  a "cat" on it, too.  No errors.)
>
> I'm not sure how helpful it is to you.  The bug report you mentioned was for more complex configurations.  Mine is a a simple, default configuration.
>
> Apparently, from what others have said on this list, you have to change the root password before enabling the time slider -- at least for the gui, anyway, as I understand.
>
> I had already done that.  Then I went into the gui app, and enabled Time Slider with the defaults.
>
> I hope this helps.
>
> fp
>
>
> dsadmin at trinity.dsicons.net:~$ su
> Password:
> dsadmin at trinity.dsicons.net:~# pkginfo -l SUNWgnome-time-slider
>     PKGINST:  SUNWgnome-time-slider
>        NAME:  Time Slider ZFS snapshot management for GNOME
>    CATEGORY:  GNOME2,application,JDSoi
>        ARCH:  i386
>     VERSION:  0.2.97,REV=110.0.4.2011.04.17.15.25
>     BASEDIR:  /
>      VENDOR:  Sun Microsystems, Inc.
>        DESC:  Time Slider ZFS snapshot management for GNOME
>    INSTDATE:  Oct 04 2012 23:26
>     HOTLINE:  Please contact your local service provider
>      STATUS:  completely installed
>
> dsadmin at trinity.dsicons.net:~# tail /var/svc/log/application-time-slider\:default.log
> [ Mar 18 15:00:25 Executing start method ("/lib/svc/method/time-slider start"). ]
> [ Mar 18 15:00:37 Method "start" exited with status 0. ]
> [ Mar 18 22:26:55 Stopping because service disabled. ]
> [ Mar 18 22:26:55 Executing stop method (:kill). ]
> [ Mar 19 15:04:51 Enabled. ]
> [ Mar 19 15:05:02 Executing start method ("/lib/svc/method/time-slider start"). ]
> [ Mar 19 15:05:18 Method "start" exited with status 0. ]
> [ Mar 19 16:13:22 Enabled. ]
> [ Mar 19 16:13:46 Executing start method ("/lib/svc/method/time-slider start"). ]
> [ Mar 19 16:14:05 Method "start" exited with status 0. ]
> dsadmin at trinity.dsicons.net:~#
>
I don't have gui, that just a storage server. And it didn't complain 
about permissions, rather recursive snapshots.
So I had to completely whack recursive from 
/usr/share/time-slider/lib/time_slider/zfs.py

         #no need for recursive snapshots!
         #if recursive == True:
         #    cmd.append("-r")

Then changed settings for auto-snapshot.xml and imported it back.

svccfg export auto-snapshot > auto-snapshot.smf
sudo svccfg import auto-snapshot.smf

Manually set false for whatever fs I didn't want snapshots
sudo zfs set com.sun:auto-snapshot:daily=false rpool/ROOT/oi_151a

Seems working now more or less as I wanted it to.

--Roman



More information about the OpenIndiana-discuss mailing list