Nils Goroll
2008-Jun-26 16:37 UTC
[zfs-discuss] Oops: zfs-auto-snapshot with at scheduling
Hi all,
I''ll attach a new version zfs-auto-snapshot including some more
improvements, and probably some new bugs. Seriously, I have
tested it, but certainly not all functionality, so please let me know
about any (new) problems you come across.
Except from the change log:
- Added support to schedule using at(1), see
README.zfs-auto-snapshot.txt
- take_snapshot will only run if option "manual" given or FMRI is
online
- added command line action "unschedule"
- retry all jobs (at and cron) using a short term reschedule
(AT_RETRY="now + 5 minutes") if they cant be run due to a
temporary condition such as
- smf service offline or uninitialized
- pool being scrubbed
- added command line action "list" to list configured cron and at
jobs (mainly to get human readable information about which
snapshot is due when)
- added validation functions for various SMF properties
Cheers,
Nils
This message posted from opensolaris.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zfs-auto-snapshot-0.10_atjobs2.tar.bz2
Type: application/x-bzip2
Size: 26448 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20080626/916cf25d/attachment.bin>
Hey Nils, On Thu, 2008-06-26 at 09:37 -0700, Nils Goroll wrote:> I''ll attach a new version zfs-auto-snapshot including some more > improvements, and probably some new bugs.Just to let you know that I *have* seen your mails on this and really appreciate getting the feedback, but I just haven''t had a chance to dig into your code yet. I wanted to spend time following up properly, rather than giving you a quick (but probably un-researched!) answer :-) I''ll try to follow up on the list tomorrow... cheers, tim> Seriously, I have > tested it, but certainly not all functionality, so please let me know > about any (new) problems you come across. > > Except from the change log: > > - Added support to schedule using at(1), see > README.zfs-auto-snapshot.txt > - take_snapshot will only run if option "manual" given or FMRI is > online > - added command line action "unschedule" > - retry all jobs (at and cron) using a short term reschedule > (AT_RETRY="now + 5 minutes") if they cant be run due to a > temporary condition such as > - smf service offline or uninitialized > - pool being scrubbed > - added command line action "list" to list configured cron and at > jobs (mainly to get human readable information about which > snapshot is due when) > - added validation functions for various SMF properties > > Cheers, > > Nils > > > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Nils Goroll
2008-Jun-29 09:28 UTC
[zfs-discuss] zfs-auto-snapshot at jobs: fix for README exable
An example from the readme does not work and fails with:
Error: Cant schedule at job: at midnight sun
Change:
--- README.zfs-auto-snapshot.txt.o Sun Jun 29 11:23:35 2008
+++ README.zfs-auto-snapshot.txt Sun Jun 29 11:24:31 2008
@@ -171,7 +171,7 @@
''setprop zfs/at_timespec =
astring:"midnight"''
svccfg -s svc:/system/filesystem/zfs/auto-snapshot:weekly \
- ''setprop zfs/at_timespec = astring:"midnight
sun"''
+ ''setprop zfs/at_timespec = astring:"midnight sun next
week"''
svccfg -s svc:/system/filesystem/zfs/auto-snapshot:monthly \
''setprop zfs/at_timespec = astring:"midnight next
month"''
This message posted from opensolaris.org