Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2005 05:43:00 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        Andrea Venturoli <ml.diespammer@netfence.it>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: mksnap_ffs woes
Message-ID:  <20050330134259.GA66640@xor.obsecurity.org>
In-Reply-To: <424AACD1.3060802@netfence.it>
References:  <424AACD1.3060802@netfence.it>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050330134259.GA66640>