Re: [zfs-discuss] Time-slider - zfs auto-snapshot services transition to maintenance?

2008-11-20 Thread Malachi de Ælfweald
Sounds like you are having this problem:

http://malsserver.blogspot.com/2008/11/zfs-auto-snapshot-and-thus-time-slider.html


On Thu, Nov 20, 2008 at 5:47 PM, Victor Hooi <[EMAIL PROTECTED]> wrote:

> heya,
>
> I'm using OpenSolaris 2008.11 (101a), and trying to use the time-slider
> functionality.
>
> The SUNWgnoem-time-slider and SUNWzfs-auto-snapshot packages enabled, and
> I've enabled time-slider via System, Administration, Time-Slider Setup.
>
> However, the auto-snapshot services appear to go into maintenance when they
> try to make their snapshots, and the time-slider service then goes into
> offline.
>
> I've included some log output below, which should hopefully provided some
> more info.
>
> Cheers,
> Victor
>
> # svcs -a
> STATE  STIMEFMRI
> (lines removed)
> online  5:22:05 svc:/system/name-service-cache:default
> online 11:21:07 svc:/system/filesystem/zfs/auto-snapshot:weekly
> online 11:21:28 svc:/system/filesystem/zfs/auto-snapshot:daily
> offline1986 svc:/system/avahi-bridge-dsd:default
> offline12:00:02 svc:/application/time-slider:default
> maintenance12:00:02 svc:/system/filesystem/zfs/auto-snapshot:hourly
> maintenance12:00:02 svc:/system/filesystem/zfs/auto-snapshot:frequent
> #
>
> # svcs -xv
> svc:/system/filesystem/zfs/auto-snapshot:frequent (ZFS automatic snapshots)
>  State: maintenance since 21 November 2008 12:00:02 PM
> Reason: Restarter svc:/system/svc/restarter:default gave no explanation.
>   See: http://sun.com/msg/SMF-8000-9C
>   See: /var/svc/log/system-filesystem-zfs-auto-snapshot:frequent.log
> Impact: 1 dependent service is not running:
>svc:/application/time-slider:default
>
> svc:/system/filesystem/zfs/auto-snapshot:hourly (ZFS automatic snapshots)
>  State: maintenance since 21 November 2008 12:00:02 PM
> Reason: Restarter svc:/system/svc/restarter:default gave no explanation.
>   See: http://sun.com/msg/SMF-8000-9C
>   See: /var/svc/log/system-filesystem-zfs-auto-snapshot:hourly.log
> Impact: 1 dependent service is not running:
>svc:/application/time-slider:default
>
> svc:/network/dns/multicast:default (DNS Service Discovery and Multicast
> DNS)
>  State: disabled since 28 December 1986 11:00:07 AM
> Reason: Disabled by an administrator.
>   See: http://sun.com/msg/SMF-8000-05
>   See: man -M /usr/share/man -s 1M mdnsd
>   See: http://opensolaris.org/os/project/nwam/service-discovery/
> Impact: 1 dependent service is not running:
>svc:/system/avahi-bridge-dsd:default
> #
>
> # cat /var/svc/log/system-filesystem-zfs-auto-snapshot\:frequent.log
> [ Dec 28 11:00:19 Disabled. ]
> [ Dec 28 11:00:19 Rereading configuration. ]
> [ Nov 21 05:21:18 Enabled. ]
> [ Nov 21 05:21:18 Executing start method
> ("/lib/svc/method/zfs-auto-snapshot start"). ]
> Checking for non-recursive missed // snapshots
> Checking for recursive missed // snapshots datastore rpool
> Last snapshot for svc:/system/filesystem/zfs/auto-snapshot:frequent taken
> on Fri Nov 7 14:30 2008
> which was greater than the 15 minutes schedule. Taking snapshot now.
> cannot create snapshot 'rpool/ROOT/[EMAIL 
> PROTECTED]:frequent-2008-11-21-05:21':
> dataset is busy
> no snapshots were created
> Error: Unable to take recursive snapshots of [EMAIL PROTECTED]
> :frequent-2008-11-21-05:21.
> Moving service svc:/system/filesystem/zfs/auto-snapshot:frequent to
> maintenance mode.
> Moving service svc:/system/filesystem/zfs/auto-snapshot:frequent to
> maintenance mode.
> [ Nov 21 05:21:22 Method "start" exited with status 0. ]
> [ Nov 21 05:21:22 Stopping for maintenance due to administrative_request. ]
> [ Nov 21 05:21:22 Executing stop method ("/lib/svc/method/zfs-auto-snapshot
> stop"). ]
> [ Nov 21 05:21:23 Method "stop" exited with status 0. ]
> [ Nov 21 05:21:23 Stopping for maintenance due to administrative_request. ]
> [ Nov 21 11:21:20 Leaving maintenance because clear requested. ]
> [ Nov 21 11:21:20 Enabled. ]
> [ Nov 21 11:21:20 Executing start method
> ("/lib/svc/method/zfs-auto-snapshot start"). ]
> Checking for non-recursive missed // snapshots
> Checking for recursive missed // snapshots datastore rpool
> Last snapshot for svc:/system/filesystem/zfs/auto-snapshot:frequent taken
> on Fri Nov 21 5:21 2008
> which was greater than the 15 minutes schedule. Taking snapshot now.
> cannot create snapshot 'rpool/ROOT/[EMAIL 
> PROTECTED]:frequent-2008-11-21-11:21':
> dataset is busy
> no snapshots were created
> Error: Unable to take recursive snapshots of [EMAIL PROTECTED]
> :frequent-2008-11-21-11:21.
> Moving service svc:/system/filesystem/zfs/auto-snapshot:frequent to
> maintenance mode.
> Moving service svc:/system/filesystem/zfs/auto-snapshot:frequent to
> maintenance mode.
> [ Nov 21 11:21:21 Method "start" exited with status 0. ]
> [ Nov 21 11:21:21 Stopping for maintenance due to administrative_request. ]
> [ Nov 21 11:21:21 Executing stop method ("/lib/svc/method/zfs-auto-snapshot
> stop"). ]
> [ Nov 21 11:21:

[zfs-discuss] Time-slider - zfs auto-snapshot services transition to maintenance?

2008-11-20 Thread Victor Hooi
heya,

I'm using OpenSolaris 2008.11 (101a), and trying to use the time-slider 
functionality.

The SUNWgnoem-time-slider and SUNWzfs-auto-snapshot packages enabled, and I've 
enabled time-slider via System, Administration, Time-Slider Setup.

However, the auto-snapshot services appear to go into maintenance when they try 
to make their snapshots, and the time-slider service then goes into offline.

I've included some log output below, which should hopefully provided some more 
info.

Cheers,
Victor

# svcs -a
STATE  STIMEFMRI
(lines removed)
online  5:22:05 svc:/system/name-service-cache:default
online 11:21:07 svc:/system/filesystem/zfs/auto-snapshot:weekly
online 11:21:28 svc:/system/filesystem/zfs/auto-snapshot:daily
offline1986 svc:/system/avahi-bridge-dsd:default
offline12:00:02 svc:/application/time-slider:default
maintenance12:00:02 svc:/system/filesystem/zfs/auto-snapshot:hourly
maintenance12:00:02 svc:/system/filesystem/zfs/auto-snapshot:frequent
# 

# svcs -xv
svc:/system/filesystem/zfs/auto-snapshot:frequent (ZFS automatic snapshots)
 State: maintenance since 21 November 2008 12:00:02 PM
Reason: Restarter svc:/system/svc/restarter:default gave no explanation.
   See: http://sun.com/msg/SMF-8000-9C
   See: /var/svc/log/system-filesystem-zfs-auto-snapshot:frequent.log
Impact: 1 dependent service is not running:
svc:/application/time-slider:default

svc:/system/filesystem/zfs/auto-snapshot:hourly (ZFS automatic snapshots)
 State: maintenance since 21 November 2008 12:00:02 PM
Reason: Restarter svc:/system/svc/restarter:default gave no explanation.
   See: http://sun.com/msg/SMF-8000-9C
   See: /var/svc/log/system-filesystem-zfs-auto-snapshot:hourly.log
Impact: 1 dependent service is not running:
svc:/application/time-slider:default

svc:/network/dns/multicast:default (DNS Service Discovery and Multicast DNS)
 State: disabled since 28 December 1986 11:00:07 AM
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M mdnsd
   See: http://opensolaris.org/os/project/nwam/service-discovery/
Impact: 1 dependent service is not running:
svc:/system/avahi-bridge-dsd:default
# 

# cat /var/svc/log/system-filesystem-zfs-auto-snapshot\:frequent.log 
[ Dec 28 11:00:19 Disabled. ]
[ Dec 28 11:00:19 Rereading configuration. ]
[ Nov 21 05:21:18 Enabled. ]
[ Nov 21 05:21:18 Executing start method ("/lib/svc/method/zfs-auto-snapshot 
start"). ]
Checking for non-recursive missed // snapshots 
Checking for recursive missed // snapshots datastore rpool
Last snapshot for svc:/system/filesystem/zfs/auto-snapshot:frequent taken on 
Fri Nov 7 14:30 2008
which was greater than the 15 minutes schedule. Taking snapshot now.
cannot create snapshot 'rpool/ROOT/[EMAIL 
PROTECTED]:frequent-2008-11-21-05:21': dataset is busy
no snapshots were created
Error: Unable to take recursive snapshots of [EMAIL 
PROTECTED]:frequent-2008-11-21-05:21.
Moving service svc:/system/filesystem/zfs/auto-snapshot:frequent to maintenance 
mode.
Moving service svc:/system/filesystem/zfs/auto-snapshot:frequent to maintenance 
mode.
[ Nov 21 05:21:22 Method "start" exited with status 0. ]
[ Nov 21 05:21:22 Stopping for maintenance due to administrative_request. ]
[ Nov 21 05:21:22 Executing stop method ("/lib/svc/method/zfs-auto-snapshot 
stop"). ]
[ Nov 21 05:21:23 Method "stop" exited with status 0. ]
[ Nov 21 05:21:23 Stopping for maintenance due to administrative_request. ]
[ Nov 21 11:21:20 Leaving maintenance because clear requested. ]
[ Nov 21 11:21:20 Enabled. ]
[ Nov 21 11:21:20 Executing start method ("/lib/svc/method/zfs-auto-snapshot 
start"). ]
Checking for non-recursive missed // snapshots 
Checking for recursive missed // snapshots datastore rpool
Last snapshot for svc:/system/filesystem/zfs/auto-snapshot:frequent taken on 
Fri Nov 21 5:21 2008
which was greater than the 15 minutes schedule. Taking snapshot now.
cannot create snapshot 'rpool/ROOT/[EMAIL 
PROTECTED]:frequent-2008-11-21-11:21': dataset is busy
no snapshots were created
Error: Unable to take recursive snapshots of [EMAIL 
PROTECTED]:frequent-2008-11-21-11:21.
Moving service svc:/system/filesystem/zfs/auto-snapshot:frequent to maintenance 
mode.
Moving service svc:/system/filesystem/zfs/auto-snapshot:frequent to maintenance 
mode.
[ Nov 21 11:21:21 Method "start" exited with status 0. ]
[ Nov 21 11:21:21 Stopping for maintenance due to administrative_request. ]
[ Nov 21 11:21:21 Executing stop method ("/lib/svc/method/zfs-auto-snapshot 
stop"). ]
[ Nov 21 11:21:21 Method "stop" exited with status 0. ]
[ Nov 21 11:21:21 Stopping for maintenance due to administrative_request. ]
[ Nov 21 11:21:46 Leaving maintenance because clear requested. ]
[ Nov 21 11:21:46 Enabled. ]
[ Nov 21 11:21:46 Executing start method ("/lib/svc/method/zfs-auto-snapshot 
start"). ]
Checking for non-recursive missed // snapshots 
Checking for recursive missed /