Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Sep 2011 10:49:58 +0200
From:      Patrick Proniewski <patpro@patpro.net>
To:        FreeBSD Filesystems <freebsd-fs@freebsd.org>
Subject:   ZFS: zpool history size
Message-ID:  <E8158B0B-A303-4873-8419-177D79848400@patpro.net>

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

--Apple-Mail-7-96066748
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hello,

I have a production server hosting about 250 web sites. I'm using ZFS, =
so that I can create a dedicated FS whenever a user wants to create a =
web site.
I've started 6 mouths ago to dump `zpool history` into a file, daily, =
and to commit the output to a remote subversion server, so that if I =
need I could recreate my storage pool with all its properties.
I've noticed that in fact the `zpool history` is limited. I've many =
automated daily/weekly/monthly snapshots creations and that "noise" is =
filling the history log and overwrites my precious history.

Today, my history log is only 13 valuable lines long:

# zpool history | grep -v @
History for 'tank':
2011-02-22.14:17:10 zpool create tank da1
2011-06-30.16:46:38 zfs create tank/Sites/m
2011-06-30.16:46:38 zfs set refquota=3D500M tank/Sites/m
2011-07-11.10:46:16 zfs create tank/Sites/sites/egales-uk
2011-07-11.10:46:17 zfs set refquota=3D500M tank/Sites/sites/egales-uk
2011-07-11.10:46:41 zfs create tank/Sites/sites/egales-es
2011-07-11.10:46:42 zfs set refquota=3D500M tank/Sites/sites/egales-es
2011-07-11.10:46:47 zfs create tank/Sites/sites/egales-ro
2011-07-11.10:46:47 zfs set refquota=3D500M tank/Sites/sites/egales-ro
2011-07-11.10:46:51 zfs create tank/Sites/sites/egales-se
2011-07-11.10:46:52 zfs set refquota=3D500M tank/Sites/sites/egales-se
2011-07-12.10:56:14 zfs set =
mountpoint=3D/Sites/a_supprimer/perso-truchaud-2011071210 =
tank/user/truchaud
2011-07-12.11:04:37 zfs destroy -r tank/user/truchaud

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.

My questions are:=20
- what is the zpool history size limit?=20
- and is it possible to increase its value?

regards,
patpro


--Apple-Mail-7-96066748--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E8158B0B-A303-4873-8419-177D79848400>