On Fri, Nov 4, 2011 at 7:24 PM, Harry Putnam <[email protected]> wrote: > I'm running Openindiana 151a, which I guess is illumos. > > I've posted about this on openindiana list but wondered if it might > not be appropriate to ask here too. > > I seem to have done all I should do for auto-snapshosts to work (I > think) > > Enabled time-slider in the gui by checking the `enable' button. And > leaving the config at default. > > That did not appear to cause the auto-snapshot sevices so I started > them all by hand and they have continued to run for a couple of days: > > svcs -a|grep 'time-slider\|auto-snap': > disabled Oct_29 svc:/application/time-slider/plugin:zfs-send > disabled Oct_29 svc:/application/time-slider/plugin:rsync > online Oct_29 svc:/application/time-slider:default > online 13:29:51 svc:/system/filesystem/zfs/auto-snapshot:daily > online 13:30:51 svc:/system/filesystem/zfs/auto-snapshot:frequent > online 13:31:00 svc:/system/filesystem/zfs/auto-snapshot:hourly > online 13:31:10 svc:/system/filesystem/zfs/auto-snapshot:monthly > online 13:31:15 svc:/system/filesystem/zfs/auto-snapshot:weekly > > And yet, no snapshots have appeared: > > aside: Incedently, what are those first two that are disabled about? > > uname -a > SunOS voi 5.11 oi_151a i86pc i386 i86pc Solaris > > ls -al /rpool/.zfs/snapshot > total 0 > dr-xr-xr-x 2 root root 2 2011-10-29 07:58 . > dr-xr-xr-x 4 root root 4 2011-10-29 00:06 .. > > ------- --------- ---=--- --------- -------- > > There appears to have been nothing entered in root crontab > > crontab -l |grep '^[^#]' > 10 3 * * * /usr/sbin/logadm > 15 3 * * 0 [ -x /usr/lib/fs/nfs/nfsfind ] && /usr/lib/fs/nfs/nfsfind > 30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean > 30 0,9,12,18,21 * * * /usr/lib/update-manager/update-refresh.sh > > What should have been entered there? > > Finally getting down to the output log > svc:/application/time-slider:default > > ------- --------- ---=--- --------- -------- > [...] > [ Oct 29 01:00:22 Executing start method ("/lib/svc/method/time-slider > start"). ] > crontab: can't open your crontab file. > [ Oct 29 01:01:02 Method "start" exited with status 0. ] > [ Oct 29 01:01:16 Stopping because service disabled. ] > [ Oct 29 01:01:17 Executing stop method (:kill). ] > [ Oct 29 07:59:05 Enabled. ] > > Why can it not open crontab file? > > # ls -l /var/spool/cron > total 3 > drwxr-xr-x 2 root sys 2 2011-09-12 06:01 atjobs > drwxr-xr-x 2 root sys 6 2011-10-29 08:00 crontabs > > # ls -l /var/spool/cron/crontabs > total 6 > -rw------- 1 root sys 1004 2011-09-12 06:04 adm > -rw------- 1 root root 1241 2011-10-29 08:00 root > -rw------- 1 root sys 1122 2011-09-12 06:01 sys > -rw------- 1 root daemon 0 2011-10-29 08:00 zfssnap > > Which crontab would it be, or is it not one of those already there? > > could it be as simple as `touch'ing a specific named crontab with the > right owner and group? > >
If you look at the method script, crontab -l is only invoked to remove older crontab entries, as the new time-slider service for automatic snapshots handles its own scheduling through a persistent timesliderd instead of cron. On a newly installed system, zfssnap does not have a crontab. Time Slider is not part of illumos-gate, though. -Albert ------------------------------------------- illumos-discuss Archives: https://www.listbox.com/member/archive/182180/=now RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be Modify Your Subscription: https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4 Powered by Listbox: http://www.listbox.com
