From owner-freebsd-questions@FreeBSD.ORG Fri Jul 15 05:15:50 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 2BE7516A42C; Fri, 15 Jul 2005 05:15:50 +0000 (GMT) (envelope-from serg@tmn.ru) Received: from sbtx.tmn.ru (relay.tmn.ru [212.76.160.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5048443D4C; Fri, 15 Jul 2005 05:15:47 +0000 (GMT) (envelope-from serg@tmn.ru) Received: from sv.tech.sibitex.tmn.ru (sv.tech.sibitex.tmn.ru [10.76.160.59]) by sbtx.tmn.ru (8.13.3/8.13.3) with ESMTP id j6F5FhTt012320; Fri, 15 Jul 2005 11:15:43 +0600 (YEKST) (envelope-from serg@tmn.ru) Received: from sv.tech.sibitex.tmn.ru (localhost.tech.sibitex.tmn.ru [127.0.0.1]) by sv.tech.sibitex.tmn.ru (8.13.3/8.13.3) with ESMTP id j6F5Fgn7080280; Fri, 15 Jul 2005 11:15:42 +0600 (YEKST) (envelope-from serg@sv.tech.sibitex.tmn.ru) Received: (from serg@localhost) by sv.tech.sibitex.tmn.ru (8.13.3/8.13.3/Submit) id j6F5FgCs080279; Fri, 15 Jul 2005 11:15:42 +0600 (YEKST) (envelope-from serg) Date: Fri, 15 Jul 2005 11:15:42 +0600 From: "Sergey N. Voronkov" To: asym Message-ID: <20050715051542.GA80213@tmn.ru> References: <42D6B117.5080302@plab.ku.dk> <20050714191449.A8A615D07@ptavv.es.net> <20050714191942.GA98637@freebie.xs4all.nl> <6.2.1.2.2.20050714161537.0378c310@mail.rfnj.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6.2.1.2.2.20050714161537.0378c310@mail.rfnj.org> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: ClamAV version 0.86.1, clamav-milter version 0.86 on sbtx.tmn.ru X-Virus-Status: Clean Cc: freebsd-stable@freebsd.org, freebsd-questions@freebsd.org Subject: Re: dangerous situation with shutdown process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2005 05:15:50 -0000 On Thu, Jul 14, 2005 at 04:17:06PM -0400, asym wrote: > At 15:19 7/14/2005, Wilko Bulte wrote: > >On Thu, Jul 14, 2005 at 12:14:49PM -0700, Kevin Oberman wrote.. > >> > Date: Thu, 14 Jul 2005 20:38:15 +0200 > >> > From: Anatoliy Dmytriyev > >> > Sender: owner-freebsd-stable@freebsd.org > >> > > >> > Hello, everybody! > >> > > >> > I have found unusual and dangerous situation with shutdown process: > >> > I did a copy of 200 GB data on the 870 GB partition (softupdates is > >> > enabled) by cp command. > >> > It took a lot of time when I did umount for this partition exactly > >after > >> > cp, but procedure finished correctly. > >> > In case, if I did ???shutdown ???h(r)???, also exactly after cp, the > >shutdown > >> > procedure waited for ???sync??? (umounting of the file system) but sync > >> > process was terminated by timeout, and fsck checked and did correction > >> > of the file system after boot. > >> > > >> > System 5.4-stable, RAM 4GB, processor P-IV 3GHz. > >> > > >> > How can I fix it on my system? > > The funny thing about all the replies here.. is that this guy is not saying > that sync doesn't work. > > He's saying that the timeout built into shutdown causes it to *terminate* > the sync forcibly before it's done, and then reboot. > > All finger pointing about IDE, SCSI, softupdates, and journals aside.. I > think all he wants/needs is a way to increase that timer. > If you can't increase shutdown timeout, decrease softupdates timers. # tail -3 /etc/sysctl.conf kern.metadelay=14 kern.dirdelay=15 kern.filedelay=17 That was my solution for shutdown wait timeout. Serg N. Voronkov, Sibitex JSC, Tyumen, Russia.