From owner-freebsd-stable@FreeBSD.ORG Tue Jan 4 14:21:33 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E73B5106564A for ; Tue, 4 Jan 2011 14:21:33 +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 9ED2E8FC12 for ; Tue, 4 Jan 2011 14:21:33 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1Pa7lU-0009EF-1F for freebsd-stable@freebsd.org; Tue, 04 Jan 2011 16:21:32 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Jan 2011 16:21:31 +0200 From: Daniel Braniss Message-ID: Subject: gstripe/gpart problems. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2011 14:21:34 -0000 Hi, I have 2 ada disks striped: # gstripe list Geom name: s1 State: UP Status: Total=2, Online=2 Type: AUTOMATIC Stripesize: 65536 ID: 2442772675 Providers: 1. Name: stripe/s1 Mediasize: 1000215674880 (932G) Sectorsize: 512 Stripesize: 65536 Stripeoffset: 0 Mode: r0w0e0 Consumers: 1. Name: ada0 Mediasize: 500107862016 (466G) Sectorsize: 512 Mode: r0w0e0 Number: 0 2. Name: ada1 Mediasize: 500107862016 (466G) Sectorsize: 512 Mode: r0w0e0 Number: 1 boot complains: GEOM_STRIPE: Device s1 created (id=2442772675). GEOM_STRIPE: Disk ada0 attached to s1. GEOM: ada0: corrupt or invalid GPT detected. GEOM: ada0: GPT rejected -- may not be recoverable. GEOM_STRIPE: Disk ada1 attached to s1. GEOM_STRIPE: Device s1 activated. # gpart show => 34 1953546173 stripe/s1 GPT (932G) 34 128 1 freebsd-boot (64K) 162 1953546045 - free - (932G) # gpart show => 34 1953546173 stripe/s1 GPT (932G) 34 128 1 freebsd-boot (64K) 162 1953546045 - free - (932G) # gpart add -t freebsd-ufs -s 20g stripe/s1 GEOM: ada0: corrupt or invalid GPT detected. GEOM: ada0: GPT rejected -- may not be recoverable. stripe/s1p2 added # gpart show => 34 1953546173 stripe/s1 GPT (932G) 34 128 1 freebsd-boot (64K) 162 41943040 2 freebsd-ufs (20G) 41943202 1911603005 - free - (912G) if I go the MBR road, all seems ok, but as soon as I try to write the boot block (boot0cfg -B /dev/stripe/s1) again the kernel starts to complain about corrupted GEOM too. any ideas? thanks, danny