time-slider enters maintenance after time adjustments
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
--------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:
but this change has not made it into the time-slider that exists in oi_151a7.
Updated by Ken Mays about 8 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
$ zfs list -t snapshot
$ check /var/svc/log/application-time-slider:default.log for hourly snapshot errors
Note: Use oi_151a7 or higher.