From owner-freebsd-stable@FreeBSD.ORG Tue Jan 16 18:52:03 2007 Return-Path: X-Original-To: freebsd-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 3189816A415 for ; Tue, 16 Jan 2007 18:52:03 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 1DA9113C47E for ; Tue, 16 Jan 2007 18:52:03 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 8A6D01A4D89; Tue, 16 Jan 2007 10:52:02 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id CE3A951482; Tue, 16 Jan 2007 13:51:57 -0500 (EST) Date: Tue, 16 Jan 2007 13:51:57 -0500 From: Kris Kennaway To: Doug Ambrisko Message-ID: <20070116185157.GB97568@xor.obsecurity.org> References: <45A68F2E.6040205@scottevil.com> <200701161813.l0GIDv78052359@ambrisko.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="A6N2fC+uXW/VQSAv" Content-Disposition: inline In-Reply-To: <200701161813.l0GIDv78052359@ambrisko.com> User-Agent: Mutt/1.4.2.2i Cc: Scott Oertel , Willem Jan Withagen , freebsd-stable@freebsd.org, Kris Kennaway 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: Tue, 16 Jan 2007 18:52:03 -0000 --A6N2fC+uXW/VQSAv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 16, 2007 at 10:13:57AM -0800, Doug Ambrisko wrote: > FWIW, with this patch I find making snap-shots a lot more reliable: >=20 > --- sys/ufs/ffs/ffs_snapshot.c.orig Wed Mar 22 09:42:31 2006 > +++ sys/ufs/ffs/ffs_snapshot.c Mon Nov 20 14:59:13 2006 > @@ -282,6 +282,8 @@ restart: > if (error) > goto out; > bawrite(nbp); > + if (cg % 10 =3D=3D 0) > + ffs_syncvnode(vp, MNT_WAIT); > } > /* > * Copy all the cylinder group maps. Although the > @@ -303,6 +305,8 @@ restart: > goto out; > error =3D cgaccount(cg, vp, nbp, 1); > bawrite(nbp); > + if (cg % 10 =3D=3D 0) > + ffs_syncvnode(vp, MNT_WAIT); > if (error) > goto out; > } >=20 > or things can get wedged. We have some other patches as well that might > be required. As a hack on a local server we have been using snap shots > to do a "hot" back-up of a data base each morning. This is based on > 6.x. What do you mean by "get wedged"? Are you seeing a deadlock, and if so then what are the details? When you say 6.x, do you mean up-to-date RELENG_6? There were various snapshot deadlock fixes committed over the past year including some in the past few months. Kris --A6N2fC+uXW/VQSAv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFrR7NWry0BWjoQKURAsoIAKCVzwi68+q5T53O+h1O1HGclyOQHwCgwuNv xdP3sDKBW/rhK6p7kxLbPqs= =EohE -----END PGP SIGNATURE----- --A6N2fC+uXW/VQSAv--