Luca pointed out some problems with doing a pkg image update to nv_100a bits regarding the new SUNWzfs-auto-snapshot functionality.

You can follow the discussion on the indiana-discuss@ mailing list, but so far, it looks like a few workarounds are needed. On a fresh install, it should all fine, but if you're upgrading from an older development build of 2008.11 (unless we come up with a better fix) it appears to deliver the zfssnap role as a locked account (*LK* in /etc/shadow) which isn't allowed to execute cron jobs.

To work around this, you need to unlock the zfssnap role (I'd recommend running pfexec passwd -N zfssnap), add the following to /etc/user_attr:

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

then clear the maintenance state of the service:

$ pfexec svcadm clear frequent daily hourly weekly monthly

Thanks for the report Luca, and nice screenshots on your blog entry! I'll add comments to this post if we come up with any better solutions. As always, for those following along at home, the latest zfs-auto-snapshot bits are in our mercurial source repository, which you can get with $ hg clone ssh://anon@hg.opensolaris.org/hg/jds/zfs-snapshot


Comments:

Thanks Tim for the link, I see only one difference, about unlocking account with ``passwd'' command, I used -u switch (found into passwd man page), but you tell to use -N, which is the best?

Thanks :)

Posted by Luca Morettoni on November 03, 2008 at 09:06 AM GMT #

Tim, Do you know if there is a Solaris 10 CIM/WBEM provider for the ZFS file system?
I am writing an agent that monitors solaris machines. I can access the the UFS and HSFS
thru the Solaris_UFS and Solaris_HSFS classes but there is no Solaris_ZFS

Posted by Adriana Weiss on November 03, 2008 at 02:38 PM GMT #

Hi Adriana - I'm actually not sure: sounds like a good question to address to zfs-discuss [at ] opensolaris.org though, there's bound to be someone there who can help.

Posted by Tim Foster on November 03, 2008 at 02:48 PM GMT #

To create that line in user_attr using the commands:

pfexec usermod -K type=role zfssnap
pfexec rolemod -A solaris.smf.manage.zfs-auto-snapshot -P "ZFS File System Management" zfssnap

Posted by Chris Gerhard on November 04, 2008 at 09:05 PM GMT #

The fix is to deliver:
http://defect.opensolaris.org/bz/show_bug.cgi?id=4781

Posted by Tim Foster on November 17, 2008 at 04:33 PM GMT #

Thanks for the tip!

I tried this command but had error
zfsnap::::type=role;auths=solaris.smf.manage.zfs-auto-snapshot;profiles=ZFS File System Management

Mike
http://www.wpthemes.com

Posted by WordPress Themes on June 22, 2009 at 05:43 AM IST #

Post a Comment:
  • HTML Syntax: NOT allowed

This blog copyright 2009 by timf