From owner-freebsd-fs@FreeBSD.ORG Thu Nov 13 16:26:43 2008 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 A5B00106564A for ; Thu, 13 Nov 2008 16:26:43 +0000 (UTC) (envelope-from jmrueda@diatel.upm.es) Received: from edison.ccupm.upm.es (edison.ccupm.upm.es [138.100.4.49]) by mx1.freebsd.org (Postfix) with ESMTP id 34E498FC08 for ; Thu, 13 Nov 2008 16:26:42 +0000 (UTC) (envelope-from jmrueda@diatel.upm.es) Received: from smtp.euitt.upm.es (acherontia2.euitt.upm.es [138.100.52.79]) by edison.ccupm.upm.es (8.13.8/8.13.8) with ESMTP id mADGBMus025804 for ; Thu, 13 Nov 2008 17:11:23 +0100 Received: from localhost (localhost [127.0.0.1]) by smtp.euitt.upm.es (Postfix) with ESMTP id 29F6D56442 for ; Thu, 13 Nov 2008 17:11:22 +0100 (CET) Received: from smtp.euitt.upm.es ([127.0.0.1]) by localhost (smtp.euitt.upm.es [127.0.0.1]) (amavisd-new, port 11124) with ESMTP id SDhx1K4-S5pm for ; Thu, 13 Nov 2008 17:11:20 +0100 (CET) Received: from aurora.diatel.upm.es (aurora.diatel.upm.es [138.100.49.70]) (Authenticated sender: jmrueda) by smtp.euitt.upm.es (Postfix) with ESMTPSA id 7F78456444 for ; Thu, 13 Nov 2008 17:11:20 +0100 (CET) Received: from aurora.diatel.upm.es (aurora.gridat.rpv [172.20.20.6]) by aurora.diatel.upm.es (8.14.2/8.14.2) with ESMTP id mADGBJgr034297 for ; Thu, 13 Nov 2008 17:11:20 +0100 (CET) (envelope-from jmrueda@diatel.upm.es) Message-ID: <491C51A7.8080000@diatel.upm.es> Date: Thu, 13 Nov 2008 17:11:19 +0100 From: =?ISO-8859-1?Q?Javier_Mart=EDn_Rueda?= User-Agent: Thunderbird 2.0.0.14 (X11/20080514) MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <6EEFB17C-10DF-4CCD-AB07-83B4B75D033F@dragondata.com> In-Reply-To: <6EEFB17C-10DF-4CCD-AB07-83B4B75D033F@dragondata.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: UFS Snapshot lock time 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: Thu, 13 Nov 2008 16:26:43 -0000 Kevin Day wrote: > > Is there any documentation out there that explains how to optimize UFS > snapshotting? > > Specifically, we've got a rather big filesystem that I'd like to do > hourly snapshots of. I don't mind how long the snapshot itself takes, > but the amount of time the filesystem is locked is a problem. We're > "dead" for about 12 minutes per snapshotting. > Just a word of caution: I used to do this in some different machines (taking periodic snapshots and leaving a few around), and after a few days or weeks the system would lock up. Any process accessing the filesystem would block in "ufs" or something like that. After rebooting, fsck would report fatal errors and I had to do fsck -y in order to fix them with plenty of scary messages about truncated inodes, unexpected inconsistencies, and so on. This happened in several 6.x releases, on different machines, and both under i386 or amd64. Eventually, I gave up. I strongly suggest you try taking hourly snapshots in a non-production system first for a few weeks, and see if you experience this kind of problems. Sorry to be a party-pooper. It looks as if keeping more than one snapshot eventually is problematic. Taking single snapshots for dump has never been a problem, though.