From owner-freebsd-geom@FreeBSD.ORG Mon Jan 30 16:14:07 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D65D81065672 for ; Mon, 30 Jan 2012 16:14:07 +0000 (UTC) (envelope-from vivek@mailermailer.com) Received: from yertle.kcilink.com (yertle-comcast.kcilink.com [74.92.149.58]) by mx1.freebsd.org (Postfix) with ESMTP id 8E6078FC15 for ; Mon, 30 Jan 2012 16:14:07 +0000 (UTC) Received: from vick.int.kcilink.com (vick.int.kcilink.com [192.168.7.80]) by yertle.kcilink.com (Postfix) with ESMTP id F08588A00B for ; Mon, 30 Jan 2012 10:55:19 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailermailer.com; s=office0709; t=1327938919; bh=r4StdKSuo0iJbOr3xuPDw2botHsD1XSj7BEJoDV+9nM=; h=From:Content-Type:Content-Transfer-Encoding:Subject:Date: Message-Id:To:Mime-Version; b=DDl5Ro99+J+YHnOsIqNs81bFfkwZSzl+1VMAugPllC8pFsCeL1WB8Iv72RwvTA29o paKS7Q09UXxI214ci2HxUtU7u5vOyAjjR1j2HbvnzyvlzI5OpqZ9Hnsgzwzx6RKG40 gWhEqzCwzl6HQ1ryaYXeQpX/mj9GRy9d6PP43esw= From: Vick Khera Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Jan 2012 10:55:19 -0500 Message-Id: To: freebsd-geom@freebsd.org Mime-Version: 1.0 (Apple Message framework v1251.1) X-Mailer: Apple Mail (2.1251.1) Subject: whole-disk gmirror and upgrade from 8.2 to 9.0 X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2012 16:14:07 -0000 Earlier on questions@ I asked about the gmirror failure on booting into = a 9.0 kernel when the whole-disk was mirrored on an 8.2 system. I was = pointed to this post = = , which helped me get it to boot, and I verified that I have the exact = same issue mentioned there with the difference in gpart. So I figured what I should do is destroy my existing gmirror while = booted in 8.2, boot into 9.0 and install world. This went extremely = well.... that is until I try to recreate the new gmirror. I destroyed the gmirror in 8.2 with these commands: gmirror remove gm0 ad6 reboot gmirror remove gm0 ad4 reboot into 9.0 kernel, install world, merge master, etc. So now that my ada0 (old ad4) disk has on it a full 9.0 install, I want = to set up gmirror again, like I always do: boot to single user, then: # uname -a FreeBSD 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 17 14:49:58 EST = 2012 = vivek@lorax.kcilink.com:/u/lorax1/usr9/obj.amd64/u/lorax1/usr9/src/sys/KCI= 64 amd64 # gmirror list # gmirror status # gmirror dump ada1 Can't read metadata from ada1: Invalid argument. gmirror: Not fully done. # gmirror dump ada0 Can't read metadata from ada0: Invalid argument. gmirror: Not fully done. # sysctl kern.geom.debugflags=3D16 kern.geom.debugflags: 0 -> 16 # gmirror label -v gm0 ada0 Metadata value stored on ada0. Done. # reboot On reboot, I again get the same "GEOM_PART: integrity check failed = (mirror/gm0, MBR)" error from before, and then the system proceeds to = boot the ada1 disk, giving me 9.0 kernel with 8.2 world. gmirror = reports the mirror is fine, though: # gmirror status Name Status Components mirror/gm0 COMPLETE ada0 # gmirror list =20 Geom name: gm0 State: COMPLETE Components: 1 Balance: load Slice: 4096 Flags: NONE GenID: 0 SyncID: 1 ID: 168727457 Providers: 1. Name: mirror/gm0 Mediasize: 32016530944 (30G) Sectorsize: 512 Mode: r0w0e0 Consumers: 1. Name: ada0 Mediasize: 32016531456 (30G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 1 ID: 2335861329 If I set kern.geom.part.check_integrity=3D0 on the boot, I boot fine on = the gm0 device, and gmirror reports the same status "COMPLETE". If I = clear the gmirror by removing ada0, it will boot and run fine from the = ada0 device. What do I need to do to make this gmirror work again? The disk is = partitioned MBR so there should be no problems with GPT interference.