From owner-freebsd-questions@FreeBSD.ORG Fri Apr 17 05:20:52 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E2E6FC3C for ; Fri, 17 Apr 2015 05:20:52 +0000 (UTC) Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6F4056AF8F for ; Fri, 17 Apr 2015 05:20:52 +0000 (UTC) Received: by wizk4 with SMTP id k4so8454356wiz.1 for ; Thu, 16 Apr 2015 22:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=WhYbj0mYUandC4xOAWQb6yK2QnqD45O+69pZlXn4cXs=; b=p22Dg6G95s0VqkZ2s2jlHZ3MNDtZ2VB4wqNG4DmI5rWFNteUvPOQ/ywvmodakRKdQJ 7lUO7nmzeModn3jYx0JPM9ppfkFNMCGaizZsxxi2HiFhuV7JG7CBjqPyMT0LsZSqXO68 dxekgEgtmPKeckVMYAnWjU10mVcxighpoCUJPfjSeRW1RPBNKiDfasQWt5naSjgfRO9U opOBLuUVw9Nu+Au0KAbM6pjNKMpqE1NbozZv9R7yMexfV4ur3Ik8JnEKOaQt/KQ+q35X 8D6hk8b74Rlr8hPzXk+vDhGUVkU8O8DJ1IWptwqGFZXgrrLRN8hYQ1XVMt38ZxbE6cNO k/yA== MIME-Version: 1.0 X-Received: by 10.180.97.7 with SMTP id dw7mr1093857wib.74.1429248051017; Thu, 16 Apr 2015 22:20:51 -0700 (PDT) Received: by 10.28.21.82 with HTTP; Thu, 16 Apr 2015 22:20:50 -0700 (PDT) In-Reply-To: References: <552D135F.9010907@FreeBSD.org> <05238e5a.6156fafe@fabiankeil.de> <52922ff3.7b8a6684@fabiankeil.de> <772eb83d.1c422b92@fabiankeil.de> Date: Fri, 17 Apr 2015 15:20:50 +1000 Message-ID: Subject: Re: mountroot prompt with error2, when trying to boot from a single drive in a 2-way mirror From: Yudi V To: "Ricky ." Cc: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Apr 2015 05:20:53 -0000 On Fri, Apr 17, 2015 at 2:54 PM, Ricky . wrote: > From the console images, it would appear that its searching for device > (ada2p3). I'm assuming that is the device missing and it is expecting it to > have the guid of ada2p3 before it was missing. Because ada3 is now ada2 it > is showing the mismatch. > You might be right, I will change these to gpt lables and test. But first I will have to recreate drive I destroyed. > > Did you try to unplug the other one and see if it will boot? > > I suggest as switching to gpt labeling.as a work around. > > > Date: Fri, 17 Apr 2015 13:36:52 +1000 > > Subject: Re: mountroot prompt with error2, when trying to boot from a > single drive in a 2-way mirror > > From: yudi.tux@gmail.com > > To: freebsd-questions@freebsd.org > > > > > I cleared the label info on /dev/ada2, still same error. And that disk > > (ada2) became unavailable. > > gpart show does not even list the disk or it's partitions. I am guessing > > zpool labelclear -f /dev/ada2 destroyed the partition table. > > > > > > Answer to Ricky's question: > > > > No I used geom names (ada2p3). > > I cannot figure out the reason for the GUID mismatch (see console image). > > Any ideas? > > > > On Fri, Apr 17, 2015 at 4:26 AM, Fabian Keil < > freebsd-listen@fabiankeil.de> > > wrote: > > > > > Yudi V wrote: > > > > > > > I checked some popular image hosting websites, could not find any > that > > > did > > > > not use javascript. I can send you the images via email. > > > > > > Sure. > > > > > > > This is reproducible on a clean install of 9.3 as well. I think it's > a > > > bug. > > > > > > I think the problem could be that two of the labels from ada2p3 are > picked > > > up when looking at ada2 itself. Quoting the gptzfsboot man page: > > > > > > | After a disk is probed and gptzfsboot determines that the > > > | whole disk is not a ZFS pool member, the individual partitions > > > | are probed in their partition table order. > > > > > > Putting the pool on p2 and using p3 for swap would probably work around > > > this, but given that there's free space behind p3 already, it's not > > > obvious to me why this wasn't already sufficient. > > > > > > > Here's the output of zdb -l /dev/ada2p3 > > > [...] > > > > > > > > gpart show ada2 output: > > > > > > > > => 34 156301421 ada2 GPT (74G) > > > > 34 2014 - free - (1M) > > > > 2048 512 1 freebsd-boot (256k) > > > > 2560 1536 - free - (768k) > > > > 4096 8388608 2 freebsd-swap (4.0G) > > > > 8392704 10485760 - free - (5.0G) > > > > 18878464 137422848 3 freebsd-zfs (65G) > > > > 156301312 143 - free - (71k) > > > > > > For comparison, no labels are found with this layout > > > (p3, p4 and p5 are also encrypted, though): > > > > > > [fk@kendra ~]$ gpart show > > > => 40 1250263648 ada0 GPT (596G) > > > 40 128 1 freebsd-boot (64K) > > > 168 1880 - free - (940K) > > > 2048 409600 2 freebsd-zfs (200M) > > > 411648 8388608 3 freebsd-zfs (4.0G) > > > 8800256 8388608 4 freebsd-swap (4.0G) > > > 17188864 1233074816 5 freebsd-zfs (588G) > > > 1250263680 8 - free - (4.0K) > > > > > > [fk@kendra ~]$ zdb -l /dev/ada0 > > > -------------------------------------------- > > > LABEL 0 > > > -------------------------------------------- > > > failed to unpack label 0 > > > -------------------------------------------- > > > LABEL 1 > > > -------------------------------------------- > > > failed to unpack label 1 > > > -------------------------------------------- > > > LABEL 2 > > > -------------------------------------------- > > > failed to unpack label 2 > > > -------------------------------------------- > > > LABEL 3 > > > -------------------------------------------- > > > failed to unpack label 3 > > > > > > Fabian > > > > > > > > > > > -- > > Kind regards, > > Yudi > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > -- Kind regards, Yudi