kern/164143: Partition table not recognized after upgrade R8.3 -> 9.0

Eric Pot ericpot at gmail.com
Sun Jan 15 16:10:09 UTC 2012


>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 at 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:


More information about the freebsd-bugs mailing list