From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 14 10:37:13 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14FDB1065698 for ; Fri, 14 Jan 2011 10:37:13 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id C6D738FC20 for ; Fri, 14 Jan 2011 10:37:12 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1Pdh1r-000MPA-G3 for freebsd-hackers@freebsd.org; Fri, 14 Jan 2011 12:37:11 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 14 Jan 2011 12:37:11 +0200 From: Daniel Braniss Message-ID: Subject: more gpart/glabel problems X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2011 10:37:13 -0000 the provider in this case is mfid0 mfi0: mfid0: on mfi0 mfid0: 953344MB (1952448512 sectors) RAID volume 'r0' is optimal so I first use gpart: gpart create -s GPT mfid0 gpart bootcode -b /boot/pmbr mfid0 gpart add -s2G -t freebsd-ufs mfid0 so far, so good: gpart show => 34 1952448445 mfid0 GPT (931G) 34 128 1 freebsd-boot (64K) 162 4194304 2 freebsd-ufs (2.0G) 4194466 1948254013 - free - (929G) now: glabel lable r0 mfid0 and on the console: GEOM: mfid0: the secondary GPT table is corrupt or invalid. GEOM: mfid0: using the primary only -- recovery suggested. GEOM: mfid0: the secondary GPT table is corrupt or invalid. GEOM: mfid0: using the primary only -- recovery suggested. GEOM: label/r0: corrupt or invalid GPT detected. GEOM: label/r0: GPT rejected -- may not be recoverable. BTW, going the MBR way, it works as expected. so what am I doing wrong? thanks, danny