Re: [OpenIndiana-discuss] Time-slider

2022-06-10 Thread private mail openbabel

Dear All,

Time slider fequency adjustment

It would be interesting to add a menu item with this code on Time slider?

Regards,

Robert Jones

On 09/06/2022 12:15, hput via openindiana-discuss wrote:

Oscar del Rio  writes:


On 2022-06-07 1:36 p.m., I wrote:

On 2022-06-06 3:59 p.m., hput via openindiana-discuss wrote:

Any way to set the pace of snaps myself? It appears that its set to
do 24 hourly snaps a day which for my use is about %90 more than I
need or want.  In fact 2 per day would be about right for me.

Check:

# svcprop auto-snapshot:hourly
zfs/interval astring hours
zfs/keep astring 23
zfs/period astring 1

Change:

# svccfg -s auto-snapshot:hourly setprop zfs/keep=2
# svccfg -s auto-snapshot:hourly setprop zfs/period=8


I forgot to add "refresh"

# svcadm refresh auto-snapshot:hourly

Thank you sir.  I see the difference after the above mentioned
refresh . . .

  svcprop auto-snapshot:hourly 2>&1|tee |egrep 'zfs/(interval|keep 
astring|period astring)'

Now outputs:

  # svcprop auto-snapshot:hourly 2>&1|tee |egrep 'zfs/(interval|keep 
astring|period astring)'
  zfs/interval astring hours
  zfs/keep astring 2
  zfs/period astring 8

So we're now doing 3 snaps per day?
But keeping only 2?

So one is removed every day?


  




___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-slider

2022-06-09 Thread hput via openindiana-discuss
Oscar del Rio  writes:

> On 2022-06-07 1:36 p.m., I wrote:
>> On 2022-06-06 3:59 p.m., hput via openindiana-discuss wrote:
>>> Any way to set the pace of snaps myself? It appears that its set to
>>> do 24 hourly snaps a day which for my use is about %90 more than I
>>> need or want.  In fact 2 per day would be about right for me.
>>
>> Check:
>>
>> # svcprop auto-snapshot:hourly
>> zfs/interval astring hours
>> zfs/keep astring 23
>> zfs/period astring 1
>>
>> Change:
>>
>> # svccfg -s auto-snapshot:hourly setprop zfs/keep=2
>> # svccfg -s auto-snapshot:hourly setprop zfs/period=8
>>
>
> I forgot to add "refresh"
>
> # svcadm refresh auto-snapshot:hourly

Thank you sir.  I see the difference after the above mentioned
refresh . . .

 svcprop auto-snapshot:hourly 2>&1|tee |egrep 'zfs/(interval|keep 
astring|period astring)'

Now outputs:

 # svcprop auto-snapshot:hourly 2>&1|tee |egrep 'zfs/(interval|keep 
astring|period astring)'
 zfs/interval astring hours
 zfs/keep astring 2
 zfs/period astring 8

So we're now doing 3 snaps per day?
But keeping only 2?

So one is removed every day?


 



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-slider

2022-06-07 Thread Oscar del Rio

On 2022-06-07 1:36 p.m., I wrote:

On 2022-06-06 3:59 p.m., hput via openindiana-discuss wrote:

Any way to set the pace of snaps myself? It appears that its set to
do 24 hourly snaps a day which for my use is about %90 more than I
need or want.  In fact 2 per day would be about right for me.


Check:

# svcprop auto-snapshot:hourly
zfs/interval astring hours
zfs/keep astring 23
zfs/period astring 1

Change:

# svccfg -s auto-snapshot:hourly setprop zfs/keep=2
# svccfg -s auto-snapshot:hourly setprop zfs/period=8



I forgot to add "refresh"

# svcadm refresh auto-snapshot:hourly

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-slider

2022-06-07 Thread Oscar del Rio

On 2022-06-06 3:59 p.m., hput via openindiana-discuss wrote:

Any way to set the pace of snaps myself?  It appears that its set to
do 24 hourly snaps a day which for my use is about %90 more than I
need or want.  In fact 2 per day would be about right for me.


Check:

# svcprop auto-snapshot:hourly
zfs/interval astring hours
zfs/keep astring 23
zfs/period astring 1

Change:

# svccfg -s auto-snapshot:hourly setprop zfs/keep=2
# svccfg -s auto-snapshot:hourly setprop zfs/period=8


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-slider

2022-06-06 Thread Judah Richardson
I have it disabled because I use znapzend on this end, but you might find
this page informative:
https://docs.oracle.com/cd/E26502_01/html/E29027/glyha.html#scrolltoc



On Mon, Jun 6, 2022 at 3:00 PM hput via openindiana-discuss <
openindiana-discuss@openindiana.org> wrote:

> First, I do know that if time-slider isn't what I want I can always
> turn it off.
>
> Probably a dumb question, but, is there any kind of finer setting with
> the time-slider?
>
> Any way to set the pace of snaps myself?  It appears that its set to
> do 24 hourly snaps a day which for my use is about %90 more than I
> need or want.  In fact 2 per day would be about right for me.
>
> Currently there is not much action.  The zfs fs that exist are very
> stable not much in and out.
>
> I'm guessing there is a file based part of time-slider somewhere.  Is
> anything there editable?
>
>
>
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] Time-slider

2022-06-06 Thread hput via openindiana-discuss
First, I do know that if time-slider isn't what I want I can always
turn it off.

Probably a dumb question, but, is there any kind of finer setting with
the time-slider?

Any way to set the pace of snaps myself?  It appears that its set to
do 24 hourly snaps a day which for my use is about %90 more than I
need or want.  In fact 2 per day would be about right for me.

Currently there is not much action.  The zfs fs that exist are very
stable not much in and out.

I'm guessing there is a file based part of time-slider somewhere.  Is
anything there editable?



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-Slider minor issues

2019-10-19 Thread Michal Nowak
Also check ~/.xsession-errors if there's anything of interest (except 
for GTK warnings).


The persistent Time Slider icon in the notification area is being 
started by /etc/xdg/autostart/time-slider-notify.desktop. Check if you 
are able to start the icon in terminal via `/usr/lib/time-slider-notify` 
command.


Michal

On 10/15/19 08:13 PM, Stephan Althaus wrote:

Hello!

b) Bug #11821   for the resize issue.

a) When starting time-slider-setup from the menu, the smal 'button' in 
the panel appears, and whirl is whirling on mouse-over.

Some seconds after that this disappears silently.
There is nothing in Xorg.0.log, /var/adm/messages or var/log/syslog

There should be the popup from gksudo or gksu immediately..

When i start it via the "control center", the same issue.

I copied the desktop file from the menu entry to my desktop, and the 
same issue is there, so here's is the bug somwhere:


#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Name=Time Slider
Comment=Configure the system to take automatic snapshots of your data
Terminal=false
Type=Application
StartupNotify=true
Exec=time-slider-setup
Icon=time-slider-setup
Categories=Application;System;Settings

i did find
/usr/share/applications/time-slider.desktop
which lacks the first line.

Yes, it works when i start it via command line whithin a MATE-terminal 
shell,

but NOT via ALT-F2.

maybe i've tweaked the default shell somewhere in the past?

~$ echo $0
bash
~$ ls -l /bin/sh
lrwxrwxrwx   1 root root   9 Apr  9  2018 /bin/sh -> i86/ksh93


Stephan

On 10/15/19 16:01, Michal Nowak wrote:

Hi,

On 10/09/19 07:29 PM, Stephan Althaus wrote:

Hello!


Just did a pkg refresh and pkg upgrade. (SunOS dell6510 5.11 
illumos-c5c712a873 i86pc i386 i86pc)


Now there are 2 minor issues:

a) Time Slider won't start from the Mate menu


what happens when you attempt to start it? Anything in logs? Can you 
start it from command line with `time-slider-setup`?


I think Time Slider should not be started manually but automatically 
on Mate session login, check "Startup Applications Preferences" in 
System -> Preferences -> Persona of Mate menus.




b) The List Elements with the scroll bars doesn't scale with the 
window size (see attachment)


Please, log a ticket in https://bugs.openindiana.org/.

Thanks,
Michal




Are these known?


Greetings,

Stephan

__ 



$ pkg info time-slider
   Name: desktop/time-slider
    Summary: Time Slider ZFS snapshot management for GNOME
   Category: Applications/Configuration and Preferences
  State: Installed
  Publisher: openindiana.org
    Version: 0.2.101
 Branch: 2018.0.0.116
Packaging Date: 12 July 2019 at 17:49:48
   Size: 674.20 kB
   FMRI: 
pkg://openindiana.org/desktop/time-slider@0.2.101-2018.0.0.116:20190712T174948Z 






___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-Slider minor issues

2019-10-15 Thread Stephan Althaus

Hello!

b) Bug #11821   for the resize issue.

a) When starting time-slider-setup from the menu, the smal 'button' in 
the panel appears, and whirl is whirling on mouse-over.

Some seconds after that this disappears silently.
There is nothing in Xorg.0.log, /var/adm/messages or var/log/syslog

There should be the popup from gksudo or gksu immediately..

When i start it via the "control center", the same issue.

I copied the desktop file from the menu entry to my desktop, and the 
same issue is there, so here's is the bug somwhere:


#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Name=Time Slider
Comment=Configure the system to take automatic snapshots of your data
Terminal=false
Type=Application
StartupNotify=true
Exec=time-slider-setup
Icon=time-slider-setup
Categories=Application;System;Settings

i did find
/usr/share/applications/time-slider.desktop
which lacks the first line.

Yes, it works when i start it via command line whithin a MATE-terminal 
shell,

but NOT via ALT-F2.

maybe i've tweaked the default shell somewhere in the past?

~$ echo $0
bash
~$ ls -l /bin/sh
lrwxrwxrwx   1 root root   9 Apr  9  2018 /bin/sh -> i86/ksh93


Stephan

On 10/15/19 16:01, Michal Nowak wrote:

Hi,

On 10/09/19 07:29 PM, Stephan Althaus wrote:

Hello!


Just did a pkg refresh and pkg upgrade. (SunOS dell6510 5.11 
illumos-c5c712a873 i86pc i386 i86pc)


Now there are 2 minor issues:

a) Time Slider won't start from the Mate menu


what happens when you attempt to start it? Anything in logs? Can you 
start it from command line with `time-slider-setup`?


I think Time Slider should not be started manually but automatically 
on Mate session login, check "Startup Applications Preferences" in 
System -> Preferences -> Persona of Mate menus.




b) The List Elements with the scroll bars doesn't scale with the 
window size (see attachment)


Please, log a ticket in https://bugs.openindiana.org/.

Thanks,
Michal




Are these known?


Greetings,

Stephan

__ 



$ pkg info time-slider
   Name: desktop/time-slider
    Summary: Time Slider ZFS snapshot management for GNOME
   Category: Applications/Configuration and Preferences
  State: Installed
  Publisher: openindiana.org
    Version: 0.2.101
 Branch: 2018.0.0.116
Packaging Date: 12 July 2019 at 17:49:48
   Size: 674.20 kB
   FMRI: 
pkg://openindiana.org/desktop/time-slider@0.2.101-2018.0.0.116:20190712T174948Z 






___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-Slider minor issues

2019-10-15 Thread Michal Nowak

Hi,

On 10/09/19 07:29 PM, Stephan Althaus wrote:

Hello!


Just did a pkg refresh and pkg upgrade. (SunOS dell6510 5.11 
illumos-c5c712a873 i86pc i386 i86pc)


Now there are 2 minor issues:

a) Time Slider won't start from the Mate menu


what happens when you attempt to start it? Anything in logs? Can you 
start it from command line with `time-slider-setup`?


I think Time Slider should not be started manually but automatically on 
Mate session login, check "Startup Applications Preferences" in System 
-> Preferences -> Persona of Mate menus.




b) The List Elements with the scroll bars doesn't scale with the window 
size (see attachment)


Please, log a ticket in https://bugs.openindiana.org/.

Thanks,
Michal




Are these known?


Greetings,

Stephan

__ 



$ pkg info time-slider
   Name: desktop/time-slider
    Summary: Time Slider ZFS snapshot management for GNOME
   Category: Applications/Configuration and Preferences
  State: Installed
  Publisher: openindiana.org
    Version: 0.2.101
     Branch: 2018.0.0.116
Packaging Date: 12 July 2019 at 17:49:48
   Size: 674.20 kB
   FMRI: 
pkg://openindiana.org/desktop/time-slider@0.2.101-2018.0.0.116:20190712T174948Z 






___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] Time-slider has stopped working

2017-08-05 Thread Harry Putnam
Setup: OI/hipster with recent updates
 Hardware: HP xw8600 - 2x Xeon  CPU X5450 @ 3.00GHz - 32 GB ram

The time-slider has stopped working... I see the time-slider icon in
upper right of MATE desktop blinking furiously.

right clicking tells me to `configure-timeslider'... I've tried
repeatedly.

start time-slider dialog, get the screen to sign in as root, I see
time slider is enabled, and the settings are the same as last time as
I used it.

So I made a minor changes saved and closed.

No help, time-slider does not engage.

Using /usr/bin/time-slider-setup
Tried turning time-slider off and back on... still no help.

How can I further debug this?


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-Slider failure after latest changes:

2016-06-29 Thread Predrag Zečević - Unix Systems Administrator

On 06/29/16 11:24 AM, Alexander Pyhalov wrote:

On 06/28/16 12:38 PM, Predrag Zečević - Unix Systems Administrator wrote:



$ pkg list | grep -E "(pygtk2-27|pygobject-27)"
library/python/pygobject-27 (openindiana.org)
2.28.6-2016.0.0.1 i--
library/python/pygtk2-27 (openindiana.org)
2.17.0-2016.0.0.2 i--

Probably was working until latest move to 2.7 (you know: once set it and
it has worked). Cannot confirm (until I boot to old BE)...


You will also need pycairo-27.



Hi Alp.

yes, that did it!
Maybe to add it to prerequisite packages list for time-slider?

Many thanks. Best regards/Привет!
--
Predrag Zečević
Technical Support Analyst
2e Systems GmbH

Telephone: +49 6196 9505 815, Facsimile: +49 6196 9505 894
Mobile:+49  174 3109 288, Skype: predrag.zecevic
E-mail:predrag.zece...@2e-systems.com

Headquarter:  2e Systems GmbH, Königsteiner Str. 87,
  65812 Bad Soden am Taunus, Germany
Company registration: Amtsgericht Königstein (Germany), HRB 7303
Managing director:Phil Douglas

http://www.2e-systems.com/ - Making your business fly!

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-Slider failure after latest changes:

2016-06-29 Thread Alexander Pyhalov

On 06/28/16 12:38 PM, Predrag Zečević - Unix Systems Administrator wrote:



$ pkg list | grep -E "(pygtk2-27|pygobject-27)"
library/python/pygobject-27 (openindiana.org) 2.28.6-2016.0.0.1 i--
library/python/pygtk2-27 (openindiana.org)2.17.0-2016.0.0.2 i--

Probably was working until latest move to 2.7 (you know: once set it and
it has worked). Cannot confirm (until I boot to old BE)...


You will also need pycairo-27.

--
Best regards,
Alexander Pyhalov,
system administrator of Southern Federal University IT department

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-Slider failure after latest changes:

2016-06-28 Thread Alexander Pyhalov

On 06/28/16 11:17 AM, Predrag Zečević - Unix Systems Administrator wrote:

That has fixed it:
$ pfexec pkg install -v library/python/pygobject-27

Now I have cleared maintenance and time-slider is started as service...

What is not working yet is System -> Administration -> Time Slider GUI
tool for setup... Also, when called from shell:
$ /usr/bin/time-slider-setup



Check that you have library/python/pygtk2-27 and 
library/python/pygobject-27  installed?



--
Best regards,
Alexander Pyhalov,
system administrator of Southern Federal University IT department

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-Slider failure after latest changes:

2016-06-28 Thread Nikola M
On 06/28/16 10:17 AM, Predrag Zečević - Unix Systems Administrator wrote:
> Thanks for tip!
>
> That has fixed it:
> $ pfexec pkg install -v library/python/pygobject-27
>
> Now I have cleared maintenance and time-slider is started as service...
>
> What is not working yet is System -> Administration -> Time Slider GUI
> tool for setup... Also, when called from shell:
> $ /usr/bin/time-slider-setup
>
> It exists straightaway out w/o any message...
>
> Probably something else is still missing...

I just used it minutes ago and it worked for me actually (using GUI
setup for time-slider),
but I am using separate account with admin/roles rights , not the one I
logged in with.
(enter username/password of admin user).

Here,  (userland-incorporation@0.5.11-2016.0.0.6704):
$ /usr/bin/time-slider-setup
** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)
** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)
** Message: pygobject_register_sinkfunc is deprecated (GtkObject)

It waits a bit and it opens a window to enter a role just fine for me.

Try with userland-incorporation and entire installed.

Also I actually added several RBAC rights to my login user, I'll check
how it beahves with basic ones...

Plus it should also work when logged-in as Primary Administrator , even
logging in As Primary Administrator is discouraged and system should be
regularly used like that. Beside that if not working , it's a bug.


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-Slider failure after latest changes:

2016-06-28 Thread Predrag Zečević - Unix Systems Administrator

On 06/28/16 09:50 AM, Nikola M wrote:

On 06/28/16 09:29 AM, Predrag Zečević - Unix Systems Administrator wrote:


On 06/28/16 09:13 AM, Nikola M wrote:

On 06/28/16 08:27 AM, Predrag Zečević - Unix Systems Administrator
wrote:

Hi All,

after change
https://github.com/OpenIndiana/oi-userland/commit/c6e2e7989118f2b21779e1888cbddf63a32e6d84


time-slider service has failed:

[ Jun 28 07:45:45 Executing start method ("/lib/svc/method/time-slider
start"). ]
Traceback (most recent call last):
  File "/usr/lib/time-sliderd", line 7, in 
from time_slider.timesliderd import main
  File "/usr/lib/../share/time-slider/lib/time_slider/timesliderd.py",
line 18, in 
import glib
ImportError: No module named glib
Time Slider failed to start: error 1
[ Jun 28 07:45:45 Method "start" exited with status 95. ]

Anyone has idea?


Hi, what is your userland-incorporation ? (and osnet-incorporation).

I have time-slider now online (enabled with GUI, entering admin account
username/password from System>Administration>Time Slider) .
My HD space is low so I suppose it reduces number of snapshots it makes,
but since enabling it made monthly and frequent snapshot (s).

I would like to try to reproduce it, Do you get the message when trying
to have time-slider service online with svcadm?
I didn't reboot yet after enabling it with GUI. Userland 6704 and osnet
15736 here, updated yesterday.
  (userland-incorporation@0.5.11-2016.0.0.6704:20160626T184119Z ,
osnet-incorporation@0.5.11-2016.0.0.15736:20160623T133447Z)



Hi Nikola,
This is interesting:


About reported bug, alp seems to nailed it,
just need to build and land in /hipster publisher:
https://github.com/OpenIndiana/oi-userland/commit/2b90a552545430335eb8ed4b0b7d69aa3d7b09a5

See how it goes for you after landing. Btw, do you have any more
complicated/custom time-slider service settings?



$ pkg list | grep -E "(userland|osnet).*incorporation"
consolidation/osnet/osnet-incorporation (openindiana.org)
0.5.11-2016.0.0.15736  i--

[Looks like I have no userland one? Is that OK?]


You can normally have both entire and userland-incorporation and
osnet-incorporation, to be at the same level with regular installs.
I uninstall them only temporarily when testing something.

There is an idea to have also hipster-incorporation, numbered,  so that
one can refer it as both userland-incorporation and osnet-incorporation
when reporting bugs and reproducing.
Untill there is hipster-incorporation one needs to hunt what osnet
coincided with what userland to reproduce packages state at some exact time.

Now one wanting to test/have it's own packages installed removes entire
and userland-incorporation and/or osnet-incorporation , only difference
would be it needs to remove one more incorporation
(hipster-incorporation) or use facets

for it.



Thanks for tip!

That has fixed it:
$ pfexec pkg install -v library/python/pygobject-27

Now I have cleared maintenance and time-slider is started as service...

What is not working yet is System -> Administration -> Time Slider GUI 
tool for setup... Also, when called from shell:

$ /usr/bin/time-slider-setup

It exists straightaway out w/o any message...

Probably something else is still missing...

Regards.

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss



--
Predrag Zečević
Technical Support Analyst
2e Systems GmbH

Telephone: +49 6196 9505 815, Facsimile: +49 6196 9505 894
Mobile:+49  174 3109 288, Skype: predrag.zecevic
E-mail:predrag.zece...@2e-systems.com

Headquarter:  2e Systems GmbH, Königsteiner Str. 87,
  65812 Bad Soden am Taunus, Germany
Company registration: Amtsgericht Königstein (Germany), HRB 7303
Managing director:Phil Douglas

http://www.2e-systems.com/ - Making your business fly!

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-Slider failure after latest changes:

2016-06-28 Thread Nikola M
On 06/28/16 09:29 AM, Predrag Zečević - Unix Systems Administrator wrote:
>
> On 06/28/16 09:13 AM, Nikola M wrote:
>> On 06/28/16 08:27 AM, Predrag Zečević - Unix Systems Administrator
>> wrote:
>>> Hi All,
>>>
>>> after change
>>> https://github.com/OpenIndiana/oi-userland/commit/c6e2e7989118f2b21779e1888cbddf63a32e6d84
>>>
>>>
>>> time-slider service has failed:
>>>
>>> [ Jun 28 07:45:45 Executing start method ("/lib/svc/method/time-slider
>>> start"). ]
>>> Traceback (most recent call last):
>>>   File "/usr/lib/time-sliderd", line 7, in 
>>> from time_slider.timesliderd import main
>>>   File "/usr/lib/../share/time-slider/lib/time_slider/timesliderd.py",
>>> line 18, in 
>>> import glib
>>> ImportError: No module named glib
>>> Time Slider failed to start: error 1
>>> [ Jun 28 07:45:45 Method "start" exited with status 95. ]
>>>
>>> Anyone has idea?
>>
>> Hi, what is your userland-incorporation ? (and osnet-incorporation).
>>
>> I have time-slider now online (enabled with GUI, entering admin account
>> username/password from System>Administration>Time Slider) .
>> My HD space is low so I suppose it reduces number of snapshots it makes,
>> but since enabling it made monthly and frequent snapshot (s).
>>
>> I would like to try to reproduce it, Do you get the message when trying
>> to have time-slider service online with svcadm?
>> I didn't reboot yet after enabling it with GUI. Userland 6704 and osnet
>> 15736 here, updated yesterday.
>>   (userland-incorporation@0.5.11-2016.0.0.6704:20160626T184119Z ,
>> osnet-incorporation@0.5.11-2016.0.0.15736:20160623T133447Z)
>>
>>
> Hi Nikola,
> This is interesting:

About reported bug, alp seems to nailed it,
just need to build and land in /hipster publisher:
https://github.com/OpenIndiana/oi-userland/commit/2b90a552545430335eb8ed4b0b7d69aa3d7b09a5

See how it goes for you after landing. Btw, do you have any more
complicated/custom time-slider service settings?

>
> $ pkg list | grep -E "(userland|osnet).*incorporation"
> consolidation/osnet/osnet-incorporation (openindiana.org)
> 0.5.11-2016.0.0.15736  i--
>
> [Looks like I have no userland one? Is that OK?]

You can normally have both entire and userland-incorporation and
osnet-incorporation, to be at the same level with regular installs.
I uninstall them only temporarily when testing something.

There is an idea to have also hipster-incorporation, numbered,  so that
one can refer it as both userland-incorporation and osnet-incorporation
when reporting bugs and reproducing.
Untill there is hipster-incorporation one needs to hunt what osnet
coincided with what userland to reproduce packages state at some exact time.

Now one wanting to test/have it's own packages installed removes entire
and userland-incorporation and/or osnet-incorporation , only difference
would be it needs to remove one more incorporation
(hipster-incorporation) or use facets

for it.

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-Slider failure after latest changes:

2016-06-28 Thread Predrag Zečević - Unix Systems Administrator


On 06/28/16 09:13 AM, Nikola M wrote:

On 06/28/16 08:27 AM, Predrag Zečević - Unix Systems Administrator wrote:

Hi All,

after change
https://github.com/OpenIndiana/oi-userland/commit/c6e2e7989118f2b21779e1888cbddf63a32e6d84

time-slider service has failed:

[ Jun 28 07:45:45 Executing start method ("/lib/svc/method/time-slider
start"). ]
Traceback (most recent call last):
  File "/usr/lib/time-sliderd", line 7, in 
from time_slider.timesliderd import main
  File "/usr/lib/../share/time-slider/lib/time_slider/timesliderd.py",
line 18, in 
import glib
ImportError: No module named glib
Time Slider failed to start: error 1
[ Jun 28 07:45:45 Method "start" exited with status 95. ]

Anyone has idea?


Hi, what is your userland-incorporation ? (and osnet-incorporation).

I have time-slider now online (enabled with GUI, entering admin account
username/password from System>Administration>Time Slider) .
My HD space is low so I suppose it reduces number of snapshots it makes,
but since enabling it made monthly and frequent snapshot (s).

I would like to try to reproduce it, Do you get the message when trying
to have time-slider service online with svcadm?
I didn't reboot yet after enabling it with GUI. Userland 6704 and osnet
15736 here, updated yesterday.
  (userland-incorporation@0.5.11-2016.0.0.6704:20160626T184119Z ,
osnet-incorporation@0.5.11-2016.0.0.15736:20160623T133447Z)



Hi Nikola,
This is interesting:

$ pkg list | grep -E "(userland|osnet).*incorporation"
consolidation/osnet/osnet-incorporation (openindiana.org) 
0.5.11-2016.0.0.15736  i--


[Looks like I have no userland one? Is that OK?]

$ svcs -xv
svc:/application/time-slider:default (GNOME Desktop Snapshot Management 
Service)

 State: maintenance since June 28, 2016 07:45:45 AM CEST
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
   See: http://illumos.org/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

And
$ pfexec svcadm clear time-slider

command resulted with same error in /var/adm/messages.

Shall I install userland-incorporation?

$ pfexec pkg install -vn userland-incorporation
   Packages to install: 1
 Estimated space available: 104.94 GB
Estimated space to be consumed: 235.75 MB
   Create boot environment:No
Create backup boot environment:No
  Rebuild boot archive:No

Changed packages:
openindiana.org
  consolidation/userland/userland-incorporation
None -> 0.5.11-2015.0.2.5954

Planning linked: 0/1 done; 1 working: zone:hipster
Linked image 'zone:hipster' output:
|  Estimated space available: 104.94 GB
| Estimated space to be consumed: 231.55 MB
|   Rebuild boot archive:No
`
Planning linked: 1/1 done

$ pkg contents -r userland-incorporation
pkg: This package delivers no filesystem content, but may contain 
metadata. Use
the -o option to specify fields other than 'path', or use the -m option 
to show

the raw package manifests.


Regards...
Predrag Zečević


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss



--
Predrag Zečević
Technical Support Analyst
2e Systems GmbH

Telephone: +49 6196 9505 815, Facsimile: +49 6196 9505 894
Mobile:+49  174 3109 288, Skype: predrag.zecevic
E-mail:predrag.zece...@2e-systems.com

Headquarter:  2e Systems GmbH, Königsteiner Str. 87,
  65812 Bad Soden am Taunus, Germany
Company registration: Amtsgericht Königstein (Germany), HRB 7303
Managing director:Phil Douglas

http://www.2e-systems.com/ - Making your business fly!

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-Slider failure after latest changes:

2016-06-28 Thread Nikola M
On 06/28/16 08:27 AM, Predrag Zečević - Unix Systems Administrator wrote:
> Hi All,
>
> after change
> https://github.com/OpenIndiana/oi-userland/commit/c6e2e7989118f2b21779e1888cbddf63a32e6d84
>
> time-slider service has failed:
>
> [ Jun 28 07:45:45 Executing start method ("/lib/svc/method/time-slider
> start"). ]
> Traceback (most recent call last):
>   File "/usr/lib/time-sliderd", line 7, in 
> from time_slider.timesliderd import main
>   File "/usr/lib/../share/time-slider/lib/time_slider/timesliderd.py",
> line 18, in 
> import glib
> ImportError: No module named glib
> Time Slider failed to start: error 1
> [ Jun 28 07:45:45 Method "start" exited with status 95. ]
>
> Anyone has idea?

Hi, what is your userland-incorporation ? (and osnet-incorporation).

I have time-slider now online (enabled with GUI, entering admin account
username/password from System>Administration>Time Slider) .
My HD space is low so I suppose it reduces number of snapshots it makes,
but since enabling it made monthly and frequent snapshot (s).

I would like to try to reproduce it, Do you get the message when trying
to have time-slider service online with svcadm?
I didn't reboot yet after enabling it with GUI. Userland 6704 and osnet
15736 here, updated yesterday.
  (userland-incorporation@0.5.11-2016.0.0.6704:20160626T184119Z ,
osnet-incorporation@0.5.11-2016.0.0.15736:20160623T133447Z)


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] Time-Slider failure after latest changes:

2016-06-28 Thread Predrag Zečević - Unix Systems Administrator

Hi All,

after change 
https://github.com/OpenIndiana/oi-userland/commit/c6e2e7989118f2b21779e1888cbddf63a32e6d84


time-slider service has failed:

[ Jun 28 07:45:45 Executing start method ("/lib/svc/method/time-slider 
start"). ]

Traceback (most recent call last):
  File "/usr/lib/time-sliderd", line 7, in 
from time_slider.timesliderd import main
  File "/usr/lib/../share/time-slider/lib/time_slider/timesliderd.py", 
line 18, in 

import glib
ImportError: No module named glib
Time Slider failed to start: error 1
[ Jun 28 07:45:45 Method "start" exited with status 95. ]

Anyone has idea?

Regards.

--
Predrag Zečević
Technical Support Analyst
2e Systems GmbH

Telephone: +49 6196 9505 815, Facsimile: +49 6196 9505 894
Mobile:+49  174 3109 288, Skype: predrag.zecevic
E-mail:predrag.zece...@2e-systems.com

Headquarter:  2e Systems GmbH, Königsteiner Str. 87,
  65812 Bad Soden am Taunus, Germany
Company registration: Amtsgericht Königstein (Germany), HRB 7303
Managing director:Phil Douglas

http://www.2e-systems.com/ - Making your business fly!

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-slider percentages

2015-08-27 Thread Jim Klimov
23 августа 2015 г. 20:40:57 CEST, Alexander Pyhalov a...@rsu.ru пишет:
Hello, Harry.

Harry Putnam писал 23.08.2015 21:31:
 On OS's like OI 151_a9, when the `time-slider' app from
 menu System/administration/time-slider is in working order, I'm
 curious why the percentage allowed for snapshots is so high?
 
 On my setup, `the time-slider manager' allows 70-90 % of disk space
to
 be set for the storage of snapshots... above your choice the oldest
 get deleted.
 
 That seems like an awfully high percentage... even at the lowest
 setting of 70%.

It seems you misunderstand this setting. It says clean up snapshots 
when  70% of filesystem space is used,
it is not  70 is used by snapshots. And this seems reasonable. 
However, I suspect that
having hard-coded 70 and 90% is a bit strange, I'd allow user to set 
whatever he wants.

---
System Administrator of Southern Federal University Computer Center



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss

I believe it is not hardcoded, just the defaults set by packaged 
zfs-auto-snapshot smf service. Can be changed there too (svccfg -s ... 
editprop; svcadm refresh ...)

Jim
--
Typos courtesy of K-9 Mail on my Samsung Android

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] Time-slider percentages

2015-08-23 Thread Harry Putnam
On OS's like OI 151_a9, when the `time-slider' app from
menu System/administration/time-slider is in working order, I'm
curious why the percentage allowed for snapshots is so high?

On my setup, `the time-slider manager' allows 70-90 % of disk space to
be set for the storage of snapshots... above your choice the oldest
get deleted.

That seems like an awfully high percentage... even at the lowest
setting of 70%.

Maybe I'm missing something here... as I am quite the greenhorn on
this. But it appears to mean the manager would allow, at the least,
70% of available disk space to be devoted to snapshots.  So one could
be devoting well over half of the disk space to snapshots.

Is that what folks are expecting in their usage? ... allowing less than
half of disc space for data?

Could one make that percentage lower by hand editing something in the
time-slider files?

Would that be a fool hardy thing to do?


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-slider percentages

2015-08-23 Thread Alexander Pyhalov

Hello, Harry.

Harry Putnam писал 23.08.2015 21:31:

On OS's like OI 151_a9, when the `time-slider' app from
menu System/administration/time-slider is in working order, I'm
curious why the percentage allowed for snapshots is so high?

On my setup, `the time-slider manager' allows 70-90 % of disk space to
be set for the storage of snapshots... above your choice the oldest
get deleted.

That seems like an awfully high percentage... even at the lowest
setting of 70%.


It seems you misunderstand this setting. It says clean up snapshots 
when  70% of filesystem space is used,
it is not  70 is used by snapshots. And this seems reasonable. 
However, I suspect that
having hard-coded 70 and 90% is a bit strange, I'd allow user to set 
whatever he wants.


---
System Administrator of Southern Federal University Computer Center



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time-slider percentages

2015-08-23 Thread Harry Putnam
Alexander Pyhalov a...@rsu.ru writes:

 That seems like an awfully high percentage... even at the lowest
 setting of 70%.

 It seems you misunderstand this setting. It says clean up snapshots
 when  70% of filesystem space is used,

Gack! Yes I did... thanks for clearing it up.


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] Time-Slider ZFS Send plugin

2014-03-16 Thread Matthew Lagoe
Has anyone used this to send to a remote machine or is that even possible? I
have tried looking for documentation on it but there doesn't seem to be any.

 

I took a look at the code but I can't seem to figure out how to make it send
remotely.

 

Any assistance is appreciated.

 

Thank you

 

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] Time-slider no workee, how to debug

2013-08-06 Thread Harry Putnam
Summary:
Is oi still having continuing problems with the time-slder?.. Or is it
just my setup?

Details:
I get the log message on boot up that time-slider has failed.  First
started showing up in logs Aug 4, right after I monkeyed around with
the gui interface.  Where at first I thought it was failing to start
when I never saw anything after clicking on System/Admin/time-slider
and getting the passwd dialog... giving root pwd.  Then nothing.

But it was just taking a very long time to respond.

I finally got the time-slider dialog, enabled it, and aimed it.

But on a reboot later on, I started seeing the failure in boot
messages. 
,
| Aug 6 11:15:15 voi svc.startd[10]: [ID 748625 daemon.error]
| application/time-slider:default failed: transitioned to maintenance
| (see 'svcs -xv' for details)
| 
| Aug 6 11:15:15 voi IMPACT: svc:/application/time-slider:default is
| unavailable.
| 
| Aug 6 11:15:15 voi 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.
`

And then further attempts to access the gui link showed a failure
message:
,
| Snapshot manager service error
| The snapshot manager service has encountered a problem
| and has been disabled unti8l the problem is fixed
| See the svcs man page for more info
`

Following the suggestion and running the svcs -xv cmd:

,
| svc:/application/time-slider:default (GNOME Desktop Snapshot Management 
Service)
|  State: maintenance since August  6, 2013 11:15:15 AM EDT
| Reason: Start method failed repeatedly, last died on Killed (9).
|See: http://illumos.org/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
`

And checking the applications actual log:

The latest lines look like this:
,
| [ Aug  6 11:14:15 Method or service exit timed out.  Killing contract 118. ]
| [ Aug  6 11:14:15 Method start failed due to signal KILL. ]
| [ Aug  6 11:14:15 Executing start method (/lib/svc/method/time-slider 
start). 
`

But going back to Aug 4 I see a little more when it first was sidelined:
,
| [ Jul 28 19:51:52 Disabled. ]
| [ Jul 28 19:51:52 Rereading configuration. ]
| [ Jul 30 00:43:52 Disabled. ]
| [ Aug  4 02:51:53 Enabled. ]
| [ Aug  4 02:51:53 Executing start method (/lib/svc/method/time-slider 
start). ]
| crontab: can't open your crontab file.
`

Can't open crontab... but if I su - to root I can open it just
fine What user is the service running as?

Also there is suggestion in that one message to go here:

http://illumos.org/msg/SMF-8000-KS

But that wasn't much help... it just says to determine why the
service if failing.  Then it goes on and says to run this:

 svcadm clear service_fmri

But even then it doesn't help at all.  And produces more non-helpful
bull corn in the log:

,
| [ Aug  6 11:15:15 Method or service exit timed out.  Killing contract 119. ]
| [ Aug  6 11:15:15 Method start failed due to signal KILL. ]
| [ Aug  6 12:36:58 Leaving maintenance because clear requested. ]
| [ Aug  6 12:36:58 Enabled. ]
| [ Aug  6 12:36:58 Executing start method (/lib/svc/method/time-slider 
start). 
`

Nothing more about why this is happening.

Does anyone have suggestions of how I can get on top of this?


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] time-slider

2013-02-26 Thread real-men-dont-click
-Original message-
From:   Timothy Coalson tsc...@mst.edu
Sent:   Mon 25-02-2013 22:46
Subject:Re: [OpenIndiana-discuss] time-slider
To: Discussion list for OpenIndiana openindiana-discuss@openindiana.org; 
 I haven't seen that error, but I would guess that the time-slider service
 specified a user of zfssnap, and something had problems while trying to
 use that user.  On my system, zfssnap is a role:
 
 in /etc/user_attr:
 zfssnaptype=role;auths=solaris.smf.manage.zfs-auto-snapshot;profiles=ZFS
 File System Management
 
 and time-slider is set to use it:
 $ svcprop time-slider | grep user
 ...
 start/user astring zfssnap
 stop/user astring zfssnap
 refresh/user astring zfssnap
 
 Hopefully this helps you figure out what might be wrong (did you delete the
 zfssnap role, or otherwise modify it?).
 
 Tim
 

Hi Tim,

it's exactly the same here:

$ cat /etc/user_attr | grep zfssnap
zfssnaptype=role;auths=solaris.smf.manage.zfs-auto-snapshot;profiles=ZFS 
File System Management

$ svcprop time-slider | grep use
ulti-user/entities fmri svc:/milestone/multi-user
multi-user/grouping astring require_all
multi-user/restart_on astring none
multi-user/type astring service
start/user astring zfssnap
stop/user astring zfssnap
refresh/user astring zfssnap


so I will have to dig deeper...


thx


Carsten

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] time-slider [solved partly]

2013-02-26 Thread real-men-dont-click
Ok, I was able to bring the time-slider service back online again:

$ pkg uninstall pkg:/desktop/time-slider

$ pkg install pkg:/desktop/time-slider

$ svcadm restart dbus

$ svcadm clear svc:/application/time-slider:default


That fixed it. I'm not sure why I had to reinstall the package. I already 
restarted dbus before without success.

There seems to be an issue with the time-slider package.



cu

Carsten

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] time-slider

2013-02-25 Thread Timothy Coalson
I haven't seen that error, but I would guess that the time-slider service
specified a user of zfssnap, and something had problems while trying to
use that user.  On my system, zfssnap is a role:

in /etc/user_attr:
zfssnaptype=role;auths=solaris.smf.manage.zfs-auto-snapshot;profiles=ZFS
File System Management

and time-slider is set to use it:
$ svcprop time-slider | grep user
...
start/user astring zfssnap
stop/user astring zfssnap
refresh/user astring zfssnap

Hopefully this helps you figure out what might be wrong (did you delete the
zfssnap role, or otherwise modify it?).

Tim

On Mon, Feb 25, 2013 at 11:47 AM, real-men-dont-cl...@gmx.net wrote:

 Hello everybody,

 I have some problem with the time-slider in OI 151a7 (no GUI):

 It went to maintenance mode at some point in time, and I was not able to
 bring it up again since then.

 I already restarted dbus and rebooted, but the time-slider remains in
  maintenence mode.

 The error message I see is: Could not interpret user property value
 zfssnap, error 2.


 any suggestions?


 Carsten



 --
 system-admin.info
 IT-Systemberatung, Infrastruktur, Netze
 Carsten John
 Cruesemannallee 13
 28213 Bremen

 ___
 OpenIndiana-discuss mailing list
 OpenIndiana-discuss@openindiana.org
 http://openindiana.org/mailman/listinfo/openindiana-discuss

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] Time slider ready for prime time?

2013-02-03 Thread Stefan Müller-Wilken
Dear all,

can anyone comment on this? Will time slider work reliably enough on a 
developer workstation to use it in real development work? And more generally, 
has anyone experience with developer acceptance for OpenIndiana as a day-to-day 
development environment?

Cheers
Stefan


Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Geschäftsführer: Guido 
Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022
___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time slider ready for prime time?

2013-02-03 Thread Edward Ned Harvey (openindiana)
 From: Stefan Müller-Wilken [mailto:stefan.mueller-wil...@acando.de]
 
 can anyone comment on this? Will time slider work reliably enough on a
 developer workstation to use it in real development work? 

Yup, it's awesome.  The only catch that I'm aware of is immediately after OS 
installation, you need to become root, change the root pass, and change it back 
to what you want.  (This is a known bug, but hasn't been fixed yet).  After 
that, you can launch the Time Slider config utility, and it works great.


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] time-slider service and clock adjustments

2012-11-05 Thread Timothy Coalson
So, previously I installed with the wrong timezone, and after fixing the
timezone, I found the time-slider service in maintenance mode, which seemed
to be because it tried to make a snapshot with a name that already existed,
due to the time having been adjusted back by an hour.  I shrugged it off
because the mistake was initially mine.

However, the end of daylight savings time here has caused the same
behavior, and made time-slider stop taking snapshots without making any
noise.  Is this something that has been addressed before?  If not, I will
open a bug, but I thought I would post to the list partly in case this has
caught someone else unaware.

Here is what the end of
/var/svc/log/application-time-slider:default.log says:

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. ]

Since it is now past the 1:52 snapshot it took before the backwards time
adjustment, a sudo svcadm clear time-slider gets it working again without
complaints.

Tim
___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] time-slider service and clock adjustments

2012-11-05 Thread Oscar del Rio

On 11/ 5/12 03:46 PM, Timothy Coalson wrote:

So, previously I installed with the wrong timezone, and after fixing the
timezone, I found the time-slider service in maintenance mode, which seemed
to be because it tried to make a snapshot with a name that already existed,
due to the time having been adjusted back by an hour.  I shrugged it off
because the mistake was initially mine.

However, the end of daylight savings time here has caused the same
behavior, and made time-slider stop taking snapshots without making any
noise.  Is this something that has been addressed before?  If not, I will
open a bug, but I thought I would post to the list partly in case this has
caught someone else unaware.

Here is what the end of
/var/svc/log/application-time-slider:default.log says:

Failed to create snapshots for schedule: hourly
Caught RuntimeError exception in snapshot manager thread



This sounds familiar and I found this old bug report:
https://groups.google.com/forum/?fromgroups=#!msg/comp.unix.solaris/VAf6v02EQZk/-Mook698kXYJ
6996354 time-slider fails when daylight saving time ends

The only other reference to that bug I can find is
https://github.com/bdrewery/time-slider/commit/4ba07f0c289bbb4dff9c4555c9eed1de2c90ffed

Fix for 6996354 gracefully handle snapshot failure
with minor changes to
usr/share/time-slider/lib/time_slider/util.py
usr/share/time-slider/lib/time_slider/zfs.py





___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] time-slider service and clock adjustments

2012-11-05 Thread Timothy Coalson
On Mon, Nov 5, 2012 at 3:40 PM, Oscar del Rio del...@mie.utoronto.cawrote:


 This sounds familiar and I found this old bug report:
 https://groups.google.com/**forum/?fromgroups=#!msg/comp.**
 unix.solaris/VAf6v02EQZk/-**Mook698kXYJhttps://groups.google.com/forum/?fromgroups=#!msg/comp.unix.solaris/VAf6v02EQZk/-Mook698kXYJ
 6996354 time-slider fails when daylight saving time ends

 The only other reference to that bug I can find is
 https://github.com/bdrewery/**time-slider/commit/**
 4ba07f0c289bbb4dff9c4555c9eed1**de2c90ffedhttps://github.com/bdrewery/time-slider/commit/4ba07f0c289bbb4dff9c4555c9eed1de2c90ffed

 Fix for 6996354 gracefully handle snapshot failure
 with minor changes to
 usr/share/time-slider/lib/**time_slider/util.py
 usr/share/time-slider/lib/**time_slider/zfs.py


That looks like exactly the right thing...question is, why is OpenIndiana
using a version of time-slider without a 2 year old patch?

Tim
___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time slider missing some snapshots and not deleting snapshots

2012-06-22 Thread Martyn Klassen
I guess I spoke too soon. After letting time-slider run for the day, I ended up 
with way too many frequent snapshot and a bunch of missing snapshots, so 
something is more seriously wrong with the recursion algorithms being used by 
time-slider. I even ran another test - with 5 minute interval frequent 
snapshots - intentionally changing every filesystem so that no snapshot is ever 
zero sized and still some filesystems are not getting snapshots. Missing 
snapshots always occurs in filesystems preceding those with children, which 
seems to point to recursion issues. My guess is the deletion problems are 
related.

If anyone has any suggestions on how to debug these time-slider issues they 
would be appreciated. 

Martyn

On 2012-06-21, at 13:56 , Martyn Klassen wrote:

 Time slider is missing the creation of some and deletion of all snapshot of 
 filesystems on my data pool. The snapshots are only create for the last 
 filesystem in a tree, for example with pool data and filesystems
 
 data/fsA
 data/fsB/fs1
 data/fsC
 data/fsD/fs1
 data/fsE
 
 only data/fsB/fs1 and data/fsD/fs1 get a snapshot and the snapshots are not 
 deleted properly, ie frequent snapshots just keep getting added beyond the 3 
 that are supposed to be kept. 
 
 After playing with various setting, I found a solution that appears to be 
 working for me. So far it is handling frequent snapshots correctly.
 
 The short version:
 Do not set com.sun:auto-snapshot properties on the pool, ie data, but on 
 filesystems created on the pool, ie fsA - fsB.
 
 The long version:
 The issue seems to be related to inheriting com.sun:auto-snapshot and the 
 recursion algorithms being used to make and destroy snapshots.
 
 I found this old post 
 http://mail.opensolaris.org/pipermail/indiana-discuss/2009-December/017161.html
  which made me investigate whether the issue is related to the snapshot 
 properties being inherited directly from the pool and auto-snapshots 
 recursion algorithm. The time slider code base has obvious changed since that 
 post, but I decided to try the following anyway
 
 zfs create data/nosnap
 zfs set com.sun:auto-snapshot=false data/nosnap
 zfs set com.sun:auto-snapshot:hourly=false data/nosnap
 zfs set  com.sun:auto-snapshot:frequent=false  data/nosnap
 zfs set  com.sun:auto-snapshot:daily=false data/nosnap
 zfs set  com.sun:auto-snapshot:weekly=false  data/nosnap
 zfs set  com.sun:auto-snapshot:monthly=false data/nosnap
 
 Basically the idea is that the data/nosnap filesystem with all auto-snapshot 
 properties set to false should force auto-snapshot to address each filesystem 
 separately. and not act recursively on data. With this change time-slider 
 starting making snapshots for data/fsD/fs1 and data/fsE get snapshots, but 
 none of the rest, and none of the snapshots get deleted properly.
 
 My next attempt was to clear all the com.sun:auto-snapshot properties from 
 data and set them on the filesystems fsA, fsB, fsC, fsD, and fsE, and then 
 all the snapshots were create and destroyed as expected.
 
 zfs set com.sun:auto-snapshot=true data/fsA
 zfs set com.sun:auto-snapshot=true data/fsB
 zfs set com.sun:auto-snapshot=true data/fsC
 zfs set com.sun:auto-snapshot=true data/fsD
 zfs set com.sun:auto-snapshot=true data/fsE
 
 Obviously this is more tedious that just setting the properties on data, but 
 at least the snapshots seem to work for me now. Hopefully this is useful for 
 anyone else running into this issue, and if someone can point me in the right 
 direction to submit a bug report on this, maybe it can get fixed in a future 
 release.
 
 Just a bit more about my configuration for reference:
 
 # uname
 SunOS ** 5.11 oi_151a4 i86pc i386 i86pc Solaris
 # pkg info time-slider
  Name: desktop/time-slider
   Summary: Time Slider ZFS snapshot management for GNOME
   Description: Time Slider ZFS snapshot management for GNOME
  Category: Applications/Configuration and Preferences
 State: Installed
 Publisher: openindiana.org
   Version: 0.2.97
 Build Release: 5.11
Branch: 0.151.1.4
 Packaging Date: May  2, 2012 10:25:35 PM 
  Size: 715.80 kB
  FMRI: 
 pkg://openindiana.org/desktop/time-slider@0.2.97,5.11-0.151.1.4:20120502T222535Z
 
 
 ___
 OpenIndiana-discuss mailing list
 OpenIndiana-discuss@openindiana.org
 http://openindiana.org/mailman/listinfo/openindiana-discuss


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] time-slider

2012-02-24 Thread Paolo Marcheschi

yes I think that is the problem,
bash-4.1$ cat /etc/user_attr|grep zfssnap

zfssnaptype=role;auths=solaris.smf.manage.zfs-auto-snapshot;profiles=ZFS 
File System Management


root@opensolaris:~# cat /etc/shadow|grep zfssnap

zfssnap:NP:14868::



seems correct.

Any idea ?

Paolo

On 02/22/12 07:08 PM, Ignacio Marambio Catán wrote:

sounds like the user which is being used to create the snapshot
doesn't have the right RBAC configuration

On Wed, Feb 22, 2012 at 3:02 PM, Paolo Marcheschi
paolo.marches...@ftgm.it  wrote:

Hi
I cannot start time slider :

[ Feb 22 18:51:20 Executing start method (/lib/svc/method/time-slider
start). ]
[ Feb 22 18:51:41 Method start exited with status 0. ]
Exception in thread Thread-1:
Traceback (most recent call last):
  File /usr/lib/python2.6/threading.py, line 525, in __bootstrap_inner
self.run()
  File /usr/lib/../share/time-slider/lib/time_slider/timesliderd.py, line
123, in run
volume.set_auto_snap(False)
  File /usr/lib/../share/time-slider/lib/time_slider/zfs.py, line 922, in
set_auto_snap
self.set_user_property(com.sun:auto-snapshot, value)
  File /usr/lib/../share/time-slider/lib/time_slider/zfs.py, line 660, in
set_user_property
outdata,errdata = util.run_command(cmd)
  File /usr/lib/../share/time-slider/lib/time_slider/util.py, line 50, in
run_command
(str(command), err, errdata)
RuntimeError: ['/usr/bin/pfexec', '/usr/sbin/zfs', 'set',
'com.sun:auto-snapshot=false', 'rpool/dump'] failed with exit code 1
/usr/sbin/zfs: Permission denied


Maybe is something simple but now I cannot find the solution
can you help ?

Paolo


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss





___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] time-slider

2012-02-23 Thread paolo marcheschi

I'v done it in the first email:

Feb 22 18:51:20 Executing start method (/lib/svc/method/time-slider 
start). ]

[ Feb 22 18:51:41 Method start exited with status 0. ]
Exception in thread Thread-1:
Traceback (most recent call last):
  File /usr/lib/python2.6/threading.py, line 525, in __bootstrap_inner
self.run()
  File /usr/lib/../share/time-slider/lib/time_slider/timesliderd.py, 
line 123, in run

volume.set_auto_snap(False)
  File /usr/lib/../share/time-slider/lib/time_slider/zfs.py, line 
922, in set_auto_snap

self.set_user_property(com.sun:auto-snapshot, value)
  File /usr/lib/../share/time-slider/lib/time_slider/zfs.py, line 
660, in set_user_property

outdata,errdata = util.run_command(cmd)
  File /usr/lib/../share/time-slider/lib/time_slider/util.py, line 
50, in run_command

(str(command), err, errdata)
RuntimeError: ['/usr/bin/pfexec', '/usr/sbin/zfs', 'set', 
'com.sun:auto-snapshot=false', 'rpool/dump'] failed with exit code 1

/usr/sbin/zfs: Permission denied


Paolo

On 02/22/12 19:19, Jan Owoc wrote:

On Wed, Feb 22, 2012 at 11:02 AM, Paolo Marcheschi
paolo.marches...@ftgm.it  wrote:

Hi
I cannot start time slider :


[...]

Maybe is something simple but now I cannot find the solution
can you help ?

I had a problem starting time-slider, and reloading dbus solved it for
me. Your problem seems different.

Could you post the output of these two commands?

# svcs -xv

# cat /var/svc/log/application-time-slider\:default.log

Jan

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss




--
Ing. Paolo Marcheschi
Reparto INFOTEL:
Responsabile Unità Operativa Tecnologie Informatiche (UOTI).

Fondazione CNR/Regione Toscana Gabriele Monasterio.
Area della Ricerca di Pisa San Cataldo
Via G.Moruzzi, 1 - 56124 Pisa, Italy
Tel: +39-050-3152822
VOIP/Casella Vocale: +39-06-916504748
Fax: +39 1782774323
Web: http://www.ftgm.it/
E-mail: paolo.marches...@ftgm.it
--
This e-mail and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to which they are addressed.If 
you have received this e-mail in error please notify the sender immediately, 
then delete it. Confidentiality and legal privilege are not waived or lost by 
reason of mistaken delivery to you.
--


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] time-slider

2012-02-23 Thread paolo marcheschi

I'v done it in the first email:

Feb 22 18:51:20 Executing start method (/lib/svc/method/time-slider 
start). ]

[ Feb 22 18:51:41 Method start exited with status 0. ]
Exception in thread Thread-1:
Traceback (most recent call last):
  File /usr/lib/python2.6/threading.py, line 525, in __bootstrap_inner
self.run()
  File /usr/lib/../share/time-slider/lib/time_slider/timesliderd.py, 
line 123, in run

volume.set_auto_snap(False)
  File /usr/lib/../share/time-slider/lib/time_slider/zfs.py, line 
922, in set_auto_snap

self.set_user_property(com.sun:auto-snapshot, value)
  File /usr/lib/../share/time-slider/lib/time_slider/zfs.py, line 
660, in set_user_property

outdata,errdata = util.run_command(cmd)
  File /usr/lib/../share/time-slider/lib/time_slider/util.py, line 
50, in run_command

(str(command), err, errdata)
RuntimeError: ['/usr/bin/pfexec', '/usr/sbin/zfs', 'set', 
'com.sun:auto-snapshot=false', 'rpool/dump'] failed with exit code 1

/usr/sbin/zfs: Permission denied


Paolo

On 02/22/12 19:19, Jan Owoc wrote:

On Wed, Feb 22, 2012 at 11:02 AM, Paolo Marcheschi
paolo.marches...@ftgm.it  wrote:

Hi
I cannot start time slider :


[...]

Maybe is something simple but now I cannot find the solution
can you help ?

I had a problem starting time-slider, and reloading dbus solved it for
me. Your problem seems different.

Could you post the output of these two commands?

# svcs -xv

# cat /var/svc/log/application-time-slider\:default.log

Jan

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss




___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] time-slider

2012-02-22 Thread Paolo Marcheschi

Hi
I cannot start time slider :

[ Feb 22 18:51:20 Executing start method (/lib/svc/method/time-slider start). 
]
[ Feb 22 18:51:41 Method start exited with status 0. ]
Exception in thread Thread-1:
Traceback (most recent call last):
  File /usr/lib/python2.6/threading.py, line 525, in __bootstrap_inner
self.run()
  File /usr/lib/../share/time-slider/lib/time_slider/timesliderd.py, line 
123, in run
volume.set_auto_snap(False)
  File /usr/lib/../share/time-slider/lib/time_slider/zfs.py, line 922, in 
set_auto_snap
self.set_user_property(com.sun:auto-snapshot, value)
  File /usr/lib/../share/time-slider/lib/time_slider/zfs.py, line 660, in 
set_user_property
outdata,errdata = util.run_command(cmd)
  File /usr/lib/../share/time-slider/lib/time_slider/util.py, line 50, in 
run_command
(str(command), err, errdata)
RuntimeError: ['/usr/bin/pfexec', '/usr/sbin/zfs', 'set', 
'com.sun:auto-snapshot=false', 'rpool/dump'] failed with exit code 1
/usr/sbin/zfs: Permission denied


Maybe is something simple but now I cannot find the solution
can you help ?

Paolo


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] time-slider

2012-02-22 Thread Ignacio Marambio Catán
sounds like the user which is being used to create the snapshot
doesn't have the right RBAC configuration

On Wed, Feb 22, 2012 at 3:02 PM, Paolo Marcheschi
paolo.marches...@ftgm.it wrote:
 Hi
 I cannot start time slider :

 [ Feb 22 18:51:20 Executing start method (/lib/svc/method/time-slider
 start). ]
 [ Feb 22 18:51:41 Method start exited with status 0. ]
 Exception in thread Thread-1:
 Traceback (most recent call last):
  File /usr/lib/python2.6/threading.py, line 525, in __bootstrap_inner
    self.run()
  File /usr/lib/../share/time-slider/lib/time_slider/timesliderd.py, line
 123, in run
    volume.set_auto_snap(False)
  File /usr/lib/../share/time-slider/lib/time_slider/zfs.py, line 922, in
 set_auto_snap
    self.set_user_property(com.sun:auto-snapshot, value)
  File /usr/lib/../share/time-slider/lib/time_slider/zfs.py, line 660, in
 set_user_property
    outdata,errdata = util.run_command(cmd)
  File /usr/lib/../share/time-slider/lib/time_slider/util.py, line 50, in
 run_command
    (str(command), err, errdata)
 RuntimeError: ['/usr/bin/pfexec', '/usr/sbin/zfs', 'set',
 'com.sun:auto-snapshot=false', 'rpool/dump'] failed with exit code 1
 /usr/sbin/zfs: Permission denied


 Maybe is something simple but now I cannot find the solution
 can you help ?

 Paolo


 ___
 OpenIndiana-discuss mailing list
 OpenIndiana-discuss@openindiana.org
 http://openindiana.org/mailman/listinfo/openindiana-discuss

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] time-slider will not start due to dbus security policy on oi151a-text

2012-01-23 Thread Thomas
Jan Owoc jsowoc at gmail.com writes:

 I'm having trouble starting time-slider on the text version of oi151a.

i had the same problem yesterday (even asked on this list :-)). i found the 
solution in the meantime while also digging in the dbus config files (which are 
exactly the same as in a gdm-enabled install): 
sudo svcadm restart dbus
(or alternatively a reboot)

regards,
thomas


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] time-slider will not start due to dbus security policy on oi151a-text

2012-01-23 Thread Jan Owoc
On Mon, Jan 23, 2012 at 4:15 PM, Thomas tho...@alternize.com wrote:
 Jan Owoc jsowoc at gmail.com writes:

 I'm having trouble starting time-slider on the text version of oi151a.

 i had the same problem yesterday (even asked on this list :-)). i found the
 solution in the meantime while also digging in the dbus config files (which 
 are
 exactly the same as in a gdm-enabled install):
 sudo svcadm restart dbus
 (or alternatively a reboot)

Thank you Thomas. I did see your post, but it didn't have a solution.
So the correct process of installing time-slider on text-based oi is:
# pkg install time-slider
# svcadm restart dbus (or reboot the machine)
# svcadm enable time-slider
# svcadm enable auto-snapshot

I know that .deb supports post-install scripts that, for example,
could restart dbus after a successful install of a package. Is this
something that could (should?) be added to the time-slider IPS
package?

Jan

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] time-slider will not start due to dbus security policy on oi151a-text

2012-01-23 Thread Gary Mills
On Mon, Jan 23, 2012 at 04:25:49PM -0700, Jan Owoc wrote:
 
 Thank you Thomas. I did see your post, but it didn't have a solution.
 So the correct process of installing time-slider on text-based oi is:
 # pkg install time-slider
 # svcadm restart dbus (or reboot the machine)
 # svcadm enable time-slider
 # svcadm enable auto-snapshot
 
 I know that .deb supports post-install scripts that, for example,
 could restart dbus after a successful install of a package. Is this
 something that could (should?) be added to the time-slider IPS
 package?

The way to do that is with a service dependancy in the SMF manifest.

-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] time-slider will not start due to dbus security policy on oi151a-text

2012-01-23 Thread Jan Owoc
Hi,


I'm having trouble starting time-slider on the text version of oi151a.
Steps to reproduce:

1. Install oi151a text.


2. Reboot. Login. Run:
# pkg install time-slider
# svcadm enable -r time-slider


3. Obtain error. Time-slider put in maintenance mode.
# svcs -xv
svc:/application/time-slider:default (GNOME Desktop Snapshot Management Service)
 State: maintenance since January 23, 2012 10:30:10 AM MST
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
   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: This service is not running.

# cat /var/svc/log/application-time-slider\:default.log
[ Jan 23 10:29:12 Disabled. ]
[ Jan 23 10:29:12 Rereading configuration. ]
[ Jan 23 10:30:06 Enabled. ]
[ Jan 23 10:30:06 Executing start method (/lib/svc/method/time-slider
start). ]
crontab: can't open your crontab file.
Traceback (most recent call last):
  File /usr/lib/time-sliderd, line 10, in module
main(abspath(__file__))
  File /usr/lib/../share/time-slider/lib/time_slider/timesliderd.py,
line 956, in main
name = dbus.service.BusName(org.opensolaris.TimeSlider, systemBus)
  File /usr/lib/python2.6/vendor-packages/dbus/service.py, line 129,
in __new__
retval = bus.request_name(name, name_flags)
  File /usr/lib/python2.6/vendor-packages/dbus/bus.py, line 306, in
request_name
'su', (name, flags))
  File /usr/lib/python2.6/vendor-packages/dbus/connection.py, line
630, in call_blocking
message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.AccessDenied: Connection :1.2 is not
allowed to own the service org.opensolaris.TimeSlider due to
security policies in the configuration file
Time Slider failed to start: error 95
[ Jan 23 10:30:10 Method start exited with status 95. ]


Work-around (?):
I poked around the system, and found that a work-around is to remove
the restrictions of ownership of the service in the file
/etc/dbus-1/system.d/time-slider.conf

These restrictions are likely there for a reason, so this work-around
is not a solution. In addition, they are present in the gui version of
oi151a, and time-slider seems to work fine (assuming one runs the
graphical time-slider-setup).


What I need is the autosnapshot capability of timeslider. Is there a
way of enabling autosnapshots without the security work-around or
using the graphical setup program?


Jan

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] time-slider startup timeout

2011-09-01 Thread Ron Parker
I'm getting a timeout when time-slider attempts to start. It then goes
into maintenance mode. Here is all that appears in the
/var/svc/log/application-time-slider:default.log

[ Sep  1 14:53:31 Enabled. ]
[ Sep  1 14:53:31 Executing start method (/lib/svc/method/time-slider
start). ]
[ Sep  1 14:54:31 Method or service exit timed out.  Killing contract 122. ]
[ Sep  1 14:54:31 Method start failed due to signal KILL. ]

How should I proceed in debugging this?

-- 
Ron

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] Time Slider (OI 148)

2011-08-12 Thread drsgrid
How does one configure TimeSlider to take only daily snapshots and not
hourly? Is there some configuration file, i tried going through crontabs, as
well as napp-it web thing... I have no trouble making auto-snapshots they
are just too frequent is there some way to adjust this?
___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Time Slider (OI 148)

2011-08-12 Thread Guido Berhoerster
* drsgrid drs.g...@gmail.com [2011-08-12 23:50]:
 How does one configure TimeSlider to take only daily snapshots and not
 hourly? Is there some configuration file, i tried going through crontabs, as
 well as napp-it web thing... I have no trouble making auto-snapshots they
 are just too frequent is there some way to adjust this?

You can both influence the frequency of the timeslider service
instances in SMF and enable/disable snapshots triggered by each
instance on a per-dataset basis through zfs properties.
Seehttp://wikis.sun.com/display/OpenSolarisInfoPL/How+to+Manage+the+Automatic+ZFS+Snapshot+Service
for details.

-- 
Guido Berhoerster

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] time-slider is snapshotting swap and dump after upgrading to oi_147

2010-12-20 Thread Guido Berhoerster
* Jeremy Thornhill jeremy.thornh...@gmail.com [2010-12-20 20:02]:
 On Sun, Dec 19, 2010 at 10:27 AM, Jeremy Thornhill
 jeremy.thornh...@gmail.com wrote:
 
  FWIW I've created an issue for this http://www.illumos.org/issues/537
  and if I find any useful info I'll post it there.
 
 To reply to myself - I believe I've identified a bug in the
 time-slider code and I've added what I think is happening to that
 ticket. I don't know whether time-slider has a maintainer, but
 hopefully I've provided enough information to fix the bug. It's
 possible that this has already been fixed upstream but I have no way
 to verify that at the moment.

Thanks for investigating this, time-slider is still developed in
the open by Oracle, see
http://src.opensolaris.org/source/xref/jds/time-slider/
We currently ship the latest version so this has not been fixed
upstream.
So I figure in this case it would make sense to raise this issue
upstream with the information you already provided at the OI
tracker. If they do not fix it in a reasonable timeframe we'll
have to come up with a fix on our own.
Would you mind filing a bug at http://defect.opensolaris.org/ and
linking to it from the OI bug afterwards?
TIA,
-- 
Guido Berhoerster

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] time-slider is snapshotting swap and dump after upgrading to oi_147

2010-12-20 Thread Jeremy Thornhill
On Mon, Dec 20, 2010 at 3:17 PM, Guido Berhoerster g...@openindiana.org wrote:

 Thanks for investigating this, time-slider is still developed in
 the open by Oracle, see
 http://src.opensolaris.org/source/xref/jds/time-slider/
 We currently ship the latest version so this has not been fixed
 upstream.
 So I figure in this case it would make sense to raise this issue
 upstream with the information you already provided at the OI
 tracker. If they do not fix it in a reasonable timeframe we'll
 have to come up with a fix on our own.
 Would you mind filing a bug at http://defect.opensolaris.org/ and
 linking to it from the OI bug afterwards?

I have created an issue in the Opensolaris bug tracker and I've
updated the Illumos ticket with the URL. Hopefully they will fix it,
if not I'd be glad to hack together a patch that makes this not happen
in OI. I'm no python guru but this should be a pretty easy fix :)

Oh, and should anybody else encounter this issue, if you'd rather not
hack zfs.py, a workaround is to *also* set
com.sun:auto-snapshot:{frequent|hourly|daily|monthly|weekly}=false on
any of the volumes that are being snapshotted incorrectly.

Jeremy

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] time-slider is snapshotting swap and dump after upgrading to oi_147

2010-12-20 Thread Guido Berhoerster
* Jeremy Thornhill jeremy.thornh...@gmail.com [2010-12-20 22:21]:
 I have created an issue in the Opensolaris bug tracker and I've
 updated the Illumos ticket with the URL. Hopefully they will fix it,
 if not I'd be glad to hack together a patch that makes this not happen
 in OI. I'm no python guru but this should be a pretty easy fix :)
 
 Oh, and should anybody else encounter this issue, if you'd rather not
 hack zfs.py, a workaround is to *also* set
 com.sun:auto-snapshot:{frequent|hourly|daily|monthly|weekly}=false on
 any of the volumes that are being snapshotted incorrectly.
 

Thanks a lot.
-- 
Guido Berhoerster

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] time-slider is snapshotting swap and dump after upgrading to oi_147

2010-12-19 Thread Jeremy Thornhill
On Sat, Dec 18, 2010 at 11:56 PM, Albert Lee tr...@opensolaris.org wrote:

 Can you check crontab -e as root and ensure nothing related to
 auto-snapshot is still present?


Albert,

I double checked, and nothing is in there. I had already disabled this one:

#5,20,35,50 * * * * /usr/lib/time-slider-cleanup -y

That binary isn't even there any more which was causing the job to
fail (which is how I realized it should be disabled).

Further info: I enabled the debug property on the time-slider service
in hopes of seeing more. Curiously enough I see the following:

Dec 18 15:33:18 coltrane time-sliderd: [ID 702911 daemon.notice] Auto
excluding rpool/dump volume
Dec 18 15:33:18 coltrane time-sliderd: [ID 702911 daemon.notice] Auto
excluding rpool/swap volume

I looked at the python code in /usr/share/time-slider/lib/time_slider/
and this is only related to the setting of the com.sun:auto-snapshot
property on volumes. I'll try and dig around a bit more to see why
that property seems to be ignored for me.

FWIW I've created an issue for this http://www.illumos.org/issues/537
and if I find any useful info I'll post it there. If nobody else is
seeing this then it's got to be something wonky related to my upgrade
path, but I don't think there's anything too esoteric about how I got
to OI. The issue persists in 148, as well; the time-slider code
doesn't look like it's been updated.

Jeremy

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] time-slider is snapshotting swap and dump after upgrading to oi_147

2010-12-18 Thread Albert Lee
On Fri, Dec 17, 2010 at 1:35 PM, Jeremy Thornhill
jeremy.thornh...@gmail.com wrote:
 Hello list,

 I've encountered a bizarre situation with time-slider on OI 147. As
 background, this is a x86 system that's been upgraded from OpenSolaris
 snv_133, and the time-slider configuration I'm using is unmodified
 post-upgrade (save for disabling the legacy time-slider-cleanup cron
 job).

 What I see is that rpool/swap and rpool/dump - which are both
 configured with 'com.sun:auto-snapshot = false' - are being
 snapshotted at every possible interval. Additionally, it seems that
 time-slider is not ever cleaning up these snapshots, even when they
 have a USED value of 0. This results in hundreds of empty snapshots
 being created which I've had to manually remove. Auto snapshots for
 other filesystems, however, seem to be both created and destroyed as
 expected; indeed, I have other filesystems with 'com.sun:auto-snapshot
 = false', and they are not being snapshotted.

 Does anybody have an idea of what's going on, or how I can work around
 this? I've upgraded all pools and volumes and I'm really not sure what
 the issue here could be. I even fired up the time-slider-setup gui for
 kicks, but it seems hard coded to ignore swap and dump entirely, as
 they weren't visible at all in any of its options.


Can you check crontab -e as root and ensure nothing related to
auto-snapshot is still present?

-Albert

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] time-slider is snapshotting swap and dump after upgrading to oi_147

2010-12-17 Thread Jeremy Thornhill
Hello list,

I've encountered a bizarre situation with time-slider on OI 147. As
background, this is a x86 system that's been upgraded from OpenSolaris
snv_133, and the time-slider configuration I'm using is unmodified
post-upgrade (save for disabling the legacy time-slider-cleanup cron
job).

What I see is that rpool/swap and rpool/dump - which are both
configured with 'com.sun:auto-snapshot = false' - are being
snapshotted at every possible interval. Additionally, it seems that
time-slider is not ever cleaning up these snapshots, even when they
have a USED value of 0. This results in hundreds of empty snapshots
being created which I've had to manually remove. Auto snapshots for
other filesystems, however, seem to be both created and destroyed as
expected; indeed, I have other filesystems with 'com.sun:auto-snapshot
= false', and they are not being snapshotted.

Does anybody have an idea of what's going on, or how I can work around
this? I've upgraded all pools and volumes and I'm really not sure what
the issue here could be. I even fired up the time-slider-setup gui for
kicks, but it seems hard coded to ignore swap and dump entirely, as
they weren't visible at all in any of its options.

Thanks,
Jeremy

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss