From nobody@FreeBSD.org Sun Jan 15 16:00:52 2012 Return-Path: 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 Subject: Partition table not recognized after upgrade R8.3 -> 9.0 X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 164143 >Category: kern >Synopsis: [geom] Partition table not recognized after upgrade R8.3 -> 9.0 [regression] >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-geom >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: Mon Jan 23 11:00:25 UTC 2012 >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: Responsible-Changed-From-To: freebsd-bugs->freebsd-geom Responsible-Changed-By: linimon Responsible-Changed-When: Mon Jan 16 01:41:09 UTC 2012 Responsible-Changed-Why: reclassify. http://www.freebsd.org/cgi/query-pr.cgi?pr=164143 From: Eric Jan Pot To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/164143: [geom] Partition table not recognized after upgrade R8.3 -> 9.0 [regression] Date: Mon, 23 Jan 2012 11:29:44 +0100 --20cf306f74145227de04b72f822d Content-Type: text/plain; charset=ISO-8859-1 See my last post on the forum: http://forums.freebsd.org/showpost.php?p=162768&postcount=44 --20cf306f74145227de04b72f822d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable See my last post on the forum:=A0

--20cf306f74145227de04b72f822d-- >Unformatted: