From owner-freebsd-questions@FreeBSD.ORG Wed Jan 21 00:16:55 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 049C8106566C for ; Wed, 21 Jan 2009 00:16:55 +0000 (UTC) (envelope-from gfritz@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.237]) by mx1.freebsd.org (Postfix) with ESMTP id B65A28FC08 for ; Wed, 21 Jan 2009 00:16:54 +0000 (UTC) (envelope-from gfritz@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so3484398rvf.43 for ; Tue, 20 Jan 2009 16:16:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=u2te28mjsWyFG/KjvMGUe8FJl4wz3Q4IIolbK4hfWQw=; b=OV9pP4xG1kysoHH9VWx1GvbTKgeOBQUTbvf8rWSru4xJo0L01rkANH0e5FKNtfC1ic Uq5M6n2QSlwOCANp3LQs9Ygn83gPD1MWkaWYrKmxGUA9DcIXAG0cGvUaaRJ8YfYNQqHw 7UJIX7ZuLsMaEFLQmca0rTY8l/qA5eJOG66s8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=VokoODRTPGDVbAjrm8WdFT/apv0yE+ke4qly/NJH/C8QN40cIq8SjqA/RrJyl9iQqI bcAnrPPsq6F46qM2LnltBQvkAWIO3z57AB/jxx6MrLiwwrTbar2pqt+/9Ol2aHZT4OSu NZQEX1MVgbOuc7gZ3p8SPhAzvRHODqqWGYz4o= Received: by 10.141.48.10 with SMTP id a10mr614282rvk.71.1232495578778; Tue, 20 Jan 2009 15:52:58 -0800 (PST) Received: from dev.null (231-175-174-206.cust.wirelessbeehive.com [206.174.175.231]) by mx.google.com with ESMTPS id g22sm5830899rvb.1.2009.01.20.15.52.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 20 Jan 2009 15:52:58 -0800 (PST) Received: by dev.null (Postfix, from userid 1002) id EE518EA0; Tue, 20 Jan 2009 16:52:56 -0700 (MST) Date: Tue, 20 Jan 2009 16:52:56 -0700 From: Geoff Fritz To: freebsd-questions@freebsd.org Message-ID: <20090120235256.GB30866@dev.null> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Way to prune/limit the ZFS zpool history? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2009 00:16:55 -0000 Hello. I've been experimenting with a series scripts that takes ZFS snapshots every minute, eventually destroying the oldest so that only so many remain available for a given window of time. This may seem a trivial concern with hard drive sizes being what they are these days, but after running a "zpool history" I started thinking that a ZFS create and destroy being performed every minute would add up to a lot over the course of a few years (current estimate is 62MB/year for the naming scheme of my snapshots). >From what I understand, ZFS compresses metadata by default, so this history probbaly won't take up much space in the grand scheme of things. However, I was curious just the same about wether or not there was a way to prune down, or limit the size of, the zpool history. Also, is there any substantial performance penalty to having a huge history? Thanks for any pointers. -- Geoff