From owner-freebsd-fs@FreeBSD.ORG Fri Sep 9 09:07:48 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 8E2DE106564A for ; Fri, 9 Sep 2011 09:07:48 +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 0E7608FC13 for ; Fri, 9 Sep 2011 09:07:48 +0000 (UTC) Received: from rack.patpro.net (localhost [127.0.0.1]) by rack.patpro.net (Postfix) with ESMTP id 0F9381CC020 for ; Fri, 9 Sep 2011 10:50:02 +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 5l8dBOljPNbo for ; Fri, 9 Sep 2011 10:50:00 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by rack.patpro.net (Postfix) with ESMTP for ; Fri, 9 Sep 2011 10:50:00 +0200 (CEST) From: Patrick Proniewski Content-Type: multipart/signed; boundary=Apple-Mail-7-96066748; protocol="application/pkcs7-signature"; micalg=sha1 Date: Fri, 9 Sep 2011 10:49:58 +0200 Message-Id: To: FreeBSD Filesystems Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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: Fri, 09 Sep 2011 09:07:48 -0000 --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--