[OpenIndiana-discuss] Any have a ready made script to run from cron for snapshots

Harry Putnam reader at newsguy.com
Sun Dec 5 23:29:10 UTC 2010


Sriram Narayanan <sriram at belenix.org> writes:

> On Mon, Dec 6, 2010 at 3:42 AM, Harry Putnam <reader at newsguy.com> wrote:
>> Sriram Narayanan <sriram at belenix.org> writes:
>
> ...
>> However the work you pointed too looks like it will be a very nice
>> tool once some of the wrinkles are ironed out.
>>
>
> Actually, this evolved into the auto snapshot service which you're
> unable to get working :)
>
> What does your service log stored at /var/sadm/svc/ say about startup
> errors for this specific service ?

Well, since that post you are quoting, I've trashed that install and
done another fresh one.... this time I have'nt touched the slider
since I have no gui.... gdm isn't running, even though in past
installes it was.... even when I installed from the Text ISO.

So I'm not even sure it will be a problem yet.  But for the record I
did post some identical log messages in an earlier thread I started:

  Subject: auto-snaps cannot be started is this the known bug[s]

Below is a reprint of it.  Only note that the time sequence is like
this:

New install 1 = the one refernced in reprint below
New install 2 = The one this thread arose from
New install 3 =  The one I'm currently working on.  So far no X
desktop so I haven't monkeyed with the time slider.

1 and 2 both had the same problem.  3 is on a different machine and
done with the Text iso.  So far I don't know how the time slider will
act. 

Do you know how I might enable it from the command line?
Maybe then it will just work like expected.

The logs you requested are in the reprint below
-----     --------     -----      --=--      -----     -------     -----

From: Harry Putnam <reader at newsguy.com>
Subject: auto-snaps cannot be started is this the known bug[s]
Newsgroups: gmane.os.openindiana.general
To: openindiana-discuss at openindiana.org
Date: Sat, 04 Dec 2010 23:55:56 -0600
Message-ID: <871v5w3gr7.fsf at newsguy.com>

After a fresh install, my third in a series this last week (inside
vbox), this time on windows XP, I'm unable to turn on the
auto-snapshot services.

I enabled the time slider in the gui then proceeded to try to turn on
the services.

I got in a hurry and tried to do it with a for loop from the cmdline
like this:

  for ii in `svcs -a|grep auto-snapshot`;do
    svcadm enable -r $ii
  done

Well, that was a pretty horrible thing to do since it fed lots of
garbage to svcadm.

The ouput lines were of the form:
offline        23:08:58 svc:/system/filesystem/zfs/auto-snapshot:daily

So of course the shell interpreter saw `offline' as a command,
`23:08:58' as a command and finally 
  svc:/system/filesystem/zfs/auto-snapshot:daily
 
svcadm was a bit flummoxed by it all.
Then when I realized my stupidity and tried a more conservative
method:

  svcadm enable auto-snapshot:NAME

They weren't starting so I attributed it to having jimmied things up
with the dumb for loop.

So I rebooted thinking that would give svcadm time to forgive me.  But
I see from dmesg and /var/adm/messages that there is still a big
problem... I kind of doubt now that it is related to my boner command
but maybe someone here will know, or know what to check into about
this.

It doesn't appear to be the same as a couple of fairly recent bugs I
googled up about the timeslider.

So on reboot heres what I see:

-----     --------     -----      --=--      -----     -------     -----
from dmesg (wrapped for mail):

Dec 4 23:11:46 voi2 svc.startd[9]: [ID 122153 daemon.warning]
svc:/application/time-slider:default: Method or service exit timed
out.  Killing contract 108.

Dec 4 23:11:46 voi2 svc.startd[9]: [ID 636263 daemon.warning]
svc:/application/time-slider:default: Method
"/lib/svc/method/time-slider start" failed due to signal KILL.

Dec 4 23:12:47 voi2 svc.startd[9]: [ID 122153 daemon.warning]
svc:/application/time-slider:default: Method or service exit timed
out.  Killing contract 116.

Dec 4 23:12:47 voi2 svc.startd[9]: [ID 636263 daemon.warning]
svc:/application/time-slider:default: Method
"/lib/svc/method/time-slider start" failed due to signal KILL.

Dec 4 23:13:48 voi2 svc.startd[9]: [ID 122153 daemon.warning]
svc:/application/time-slider:default: Method or service exit timed
out.  Killing contract 117.

Dec 4 23:13:48 voi2 svc.startd[9]: [ID 636263 daemon.warning]
svc:/application/time-slider:default: Method
"/lib/svc/method/time-slider start" failed due to signal KILL.

Dec 4 23:13:48 voi2 svc.startd[9]: [ID 748625 daemon.error]
application/time-slider:default failed: transitioned to maintenance
(see 'svcs -xv' for details)

Dec 4 23:13:48 voi2 fmd: [ID 377184 daemon.error] SUNW-MSG-ID:
SMF-8000-YX, TYPE: defect, VER: 1, SEVERITY: major

Dec  4 23:13:48 voi2 EVENT-TIME: Sat Dec  4 23:13:48 CST 2010

Dec  4 23:13:48 voi2 PLATFORM: VirtualBox, CSN: 0, HOSTNAME: voi2

Dec  4 23:13:48 voi2 SOURCE: software-diagnosis, REV: 0.1

Dec  4 23:13:48 voi2 EVENT-ID: 391f62ce-2b35-4756-ccca-cbf642d20671

Dec 4 23:13:48 voi2 DESC: A service failed - a method is failing in a
retryable manner but too often.

Dec 4 23:13:48 voi2 Refer to http://sun.com/msg/SMF-8000-YX for more
information.

Dec 4 23:13:48 voi2 AUTO-RESPONSE: The service has been placed into
the maintenance state.

Dec 4 23:13:48 voi2 IMPACT: svc:/application/time-slider:default is
unavailable.

Dec 4 23:13:48 voi2 REC-ACTION: Run 'svcs -xv
svc:/application/time-slider:default' to determine the generic reason
why the service failed, the location of any logfiles, and a list of
other services impacted.
-----     --------     -----      --=--      -----     -------     -----

Following the advice from the last log there and running:
  svcs -xv svc:/application/time-slider:default

 State: maintenance since December  4, 2010 11:13:48 PM CST
Reason: Start method failed repeatedly, last died on Killed (9).
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man -s 1M zfs
   See: /var/svc/log/application-time-slider:default.log
Impact: 5 dependent services are not running:
        svc:/system/filesystem/zfs/auto-snapshot:daily
        svc:/system/filesystem/zfs/auto-snapshot:frequent
        svc:/system/filesystem/zfs/auto-snapshot:hourly
        svc:/system/filesystem/zfs/auto-snapshot:monthly
        svc:/system/filesystem/zfs/auto-snapshot:weekly




More information about the OpenIndiana-discuss mailing list