From owner-freebsd-questions@FreeBSD.ORG Wed Mar 30 13:43:03 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A41C16A4CE for ; Wed, 30 Mar 2005 13:43:03 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4514443D45 for ; Wed, 30 Mar 2005 13:43:03 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id AF8C25337C; Wed, 30 Mar 2005 05:43:00 -0800 (PST) Date: Wed, 30 Mar 2005 05:43:00 -0800 From: Kris Kennaway To: Andrea Venturoli Message-ID: <20050330134259.GA66640@xor.obsecurity.org> References: <424AACD1.3060802@netfence.it> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline In-Reply-To: <424AACD1.3060802@netfence.it> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: mksnap_ffs woes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2005 13:43:03 -0000 --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 30, 2005 at 02:42:41PM +0100, Andrea Venturoli wrote: > Hello. >=20 > I've got some scripts like the following: >=20 > /sbin/mksnap_ffs /usr /tmp/snapshot > /sbin/mdconfig -a -t vnode -f /tmp/snapshot -u 0 > /sbin/mount -r /dev/md0 /usr/local/etc/snapmnt > ... (backup data, transfer data, do anything) > /sbin/umount /usr/local/etc/snapmnt > /sbin/mdconfig -d -u 0 > /bin/rm -f /tmp/snapshot >=20 >=20 >=20 > This will sometimes more or less lock my system, since every write=20 > access to /usr gets stuck. >=20 > ps or top show mksnap_ffs running, but apparently doing nothing, and=20 > every attempt to kill it will fail. Not even a clean shutdown is possible. mksnap_ffs may sometimes take a long time (order of tens of minutes) to generate the snapshot. During this time, other writes to the filesystem may be suspended. Are you sure this isn't what you're seeing? Kris --ZPt4rx8FFjLCG7dd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCSqziWry0BWjoQKURAgVpAJ9VOChQGvDxG058YZjDrFo1/JizNQCeKgnc vlO1HpaIdd3FLskGsTVFFkA= =X/Ef -----END PGP SIGNATURE----- --ZPt4rx8FFjLCG7dd--