From owner-freebsd-fs@FreeBSD.ORG Mon Sep 12 07:00:38 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5B5C106566B for ; Mon, 12 Sep 2011 07:00:38 +0000 (UTC) (envelope-from patpro@patpro.net) Received: from rack.patpro.net (rack.patpro.net [193.30.227.216]) by mx1.freebsd.org (Postfix) with ESMTP id 284738FC0C for ; Mon, 12 Sep 2011 07:00:37 +0000 (UTC) Received: from rack.patpro.net (localhost [127.0.0.1]) by rack.patpro.net (Postfix) with ESMTP id B46461CC020; Mon, 12 Sep 2011 09:00:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at patpro.net Received: from amavis-at-patpro.net ([127.0.0.1]) by rack.patpro.net (rack.patpro.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oGxymMa8Tmvd; Mon, 12 Sep 2011 09:00:34 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by rack.patpro.net (Postfix) with ESMTP; Mon, 12 Sep 2011 09:00:34 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/signed; boundary=Apple-Mail-33-348701443; protocol="application/pkcs7-signature"; micalg=sha1 From: Patrick Proniewski In-Reply-To: <20110911190309.GC62897@DataIX.net> Date: Mon, 12 Sep 2011 09:00:33 +0200 Message-Id: <2978932D-9F31-4D11-A168-158FBC4E59C2@patpro.net> References: <20110911190309.GC62897@DataIX.net> To: Jason Hellenthal X-Mailer: Apple Mail (2.1084) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Filesystems Subject: Re: ZFS: zpool history size X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2011 07:00:38 -0000 --Apple-Mail-33-348701443 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 11 sept. 2011, at 21:03, Jason Hellenthal wrote: >> Every interesting events between 2011-02-22 and 2011-06-30 is gone, = that's more than 700 lines of ZFS command. Thanks to svn, I lose = nothing. >>=20 >> My questions are:=20 >> - what is the zpool history size limit?=20 >> - and is it possible to increase its value? >=20 > As for a temporary workaround I am almost pretty sure you might have > already done this is run a `zpool history` per day and log that to > something like /var/log/zpool.history with a dated header and footer = and > just continue to append to that file while you chflags sappnd,sunlnk = $FILE. Well, I dump history every day already, and inject the result into a = subversion repository. I could use a flat file, but subversion allows me = to retrieve diff or complete version very easily. Eventually, the problem is the same, if I need to reconstruct my FS from = history, I'll have to merge every version and make sure every command is = issued only once and in the correct order (no sort -u for me, then). That's not a big issue, and I guess I can design a shell script using = "svn diff" to create a proper history file, but that's annoying. regards, Patrick --Apple-Mail-33-348701443--