NetBSD Problem Report #39371

From www@NetBSD.org  Sun Aug 17 19:59:38 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id C6F4063B877
	for <gnats-bugs@gnats.netbsd.org>; Sun, 17 Aug 2008 19:59:38 +0000 (UTC)
Message-Id: <20080817195938.8D00763B853@narn.NetBSD.org>
Date: Sun, 17 Aug 2008 19:59:38 +0000 (UTC)
From: tnn@NetBSD.org
Reply-To: tnn@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: wapbl should allow mounting "/" even if journal is hosed
X-Send-Pr-Version: www-1.0

>Number:         39371
>Category:       kern
>Synopsis:       wapbl should allow mounting "/" even if journal is hosed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    joerg
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 17 20:00:01 +0000 2008
>Last-Modified:  Fri Jan 16 22:45:01 +0000 2009
>Originator:     Tobias Nygren
>Release:        4.99.72
>Organization:
>Environment:
NetBSD x40.int.nygren.pp.se 4.99.72 NetBSD 4.99.72 (GENERIC.x40) #1: Tue Aug 12 12:40:16 CEST 2008  tnn@x40.int.nygren.pp.se:/usb/obj/sys/arch/i386/compile/GENERIC.x40 i386
>Description:
The journal of my root filesystem became corrupt for some reason, leaving me with no sane recovery method:

boot device: wd0
root on wd0a dumps on wd0b
Unrecognized wapbl type: 0x08012180
no file system for wd0 (dev 0x0)
cannot mount root, error = 79
root device (default wd0a): ddb

I had to use ddb to trick the kernel into mounting the root fs without the FS_DOWAPBL flag, after which I could run fsck(8) to recover.

I think we should allow mounting "/" read-only, even if log replay fails.

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->joerg
Responsible-Changed-By: joerg@NetBSD.org
Responsible-Changed-When: Wed, 12 Nov 2008 16:04:07 +0000
Responsible-Changed-Why:
I'll deal with it.


From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/39371 CVS commit: [netbsd-5] src/sys/dev/raidframe
Date: Fri, 16 Jan 2009 22:43:34 +0000 (UTC)

 Module Name:	src
 Committed By:	bouyer
 Date:		Fri Jan 16 22:43:34 UTC 2009

 Modified Files:
 	src/sys/dev/raidframe [netbsd-5]: rf_netbsdkintf.c

 Log Message:
 Pull up following revision(s) (requested by oster in ticket #268):
 	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.252
 Implement DIOCCACHESYNC for RAIDframe too,
 should help prevent journal corruption that causes PR#39371


 To generate a diff of this commit:
 cvs rdiff -r1.250 -r1.250.4.1 src/sys/dev/raidframe/rf_netbsdkintf.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.