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

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
xorquewasp@googlemail.com wrote:
> 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.

Nice!

Now ensure you submit some text to the maintainers that may help clarify
this in the documentation ;)

Steve

[-- Attachment #2 --]
0	*H
010	+0	*H
00CK9AbxIUw0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
090507231610Z
100507231610Z0B10UThawte Freemail Member10	*H
	steve@ibctech.ca0"0
	*H
0
DZ杙<2IⵀfrsE6q?0.>
S@Œ!V?A\Q
r-aZ
Ōf/0{OYQhɏߴ
F_\Q0BF=<_.a*3epeY|tݼcvlҷ+@piQA{2E9WN4[Z`h6VM/zPbd(GC^K6XV4j<t-0+0U0steve@ibctech.ca0U00
	*H
æ|85aQz-*3HG		.s*Fw*`HvFw;9ytƘn0taC/:WC+LÙ{Oq 1n00CK9AbxIUw0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
090507231610Z
100507231610Z0B10UThawte Freemail Member10	*H
	steve@ibctech.ca0"0
	*H
0
DZ杙<2IⵀfrsE6q?0.>
S@Œ!V?A\Q
r-aZ
Ōf/0{OYQhɏߴ
F_\Q0BF=<_.a*3epeY|tݼcvlҷ+@piQA{2E9WN4[Z`h6VM/zPbd(GC^K6XV4j<t-0+0U0steve@ibctech.ca0U00
	*H
æ|85aQz-*3HG		.s*Fw*`HvFw;9ytƘn0taC/:WC+LÙ{Oq 1n0?0
0
	*H
010	UZA10UWestern Cape10U	Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0)	*H
	personal-freemail@thawte.com0
030717000000Z
130716235959Z0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00
	*H
0Ħ<UsUNʙZhup[v:aQP
0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr`00U00CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380
	*H
HP.
fgCL!6-6/P p<ab:~t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO1d0`0v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAK9AbxIUw0	+0	*H
	1	*H
0	*H
	1
090711221448Z0#	*H
	1;_`OlM50R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0	+71x0v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAK9AbxIUw0*H
	1xv0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAK9AbxIUw0
	*H
&}<~{i_*smH3^!ki0 ,ҏ!XByt6'k[ev9	O챁F|Ƹlf,X#qv&AVRY)~VT%a[1ڱQE&1),c=i@u<!ljpd#-P:$j%]P%L2i9ʤsDS"0HºF'Թ,GUu_']DЮPa)

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A590ED8.4060509>