Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Dec 2004 01:22:24 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        wkwu@FreeBSD.csie.NCTU.edu.tw
Cc:        FreeBSD-stable@freebsd.org
Subject:   Re: sync disk before panic
Message-ID:  <20041205092224.GA39160@xor.obsecurity.org>
In-Reply-To: <20041205090944.GA53819@FreeBSD.csie.NCTU.edu.tw>
References:  <20041205090944.GA53819@FreeBSD.csie.NCTU.edu.tw>

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

--wac7ysb48OaltWcw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Dec 05, 2004 at 05:09:44PM +0800, wkwu@FreeBSD.csie.NCTU.edu.tw wro=
te:
> Our system needs several hours to fsck the disks after panic.
>=20
> Is is possible to sync the disks before kernel panic?

sysctl kern.sync_on_panic=3D1

Disabled by default because it's usually more trouble than it's worth
(if your system is panicking, that means something has gone terribly
wrong, and it may not be possible to sync without causing further
damage).  In real terms, this means that you'll likely get another
panic when the kernel tries to sync when it panics, and this can
obscure things like stack tracebacks and panic messages that are
useful for tracking down the cause of the problem.

Kris

--wac7ysb48OaltWcw
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBstNQWry0BWjoQKURAtmAAJ9SHPhTxbXKY8H0506l3i13DlI4swCg7xnn
610iJta4df0epxOjQpRGlOg=
=3YIM
-----END PGP SIGNATURE-----

--wac7ysb48OaltWcw--



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