From owner-freebsd-questions@freebsd.org Fri Jan 8 20:17:32 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CB204A66F77 for ; Fri, 8 Jan 2016 20:17:32 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 944EA1ED8 for ; Fri, 8 Jan 2016 20:17:32 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-21-51.dynamic.qsc.de [92.195.21.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 3BCFB3CF06; Fri, 8 Jan 2016 21:17:22 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u08KHMer002127; Fri, 8 Jan 2016 21:17:22 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 8 Jan 2016 21:17:22 +0100 From: Polytropon To: Yuri Cc: FreeBSD Questions Subject: Re: "fsck -y /" keeps saying "Disk is still dirty" no matter how many times I run it Message-Id: <20160108211722.71ab0408.freebsd@edvax.de> In-Reply-To: <569017FF.9060509@rawbw.com> References: <569017FF.9060509@rawbw.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jan 2016 20:17:32 -0000 On Fri, 8 Jan 2016 12:11:43 -0800, Yuri wrote: > As a result of the power outage I needed to run fsck on UFS disk with > soft-updates. > > But every time the command 'fsck -y /' says that it corrected a lot of > problems, but it still leaves the disk dirty. I ran it at least 15 times > - same result. This seems to indicate a massive file system defect. Using "fsck -fy /" enables fsck to use its full spectrum of repair (in comparison to -p "preen mode"). Check if _the same_ problems re-appear. In this case, they could not be fixed properly and the file system won't get the "clean" indicator. > What would be the way to proceed from here? Re-initalize the file system and restore from a recent backup. If you don't have one, you could try to backup from the damaged file system with "dump", then run "newfs", and then "restore". > (I ran fsck before, but it never happened that fsck keeps finding problems) I've seen a comparable problem very few times, but usually a second run of a forced full fsck solved the problem. Are you sure the disk (!) doesn't have problems after the power outage? It's possible that you're seeing a "hardware issue" here. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...