From nobody@FreeBSD.org Sat Oct 29 13:12:29 2011 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDDF4106564A for ; Sat, 29 Oct 2011 13:12:29 +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 728028FC0A for ; Sat, 29 Oct 2011 13:12:29 +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 p9TDCST3091054 for ; Sat, 29 Oct 2011 13:12:28 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p9TDCSVh091053; Sat, 29 Oct 2011 13:12:28 GMT (envelope-from nobody) Message-Id: <201110291312.p9TDCSVh091053@red.freebsd.org> Date: Sat, 29 Oct 2011 13:12:28 GMT From: Sisantha To: freebsd-gnats-submit@FreeBSD.org Subject: GEOM: mirror GPT X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 162147 >Category: kern >Synopsis: [geom] mirror GPT: GPT rejected -- may not be recoverable >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-geom >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 29 13:20:03 UTC 2011 >Closed-Date: Mon Nov 28 15:36:27 UTC 2011 >Last-Modified: Mon Nov 28 15:36:27 UTC 2011 >Originator: Sisantha >Release: FreeBSD version 9.0RC1 >Organization: >Environment: f9server# uname -a FreeBSD f9server.nirmana.de 9.0-RC1 FreeBSD 9.0-RC1 #0: Tue Oct 18 18:30:38 UTC 2011 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Implementing GMIRROR with 2X2TB or 2X1TB diskd with FreeBSD V.9RC1 after issuing: 1. # sysctl kern.geom.debugflags=17 2. gmirror label -vb round-robin gm0 /dev/ada0 ( my disks are: f9server# df -h Filesystem Size Used Avail Capacity Mounted on /dev/ada0p2 1G 210M 716M 23% / devfs 1.0k 1.0k 0B 100% /dev /dev/ada0p4 122G 32M 112G 0% /var /dev/ada0p5 1.7T 2.3G 1.5T 0% /usr ) 3. #gmirror label -vb round-robin gm0 /dev/ada0 Metadata value stored on /dev/ada0. Done. 4. #gmirror load 5.# echo 'geom_mirror_load="YES"' >> /boot/loader.conf 6. # vi /etc/fstab 7. :w /etc/fstab.bak. 8. :%s/ada/mirror\/gm/g But I'm getting GEOM: mirror/gm0: corrupt or invalid GPT detected. GEOM: mirror/gm0: GPT rejected -- may not be recoverable. I tested this on two servers with: 1. 2X2TB ( allmost new disks) 1. 2X1TB (less used disks) Pl. let me know the reasons for this problem as how to solve it. I appreciate your cooperation. Regards, Sisantha >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-bugs->freebsd-geom Responsible-Changed-By: linimon Responsible-Changed-When: Sat Oct 29 16:22:05 UTC 2011 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=162147 State-Changed-From-To: open->closed State-Changed-By: jh State-Changed-When: Mon Nov 28 15:33:01 UTC 2011 State-Changed-Why: This is not a bug. You overwrite the partition table with the "gmirror label -vb round-robin gm0 /dev/ada0" command. Please ask questions on the freebsd-questions@ mailing list. http://www.freebsd.org/cgi/query-pr.cgi?pr=162147 >Unformatted: