Project

General

Profile

Bug #2652

auto-snapshot problems in 151a3

Added by Richard PALO over 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-04-24
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

not clear if related to https://www.illumos.org/issues/1013

yesterday, after enabling time-slider and initially auto-snapshot:frequent,hourly,daily,monthly
I enabled via time-slider-setup my home directory
after noticing that frequent and hourly being forcibly too much, I disabled them
leaving

$ svcs -a | egrep  '(zfs)|(time)'
disabled       avr._18  svc:/system/filesystem/zfs/auto-snapshot:hourly
disabled       14:30:26 svc:/application/time-slider/plugin:rsync
disabled       15:05:10 svc:/system/filesystem/zfs/auto-snapshot:frequent
online         avr._18  svc:/network/shares/group:zfs
online         14:30:26 svc:/application/time-slider:default
online         14:30:26 svc:/system/filesystem/zfs/auto-snapshot:weekly
online         14:30:26 svc:/system/filesystem/zfs/auto-snapshot:monthly
online         14:30:27 svc:/application/time-slider/plugin:zfs-send
online         14:30:27 svc:/system/filesystem/zfs/auto-snapshot:daily

unfortunately, I don't see any dailies or weeklies yet, but monthly is there.
also, frequent seems to keep on going even though disabled!!!

$ zfs get -r com.sun:auto-snapshot rpool
NAME                                                               PROPERTY               VALUE                  SOURCE
rpool                                                              com.sun:auto-snapshot  -                      -
rpool/ROOT                                                         com.sun:auto-snapshot  -                      -
rpool/ROOT/oi_151a.1.3                                             com.sun:auto-snapshot  -                      -
rpool/ROOT/oi_151a.1.3@2012-04-16-09:21:21                         com.sun:auto-snapshot  -                      -
rpool/ROOT/oi_151a2                                                com.sun:auto-snapshot  -                      -
rpool/dump                                                         com.sun:auto-snapshot  false                  local
rpool/export                                                       com.sun:auto-snapshot  -                      -
rpool/export/dossiers                                              com.sun:auto-snapshot  -                      -
rpool/export/home                                                  com.sun:auto-snapshot  -                      -
rpool/export/home/dev                                              com.sun:auto-snapshot  -                      -
rpool/export/home/richard                                          com.sun:auto-snapshot  true                   local
rpool/export/home/richard@zfs-auto-snap_frequent-2012-04-24-10h01  com.sun:auto-snapshot  true                   inherited from rpool/export/home/richard
rpool/export/home/richard@zfs-auto-snap_frequent-2012-04-24-10h16  com.sun:auto-snapshot  true                   inherited from rpool/export/home/richard
rpool/export/home/richard@zfs-auto-snap_frequent-2012-04-24-10h31  com.sun:auto-snapshot  true                   inherited from rpool/export/home/richard
rpool/export/home/vboxuser                                         com.sun:auto-snapshot  -                      -
rpool/postgres                                                     com.sun:auto-snapshot  -                      -
rpool/postgres/9.1-pgdg                                            com.sun:auto-snapshot  -                      -
rpool/postgres/9.1-pgdg/data_64                                    com.sun:auto-snapshot  -                      -
rpool/swap                                                         com.sun:auto-snapshot  false                  local
rpool/zones                                                        com.sun:auto-snapshot  -                      -

extract from /var/svc/log/system-filesystem-zfs-auto-snapshot:frequent.log

[ avr. 23 14:26:27 Executing start method (null). ]
[ avr. 23 14:30:26 Stopping because dependency activity requires stop. ]
[ avr. 23 14:30:26 Executing stop method (null). ]
[ avr. 23 14:30:26 Executing start method (null). ]
[ avr. 23 14:30:26 Stopping because dependency activity requires stop. ]
[ avr. 23 14:30:26 Executing stop method (null). ]
[ avr. 23 14:30:27 Executing start method (null). ]
[ avr. 23 15:05:10 Stopping because service disabled. ]
[ avr. 23 15:05:10 Executing stop method (null). ]

extract from /var/svc/log/system-filesystem-zfs-auto-snapshot:daily.log

[ avr. 23 14:25:09 Enabled. ]
[ avr. 23 14:25:09 Executing start method (null). ]
[ avr. 23 14:30:26 Stopping because dependency activity requires stop. ]
[ avr. 23 14:30:26 Executing stop method (null). ]
[ avr. 23 14:30:26 Executing start method (null). ]
[ avr. 23 14:30:26 Stopping because dependency activity requires stop. ]
[ avr. 23 14:30:27 Executing stop method (null). ]
[ avr. 23 14:30:27 Executing start method (null). ]

properties from daily:

$ svcprop daily
zfs/interval astring days
zfs/keep astring 6
zfs/period astring 1
general/action_authorization astring solaris.smf.manage.zfs-auto-snapshot
general/enabled boolean false
general/value_authorization astring solaris.smf.manage.zfs-auto-snapshot
general/entity_stability astring Unstable
time-slider/entities fmri svc:/application/time-slider
time-slider/grouping astring require_all
time-slider/restart_on astring refresh
time-slider/type astring service
manifestfiles/var_svc_manifest_system_filesystem_auto-snapshot_xml astring /var/svc/manifest/system/filesystem/auto-snapshot.xml
startd/duration astring transient
start/exec astring :true
start/timeout_seconds count 10
start/type astring method
stop/exec astring :true
stop/timeout_seconds count 10
stop/type astring method
refresh/exec astring :true
refresh/timeout_seconds count 10
refresh/type astring method
tm_common_name/C ustring ZFS\ automatic\ snapshots
tm_description/C ustring This\ service\ provides\ system\ configuration\ for\ taking\ automatic\ snapshots\ of\ ZFS\
filesystems.\
\
In\ order\ to\ use\ this\ service,\ you\ must\ enable\ the\ time-slider\ service\ plus\ at\ least\ one\ auto-snapshot\
instance\ per\ set\ of\ automatic\ snapshots\ you\ want\ to\ take.\
The\ time-slider\ service\ will\ manage\ the\ creation\ and\ destruction\ of\ snapshots\ according\ to\ the\ definitions\
of\ each\ auto-snapshot\ service\ instance.\
\
On\ stopping\ the\ service,\ time-slider\ will\ cease\ to\ take\ snapshots\ for\ the\ specific\ instance.
restarter/logfile astring /var/svc/log/system-filesystem-zfs-auto-snapshot:daily.log
restarter/start_method_timestamp time 1335184227.032506000
restarter/start_method_waitstatus integer 0
restarter/auxiliary_state astring dependencies_satisfied
restarter/next_state astring none
restarter/state astring online
restarter/state_timestamp time 1335184227.034689000
restarter_actions/auxiliary_tty boolean true
restarter_actions/auxiliary_fmri astring svc:/application/graphical-login/gdm:default

will try to disable all and reenable to see if frequent stops, quite disconcerting actually.

#1

Updated by Richard PALO over 8 years ago

I finally rebooted and noticed some messages...
raised the default limit from 80% to 90% (I was at 79%)...

Apr 24 10:31:37 x3200 time-sliderd: [ID 702911 daemon.warning] rpool exceeded 80% capacity. Hourly and daily automatic snapshots were destroyed
Apr 24 10:46:38 x3200 time-sliderd: [ID 702911 daemon.notice] No more daily snapshots left
Apr 24 10:46:38 x3200 time-sliderd: [ID 702911 daemon.notice] No more hourly snapshots left

will see if I get some daily snapshots now.

#2

Updated by Richard PALO over 8 years ago

  • Status changed from New to Feedback
#3

Updated by Richard PALO over 8 years ago

dailies seem to be ok now that the limit was raised, the problem of frequent continuing after disable remains a mystery but after reboot things seems to behave alright now. fwiw

#4

Updated by Ken Mays almost 8 years ago

  • Status changed from Feedback to Closed

Closing ticket based on user input and did not see another reported issue for oi_151a7.

Also available in: Atom PDF