Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jul 2010 10:29:09 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Marco van Tol <marco@tols.org>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: Do we want a periodic script for a zfs scrub?
Message-ID:  <20100721102909.908226zl2nxympck@webmail.leidinger.net>
In-Reply-To: <20100720231450.GA63895@tolstoy.tols.org>
References:  <20100609162627.11355zjzwnf7nj8k@webmail.leidinger.net> <4C10B136.3030404@kkip.pl> <20100720231450.GA63895@tolstoy.tols.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Marco van Tol <marco@tols.org> (from Tue, 20 Jul 2010 23:14:50 +0000):

> On Thu, Jun 10, 2010 at 11:32:38AM +0200, Bartosz Stec wrote:
>
> [... periodic zfs scrubs and snapshots ...]
>
>> Ross-at-neces-dot-com already did what you're searching for. I'm using
>> his periodic scripts for some months now, check here:
>>
> http://www.neces.com/blog/technology/integrating-freebsd-zfs-and-periodic-snapshots-and-scrubs.
>> They're doing all necessary stuff, like checking for scrub in progress too.
>> Hope you'll find them helpful.
>
> I was just looking into these and noticed you probably have to enable
> "listsnapshots" on your zpool which is off by default.  Couldn't find a
> reference to it on the page mentioned above, but I may have overlooked
> it.  While listsnapshots is off, snapshots don't appear in the used
> "zfs list -H -o name" commands.

The script in -current does not use any code from the link above. The  
script in -current does not do snapshots, only scrubs. The script in  
-current does only do "zpool list", not "zfs list". So all in all, the  
script in -current does not need any change (I would have preferred  
the "-t snapshot" way of listing snapshots, if it would have been  
necessary).

Bye,
Alexander.

-- 
Democracy is also a form of worship.
It is the worship of Jackals by Jackasses.
		-- H. L. Mencken

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137



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