Troubleshooting – Time Slider (zfs snapshots)

1. snapshot complains about no access to cron

This problem i came across was after i was playing with crontab. It looks like the zfs snapshot service uses an account called “zfssnap” and if it doesnt have access to cron then it will have issues creating / checking snapshots. Check the file /etc/cron.d/cron.allow and ensure that “zfssnap” is in there. The issues i had looked like this in the log…   (check the logs via the log file viewer)

Checking for non-recursive missed // snapshots  rpool

Checking for recursive missed // snapshots protected rpool/backup rpool/export rpool/ROOT unprotected

crontab: you are not authorized to use cron.  Sorry.

crontab: you are not authorized to use cron.  Sorry.

Error: Unable to add cron job!

Moving service to maintenance mode.

The actual crontab lives in the /var/spool/cron/crontab/zfssnap file. (don’t edit this manually)

Restart the services by clearing the maintenance status then if required enable or restart like so…

svcadm clear auto-snapshot:frequent

svcadm enable auto-snapshot:frequent

Check that all zfs snapshot services are running as expected….

svcs -a | grep snapshot

online         22:26:12 svc:/system/filesystem/zfs/auto-snapshot:weekly

online          9:06:36 svc:/system/filesystem/zfs/auto-snapshot:monthly

online          9:11:23 svc:/system/filesystem/zfs/auto-snapshot:daily

online          9:12:00 svc:/system/filesystem/zfs/auto-snapshot:hourly

online          9:23:57 svc:/system/filesystem/zfs/auto-snapshot:frequent

2. snapshot fails with dataset busy error

Seen something similar to this in the logs? …

Checking for recursive missed // snapshots protected rpool/backup rpool/export rpool/ROOT unprotected

Last snapshot for svc:/system/filesystem/zfs/auto-snapshot:frequent taken on Sun Mar 15 22:26 2009

which was greater than the 15 minutes schedule. Taking snapshot now.

cannot create snapshot ‘rpool/ROOT/opensolaris@zfs-auto-snap:frequent-2009-03-16-09:06’: dataset is busy

no snapshots were created

Error: Unable to take recursive snapshots of rpool/ROOT@zfs-auto-snap:frequent-2009-03-16-09:06.

Moving service svc:/system/filesystem/zfs/auto-snapshot:frequent to maintenance mode.

Here is an bit from this site – “This problem is being caused by the old (IE: read non-active) boot environments not being mounted and it is trying to snapshot them. You can’t ‘svcadm clear’ or ‘svcadm enable’ them because they will still fail.”

Apparently a bug with the zfs snapshots similar to /root/opensolaris type pools — anyhow to fix i’ve just used a custom setup in time slider. Clear all the services set to “maintenance” then launch time-slider-setup and configure to exclude the problem pools.

Update : As per Johns comments below you can disable the snapshots on the offending zfs system using the following command…

zfs set com.sun:auto-snapshot=false rpool/ROOT

As above to clear “maintenance” status on the effected services run the following command…

svcadm clear auto-snapshot:hourly

svcadm clear auto-snapshot:frequent

Now run this to ensure all the SMF services are running without issue…

svcs -x

If all is well you will get no output.

681 Replies to “Troubleshooting – Time Slider (zfs snapshots)”

  1. Hiya, I am really glad I have found this information. Nowadays bloggers publish only about gossip and net stuff and this is really irritating. A good web site with interesting content, that’s what I need. Thanks for making this web-site, and I’ll be visiting again. Do you do newsletters by email?

  2. Excellent weblog right here! Additionally your site rather a lot up fast! What host are you the usage of? Can I am getting your associate hyperlink on your host? I want my site loaded up as quickly as yours lol

  3. Just desire to say your article is as astonishing. The clearness in your post is simply spectacular and i could assume you’re an expert on this subject. Well with your permission allow me to grab your feed to keep up to date with forthcoming post. Thanks a million and please keep up the enjoyable work.

  4. I loved as much as you’ll receive carried out right here. The sketch is tasteful, your authored material stylish. nonetheless, you command get bought an shakiness over that you wish be delivering the following. unwell unquestionably come further formerly again since exactly the same nearly very often inside case you shield this increase.

  5. Normally I do not read article on blogs, however I wish to say that this write-up very forced me to check out and do so! Your writing style has been surprised me. Thank you, very great article.

  6. Hiya, I’m really glad I’ve found this information. Nowadays bloggers publish only about gossip and net stuff and this is actually annoying. A good blog with exciting content, that is what I need. Thank you for making this web-site, and I will be visiting again. Do you do newsletters by email?

  7. Awesome post. I’m a regular visitor of your blog and appreciate you taking the time to maintain the excellent site. I’ll be a regular visitor for a long time.

  8. Hello there. I discovered your blog via Google while searching for a related topic, your web site got here up. It appears good. I have bookmarked it in my google bookmarks to come back then.

  9. Hiya, I am really glad I have found this information. Today bloggers publish just about gossip and internet stuff and this is really frustrating. A good blog with interesting content, this is what I need. Thanks for making this site, and I’ll be visiting again. Do you do newsletters by email?

  10. Thanks so much for giving everyone an extraordinarily terrific chance to check tips from this website. It’s usually very nice and also full of fun for me personally and my office colleagues to visit the blog really thrice a week to learn the newest secrets you will have. Not to mention, we are always motivated with all the gorgeous techniques you serve. Selected 4 facts in this post are without a doubt the finest we have all had.

  11. you are really a excellent webmaster. The web site loading velocity is amazing. It seems that you are doing any unique trick. Furthermore, The contents are masterwork. you have done a excellent task in this matter!

  12. Hiya, I am really glad I have found this information. Nowadays bloggers publish just about gossip and net stuff and this is actually annoying. A good site with exciting content, this is what I need. Thanks for making this website, and I will be visiting again. Do you do newsletters by email?

  13. Hiya, I am really glad I have found this information. Nowadays bloggers publish just about gossip and net stuff and this is really annoying. A good website with interesting content, that’s what I need. Thanks for making this website, and I’ll be visiting again. Do you do newsletters by email?

  14. Hey there. I discovered your blog by way of Google whilst searching for a similar matter, your website got here up. It appears to be good. I have bookmarked it in my google bookmarks to visit then.

  15. Hey there. I discovered your web site via Google whilst looking for a similar topic, your web site got here up. It seems great. I have bookmarked it in my google bookmarks to visit then.

  16. Can I just say such a relief to seek out somebody that truly knows what theyre referring to on the net. You definitely have learned to bring an issue to light and work out it critical. More and more people must look at this and understand this side from the story. I cant believe youre no more popular since you certainly provide the gift.

  17. Hey there. I found your blog by way of Google even as looking for a similar subject, your site got here up. It seems good. I’ve bookmarked it in my google bookmarks to visit then.

  18. Awesome post. I’m a normal visitor of your web site and appreciate you taking the time to maintain the nice site. I’ll be a regular visitor for a long time.

  19. Hiya, I am really glad I’ve found this info. Nowadays bloggers publish only about gossip and net stuff and this is really frustrating. A good web site with interesting content, that is what I need. Thanks for making this website, and I will be visiting again. Do you do newsletters by email?

  20. Hiya, I am really glad I’ve found this information. Today bloggers publish just about gossip and net stuff and this is really irritating. A good website with exciting content, this is what I need. Thank you for making this site, and I’ll be visiting again. Do you do newsletters by email?

  21. Hey there. I found your web site by way of Google at the same time as searching for a similar topic, your website got here up. It appears good. I have bookmarked it in my google bookmarks to come back then.

  22. Hi there. I found your site by means of Google even as looking for a comparable subject, your web site came up. It seems to be good. I’ve bookmarked it in my google bookmarks to visit then.

  23. Hiya, I’m really glad I have found this information. Nowadays bloggers publish just about gossip and net stuff and this is really irritating. A good website with interesting content, this is what I need. Thanks for making this website, and I will be visiting again. Do you do newsletters by email?

  24. Hello there. I found your blog via Google whilst looking for a related matter, your website got here up. It looks great. I have bookmarked it in my google bookmarks to visit then.