From owner-freebsd-bugs@FreeBSD.ORG Sun Jan 15 16:10:09 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B354D106564A for ; Sun, 15 Jan 2012 16:10:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 872FF8FC17 for ; Sun, 15 Jan 2012 16:10:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0FGA9lY067445 for ; Sun, 15 Jan 2012 16:10:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0FGA9Ls067444; Sun, 15 Jan 2012 16:10:09 GMT (envelope-from gnats) Resent-Date: Sun, 15 Jan 2012 16:10:09 GMT Resent-Message-Id: <201201151610.q0FGA9Ls067444@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eric Pot Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1C03106566C for ; Sun, 15 Jan 2012 16:00:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 967CE8FC08 for ; Sun, 15 Jan 2012 16:00:52 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q0FG0qav057081 for ; Sun, 15 Jan 2012 16:00:52 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q0FG0qhG057080; Sun, 15 Jan 2012 16:00:52 GMT (envelope-from nobody) Message-Id: <201201151600.q0FG0qhG057080@red.freebsd.org> Date: Sun, 15 Jan 2012 16:00:52 GMT From: Eric Pot To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/164143: Partition table not recognized after upgrade R8.3 -> 9.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jan 2012 16:10:09 -0000 >Number: 164143 >Category: kern >Synopsis: Partition table not recognized after upgrade R8.3 -> 9.0 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jan 15 16:10:09 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Eric Pot >Release: 9.0-RELEASE >Organization: Accredis >Environment: FreeBSD enschede.pohold.com 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: I updated my up-to-date running FreeBSD 8.3 server to 9.0. Within the 8.3 environment I had setup a RAID 1 with gmirror according the FreeBSD documentation. I started an upgrade to 9.0-RELEASE using the freebsd-update steps as described in de documentation. After a reboot the system did not boot again. I resolved that as follows: During boot with option [2] from the boot menu I dropped the system to a loader(8) prompt. > set kern.geom.part.check_integrity=0 > boot Below the current output of > gpart show => 63 976773104 mirror/gm0 MBR (465G) [CORRUPT] 63 976773105 1 freebsd [active] (465G) => 0 976773105 mirror/gm0s1 BSD (465G) 0 2097152 1 freebsd-ufs (1.0G) 2097152 2097152 2 freebsd-swap (1.0G) 4194304 10485760 4 freebsd-ufs (5.0G) 14680064 4194304 5 freebsd-ufs (2.0G) 18874368 957898737 6 freebsd-ufs (456G) When I do a > shutdown -h now, the system will not stop because of the corrupted tables. ======= output of > loader.conf ======= geom_mirror_load="YES" accf_http_load="YES" kern.geom.part.check_integrity="0" ======= output of > gmirror list ========= Geom name: gm0 State: COMPLETE Components: 2 Balance: round-robin Slice: 4096 Flags: NONE GenID: 0 SyncID: 1 ID: 3056568790 Providers: 1. Name: mirror/gm0 Mediasize: 500107861504 (465G) Sectorsize: 512 Mode: r5w5e14 Consumers: 1. Name: ada0 Mediasize: 500107862016 (465G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: DIRTY GenID: 0 SyncID: 1 ID: 1583528033 2. Name: ada1 Mediasize: 500107862016 (465G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: DIRTY GenID: 0 SyncID: 1 ID: 21813752 >How-To-Repeat: >Fix: I tried the code of line below but without success. > sudo /sbin/gpart bootcode -b /boot/pmbr mirror/gm0 gpart: table 'mirror/gm0' is corrupt: Operation not permitted >Release-Note: >Audit-Trail: >Unformatted: