From owner-freebsd-stable@FreeBSD.ORG Mon Dec 16 08:51:10 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 81BC48A3 for ; Mon, 16 Dec 2013 08:51:10 +0000 (UTC) Received: from mail-ee0-x22c.google.com (mail-ee0-x22c.google.com [IPv6:2a00:1450:4013:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1510B1765 for ; Mon, 16 Dec 2013 08:51:09 +0000 (UTC) Received: by mail-ee0-f44.google.com with SMTP id b57so2053982eek.17 for ; Mon, 16 Dec 2013 00:51:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=rfk02W0PxoTR/i5glcPIM8ixphFmnQr6AAjER7SeV4Q=; b=rX0MUYpChGZ+gGk7xbmdTFdGT1HCy9nWHW5YC43HIxiI+eLEGD2bEdvTslvUsTsAzw 9aR8lVmwuOtzcLYyPVanOm23XvLQybrbOxizkVNZH8kwrMWDk/j0y6c+xp2RRfehf3VT yjMKMw7rkQfrTwm5z5TZlAymc+yBhTaFhO6Z9Z3Jg386emLsc0845YLTqqU3Bu6e/tPB 4DXuDPXhNKq/WteCGl0il2a5wyJCpZD1g/XWVO1MmHAaKfZrEUKuSC0UEDv+WcSfmFpL KeT+Lnt1jqPY6LUGenXSdd9vKEiFyR0qdaqDdowB8FRFwU/wxUNThP4GqhThU47bE3bU Amjg== X-Received: by 10.14.113.199 with SMTP id a47mr15608522eeh.41.1387183868523; Mon, 16 Dec 2013 00:51:08 -0800 (PST) Received: from [192.168.1.129] ([193.173.55.180]) by mx.google.com with ESMTPSA id h3sm39631744eem.15.2013.12.16.00.51.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Dec 2013 00:51:07 -0800 (PST) Message-ID: <52AEBEFA.9080702@gmail.com> Date: Mon, 16 Dec 2013 09:51:06 +0100 From: Johan Hendriks User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Adam McDougall Subject: Re: From 10 Beta4 to 10 RC1 lost gpt labels added by the installer References: <52AACB86.8090703@gmail.com> <52AB2FC1.5000605@gmail.com> <52ACCB9E.3010304@egr.msu.edu> In-Reply-To: <52ACCB9E.3010304@egr.msu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Dec 2013 08:51:10 -0000 Adam McDougall schreef: > > On 12/13/2013 11:03, Johan Hendriks wrote: >> Teske, DevinD schreef: >>> On Dec 13, 2013, at 12:55 AM, Johan Hendriks wrote: >>> >>>> Hello all. >>>> >>>> I installed FreeBSD 10 Beta4 the day before the RC1 release and >>>> used the ZFS install option, all went well. >>>> I then downloaded the new source for 10 RC1 and did a buildworld. >>>> It rebooted, the machine booted fine only did it show an error >>>> regarding the swap space. >>>> I could not mount /dev/gpt/swap0 and /dev/gpt/swap1 >>>> >>>> /dev/diskid/DISK...... and so on. >>>> >>>> /dev/gpt was not there anymore. >>>> >> Well after the upgrade i have no GPT labels any more (they are on the >> disk, but not useable). >> So the disk has the labels. >> But they are not active, /dev/gpt is not available, i think it gets >> overwritten or pushed out of the way by glabel. >> >> glabel list shows me the following >> jailhost ~ # glabel list >> Geom name: ada0 >> Providers: >> 1. Name: diskid/DISK-WMATV654xxxx There's been a similar problem with >> graid, are you sure that's >>> not what's going on here? That the OS has picked up on some >>> BIOS-created thing? >> > I think you ran into the same issue I did when I replaced a HD with an > ssd, > and the 10 kernel started detecting a 'diskid' string from the ssd. It > was causing > geom to detect my disk by the diskid, and for some reason it was > blocking access > to my swap partition (overzealous exclusive access to the disk?). Try > putting > kern.geom.label.disk_ident.enable=0 in /boot/loader.conf and > rebooting. I've been > meaning to file a PR. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" After setting kern.geom.label.disk_ident.enable=0 in /boot/loader.conf an zpool status gives me the following. jailhost ~ # zpool status pool: zroot state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gptid/83cd9405-6185-11e3-9983-002481b27da2 ONLINE 0 0 0 gptid/843a0d19-6185-11e3-9983-002481b27da2 ONLINE 0 0 0 errors: No known data errors Setting kern.geom.label.gptid.enable=0 in /boot/loader.conf and rebooting gives me the following. jailhost ~ # zpool status pool: zroot state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gpt/zfs0 ONLINE 0 0 0 gpt/zfs1 ONLINE 0 0 0 errors: No known data errors jailhost ~ # Also i needed to change /etc/fstab back to /dev/gpt/swap0 and /dev/gpt/swap1 to get swap working again. Now i am happy... @Devin. Is it possible to make bsdinstall in such a way that you can edit the gpt label for the disk. I always use the last 4 or 5 digits from the serial number of the disk. It would be nice if one can manage the name of the GPT label at zpool creation time. Thanks you for your time. regards Johan