Project

General

Profile

Bug #3527

time-slider enters maintenance after time adjustments

Added by Tim Coalson over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
2013-02-04
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

When daylight savings time ends, time gets adjusted back an hour, and time-slider goes into maintenance mode due to a snapshot with the "current" time already existing the next time it takes a snapshot after the time change.

Here is what the end of /var/svc/log/application-time-slider:default.log said when this happened at the end of daylight savings:

Failed to create snapshots for schedule: hourly
Caught RuntimeError exception in snapshot manager thread
Error details:
--------BEGIN ERROR MESSAGE--------
['/usr/bin/pfexec', '/usr/sbin/zfs', 'snapshot', '-r', 'mainpool@zfs-auto-snap_hourly-2012-11-04-01h07'] failed with exit code 1
cannot create snapshot 'mainpool@zfs-auto-snap_hourly-2012-11-04-01h07': dataset already exists
cannot create snapshot 'mainpool/storage@zfs-auto-snap_hourly-2012-11-04-01h07': dataset already exists
cannot create snapshot 'mainpool/rpoolbackup@zfs-auto-snap_hourly-2012-11-04-01h07': dataset already exists
no snapshots were created

--------END ERROR MESSAGE--------
Snapshot monitor thread exited.
[ Nov 4 01:07:47 Stopping because all processes in service exited. ]
[ Nov 4 01:07:47 Executing stop method (:kill). ]
[ Nov 4 01:07:47 Restarting too quickly, changing state to maintenance. ]

This appears to have been fixed here:

https://github.com/bdrewery/time-slider/commit/4ba07f0c289bbb4dff9c4555c9eed1de2c90ffed

but this change has not made it into the time-slider that exists in oi_151a7.

#1

Updated by Ken Mays over 7 years ago

  • Assignee set to OI JDS
#2

Updated by Ken Mays over 7 years ago

  • Status changed from New to Closed
  • Assignee changed from OI JDS to Ken Mays
  • % Done changed from 0 to 100

Update time-slider (>=0.2.101), best to reboot system for all services to enable properly.
enable sudo|pfexec for root privs, then:
$ svcadm enable auto-snapshot:frequent
$ svcadm enable auto-snapshot:hourly
$ svcadm enable auto-snapshot:daily
$ svcadm enable auto-snapshot:weekly
$ svcadm enable auto-snapshot:monthly
$ svcadm enable time-slider/plugin:zfs-send
$ svcadm enable time-slider/plugin:rsync
$ svcadm enable time-slider
$ reboot
$ zfs list -t snapshot
$ check /var/svc/log/application-time-slider:default.log for hourly snapshot errors
Note: Use oi_151a7 or higher.

#3

Updated by Pavel Cahyna over 7 years ago

Ken Mays wrote:

Update time-slider (>=0.2.101), best to reboot system for all services to enable properly.

How to update time-slider? Package Manager tells me that I have 0.2.97 and no updates are available.

Also available in: Atom PDF