From owner-freebsd-geom@FreeBSD.ORG Wed Sep 23 00:32:10 2009 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 495DD10656C0; Wed, 23 Sep 2009 00:32:10 +0000 (UTC) (envelope-from shurd@sasktel.net) Received: from electron.sasknet.sk.ca (electron.sasknet.sk.ca [142.165.20.179]) by mx1.freebsd.org (Postfix) with ESMTP id 13B5B8FC13; Wed, 23 Sep 2009 00:32:09 +0000 (UTC) Received: from pps.filterd (electron [127.0.0.1]) by electron.sasknet.sk.ca (8.14.3/8.14.3) with SMTP id n8N08IHI002695; Tue, 22 Sep 2009 18:12:27 -0600 Received: from bgmpomr1.sasknet.sk.ca (bgmpOMR1.sasknet.sk.ca [142.165.72.22]) by electron.sasknet.sk.ca with ESMTP id gy6pjdhhv-1; Tue, 22 Sep 2009 18:12:26 -0600 Received: from ace.hurd.local (outgoing.bbsdev.net [76.202.204.46]) by bgmpomr1.sasknet.sk.ca (SaskTel eMessaging Service) with ESMTPA id <0KQE00L4NDWJOV00@bgmpomr1.sasknet.sk.ca>; Tue, 22 Sep 2009 18:12:26 -0600 (CST) Date: Tue, 22 Sep 2009 17:12:18 -0700 From: Stephen Hurd In-reply-to: <200909172032.n8HKWEUG021155@freefall.freebsd.org> To: marcel@FreeBSD.org Message-id: <4AB967E2.8010207@sasktel.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT References: <200909172032.n8HKWEUG021155@freefall.freebsd.org> User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.23) Gecko/20090917 SeaMonkey/1.1.18 Mnenhy/0.7.6.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2009-09-22_13:2009-09-22, 2009-09-22, 2009-09-22 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-0909220142 Cc: freebsd-geom@FreeBSD.org Subject: Re: kern/138891: [geom] GEOM_PART_* fails with sliced gstripe 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: Wed, 23 Sep 2009 00:32:10 -0000 marcel@FreeBSD.org wrote: > Your disk partitioning is invalid. You cannot have both a MBR and > a BSD disk label in the same place and independently of each other. > ace# fdisk /dev/stripe/raid0 > ace# bsdlabel /dev/stripe/raid0 > If you look closely, FreeBSD 7.2 will use the MBR on /dev/stripe/raid0 > and the BSD disklabel on /dev/stripe/raid0s4. However, since a BSD > disklabel also embeds a MBR, FreeBSD 8.0 will correctly prefer the > BSD disklabel on /dev/stripe/raid0. However, the BSD disk label is > not the one that should be used. > Fix the problem by wiping out the second sector on the disk. > BTW: the problem is caused by creating a dangerously dedicated > installation. It's known to be broken and should not be used. > FYI, > After wiping out the second sector or the drive (dd seek=1 count=1 if=/dev/zero of=/dev/stripe/raid0) fdisk now reports "invalid fdisk partition table found" but GEOM_PART_* still does not locate the a slice and the b/d slices will not mount. I have never had a /dev/stripe/raid0s* node, just /dev/stripe/raid0[a-d]. Is there any way to fix this short of a full backup/restore? (The reason I used DD mode here was that since the gstripe wouldn't be visible to the BIOS -- or anything other than FreeBSD -- slicing seemed silly.)