Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Sep 2011 09:00:33 +0200
From:      Patrick Proniewski <patpro@patpro.net>
To:        Jason Hellenthal <jhell@DataIX.net>
Cc:        FreeBSD Filesystems <freebsd-fs@freebsd.org>
Subject:   Re: ZFS: zpool history size
Message-ID:  <2978932D-9F31-4D11-A168-158FBC4E59C2@patpro.net>
In-Reply-To: <20110911190309.GC62897@DataIX.net>
References:  <E8158B0B-A303-4873-8419-177D79848400@patpro.net> <20110911190309.GC62897@DataIX.net>

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

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2978932D-9F31-4D11-A168-158FBC4E59C2>