Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jul 2009 23:12:17 +0100
From:      xorquewasp@googlemail.com
To:        Steve Bertrand <steve@ibctech.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ZFS scrub is finished?
Message-ID:  <20090711221217.GA69453@logik.internal.network>
In-Reply-To: <4A58F800.4090501@ibctech.ca>
References:  <20090711161132.GA74849@logik.internal.network> <4A58E314.4040808@ibctech.ca> <20090711202553.GA38156@logik.internal.network> <4A58F800.4090501@ibctech.ca>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 2009-07-11 16:37:20, Steve Bertrand wrote:
> xorquewasp@googlemail.com wrote:
> > On 2009-07-11 15:08:04, Steve Bertrand wrote:
> 
> >> Perhaps it is as simple as cron-ing something like the following (of
> >> course, replace "zpool scrub" with my cat commands.
> 
> > Problem is that 'zpool scrub' immediately returns with a success
> > error code if command line option parsing went OK and the specified
> > pools actually exist. You have to manually check the output of 'zpool status'
> > to see if the scrub executed with no errors (and that may be hours
> > later).
> 
> Ok. What is your ultimate goal? Is it to:
> 
> - run the first scrub
> - search for an "ok" err status upon return
> - begin the second scrub

Yep.

> If (in your case) the first scrub fails, is it still feasible to run the
> second scrub anyway? If it is, then chaining the commands together
> *should* work (however, I've never tested whether '&&' will continue
> upon certain 'failures', but so long as the first command _exits_, you
> should be alright).

I've just realised that the documentation is somewhat misleading.

Seems I can actually just do:

# zpool scrub backup
# zpool scrub storage

... and it'll run for both. The manual page made it sound as if
only one scrub operation could be running at one time, across all
pools.

xw



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20090711221217.GA69453>