Sorry, no such feature exists.  We do generate sysevents for when
resilvers are completed, but not scrubs.  Adding those sysevents would
be an easy change, but doing anything more complicated (such as baking
that functionality into zpool(1M)) would be annoying.

If you want an even more hacked up version, you could try the following
dtrace script:

        spa_scrub_thread:entry
        {
                self->scrubber = 1;
        }

        thread_exit:entry
        /self->scrubber/
        {
                system("do something");
                exit(0);
        }

- Eric

On Wed, Jan 23, 2008 at 11:12:59AM -0800, Dan McDonald wrote:
> Say I'm firing off an at(1) or cron(1) job to do scrubs, and say I want to 
> scrub two pools sequentially
> because they share one device.  The first pool, BTW, is a mirror
> comprising of a smaller disk and a subset of a larger disk.  The other
> pool is the remainder of the larger disk.
> 
> I see no documentation mentioning how to scrub, then
> wait-until-completed.  I'm happy to be pointed at any such
> documentation.  I'm also happy to be otherwise clued-in if no such
> documentation exists, or if no such feature exists.

--
Eric Schrock, Fishworks                        http://blogs.sun.com/eschrock
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to