From owner-freebsd-stable@FreeBSD.ORG Sun Dec 23 12:34:25 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8BE99551; Sun, 23 Dec 2012 12:34:25 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by mx1.freebsd.org (Postfix) with ESMTP id E96A88FC0C; Sun, 23 Dec 2012 12:34:24 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id hm2so3616855wib.4 for ; Sun, 23 Dec 2012 04:34:18 -0800 (PST) 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=UggCWsIs2m8pF4EIO+Dc8nU5nZaGdeLjZvH5ilCD5m0=; b=O5RJPoopr4ihcFdqTjv2WsoT6yYn8lhRaAUZqXXNLRG5OTOwJRMgI8jj2ZTimfASu5 huAaeSjk/jfbTQcN1ktcJZB20zSWlNW35hxxlJ894E1uEZD3m2wC7lndEzxg98nUNdO0 VmO3yKj04biZt9+QegLmwj1E9iFK4KkWZTfTb4IG02ZJxnaXnKEWL7pECf7qi1ai99D6 NQL7cH/9SpQelcxHX2x/KsWlw7SErZ2d8ljx83J+LQqLNtK5T7cZYZJsqT0Mvk5+1eto /gCORjuYLLFo+yu4QZXHTBzRefmCHmEBYFZKPwyzjArBaWfBV0UT9RcBfVjCibn9Ehom t0qA== MIME-Version: 1.0 Received: by 10.194.23.37 with SMTP id j5mr31542260wjf.28.1356266058160; Sun, 23 Dec 2012 04:34:18 -0800 (PST) Received: by 10.216.172.197 with HTTP; Sun, 23 Dec 2012 04:34:17 -0800 (PST) In-Reply-To: <50D6F901.7050206@FreeBSD.org> References: <50B6598B.20200@FreeBSD.org> <50D6F901.7050206@FreeBSD.org> Date: Sun, 23 Dec 2012 14:34:17 +0200 Message-ID: Subject: Re: [HEADSUP] zfs root pool mounting From: Kimmo Paasiala To: Andriy Gapon Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Dec 2012 12:34:25 -0000 On Sun, Dec 23, 2012 at 2:28 PM, Andriy Gapon wrote: > > I have MFCed the following change, so please double-check if you might be > affected. Preferably before upgrading :-) > > on 28/11/2012 20:35 Andriy Gapon said the following: >> >> Recently some changes were made to how a root pool is opened for root filesystem >> mounting. Previously the root pool had to be present in zpool.cache. Now it is >> automatically discovered by probing available GEOM providers. >> The new scheme is believed to be more flexible. For example, it allows to prepare >> a new root pool at one system, then export it and then boot from it on a new >> system without doing any extra/magical steps with zpool.cache. It could also be >> convenient after zpool split and in some other situations. >> >> The change was introduced via multiple commits, the latest relevant revision in >> head is r243502. The changes are partially MFC-ed, the remaining parts are >> scheduled to be MFC-ed soon. >> >> I have received a report that the change caused a problem with booting on at least >> one system. The problem has been identified as an issue in local environment and >> has been fixed. Please read on to see if you might be affected when you upgrade, >> so that you can avoid any unnecessary surprises. >> >> You might be affected if you ever had a pool named the same as your current root >> pool. And you still have any disks connected to your system that belonged to that >> pool (in whole or via some partitions). And that pool was never properly >> destroyed using zpool destroy, but merely abandoned (its disks >> re-purposed/re-partitioned/reused). >> >> If all of the above are true, then I recommend that you run 'zdb -l ' for >> all suspect disks and their partitions (or just all disks and partitions). If >> this command reports at least one valid ZFS label for a disk or a partition that >> do not belong to any current pool, then the problem may affect you. >> >> The best course is to remove the offending labels. >> >> If you are affected, please follow up to this email. > > -- > Andriy Gapon Much appreciated! I have verified that my system is not affected. One question, do I have to rewrite the zfs gpt boot loader (/boot/gptzfsboot) onto the freebsd-boot partition to make use of this change? -Kimmo