From owner-freebsd-stable@FreeBSD.ORG Thu Jan 4 13:04:30 2007 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F131F16A47E for ; Thu, 4 Jan 2007 13:04:30 +0000 (UTC) (envelope-from wjw@withagen.nl) Received: from mail.digiware.nl (www.tegenbosch28.nl [217.21.251.97]) by mx1.freebsd.org (Postfix) with ESMTP id A791813C46A for ; Thu, 4 Jan 2007 13:04:28 +0000 (UTC) (envelope-from wjw@withagen.nl) Received: from [212.61.27.67] (opteron.digiware.nl [212.61.27.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.digiware.nl (Postfix) with ESMTP id D9E7A1707D; Thu, 4 Jan 2007 14:04:21 +0100 (CET) Message-ID: <459CFBCE.804@withagen.nl> Date: Thu, 04 Jan 2007 14:06:22 +0100 From: Willem Jan Withagen User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: LI Xin References: <459ABB40.7050603@digiware.nl> <459BAE28.5070300@delphij.net> In-Reply-To: <459BAE28.5070300@delphij.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: stable@freebsd.org, Willem Jan Withagen Subject: Re: running mksnap_ffs X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jan 2007 13:04:31 -0000 LI Xin wrote: > Willem Jan Withagen wrote: >> Hi, >> >> I got the following Filesystem: >> Filesystem Size Used Avail Capacity iused ifree %iused >> /dev/da0a 1.3T 422G 823G 34% 565952 182833470 0% >> >> Running of a 3ware 9550, on a dual core Opteron 242 with 1Gb. >> The system is used as SMB/NFS server for my other systems here. >> >> I would like to make weekly snapshots, but manually running mksnap_ffs >> freezes access to the disk (I sort of expected that) but the process >> never terminates. So I let is sit overnight, but looking a gstat did not >> reveil any activity what so ever... >> The disk was not released, mksnap_ffs could not be terminated. >> And things resulted in me rebooting the system. >> >> So: >> - How long should I expect making a snapshot to take: >> 5, 15, 30min, 1, 2 hour or even more??? > > This depends how much cylinder groups do you have. If you have a lot of > large files, using "newfs -b 32768" instead of the default settings > would speed up the process drastically. Note that this might be > unfeasable because you already have data on the disk. Well the disk is loaded with very different types of files.... It is my home file server and contains 10 years of Email in Mailbox/ format, al types of development work, my complete ripped CD collection (and more), next to that I've started to see how I can networkstream my DvD collection. So it depends on what you call a large file. :) > Another suggestion is to separate the volume into smaller slices, this > would reduce the impact. I always seem to make the wrong sizes, run out of space, and start to symlink. Which drives me completely crazy. So this time I went for one big slice, but makeing backups now starts to become a serious point of attention. :~} > BTW. Our experience with a semi full 1.3T volume is that the snapshot > would take about 1 hour on FreeBSD 5.x, but I doubt that it is not > really comparable to your situation as the hardware is very different. Can you give me an idea of what type of HW you're running. So I can guestimate from there on. This means that you don't have access to the volume for about 1 hour? >> - How do I diagnose the reason why it is not terminating? > > This might be somewhat complicated. Check out the developers' handbook. Done that, but mucking on a system that important makes me hesitate. Although not being able to make backups nerves me too. --WjW