From owner-freebsd-questions@freebsd.org Sat Nov 5 14:57:27 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 342F5C30CA0 for ; Sat, 5 Nov 2016 14:57:27 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from anny.lostinspace.de (anny.lostinspace.de [195.30.95.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E7EB7AA5 for ; Sat, 5 Nov 2016 14:57:26 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from server.idefix.lan (aftr-88-217-180-49.dynamic.mnet-online.de [88.217.180.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: idefix@fechner.net) by anny.lostinspace.de (Postfix) with ESMTPSA id C1255792578 for ; Sat, 5 Nov 2016 15:57:16 +0100 (CET) DMARC-Filter: OpenDMARC Filter v1.3.1 anny.lostinspace.de C1255792578 Authentication-Results: anny.lostinspace.de; dmarc=none header.from=fechner.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fechner.net; s=default; t=1478357836; bh=W2+Zs9VAMXpbu5zXpLC23OKwB3CaUXhW2PnANxCN3WI=; h=Subject:To:References:From:Date:In-Reply-To; b=lDkGC41/yiZeKbgLe3IEpqY5zoY9FHz7a9NQFFG46dsAgGaREF4aSJ5d9ii+R3zYE jH5lMDq5Bz9vJfUNTPvOLWOOQEaXjxl96xSVIhABFA9kpRkgFWQBjs26VCn1o+wVqw cCM7+g/fhxiMPJzpn9gE54xj+X8dwEdp2wOy22XU= Received: from [192.168.0.151] (aftr-88-217-180-49.dynamic.mnet-online.de [88.217.180.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by server.idefix.lan (Postfix) with ESMTPSA id B0B68690CF9 for ; Sat, 5 Nov 2016 15:57:15 +0100 (CET) Subject: Re: Prevent zpool from being mounted on next boot To: freebsd-questions@freebsd.org References: <86eg2sunv9.fsf@gmail.com> From: Matthias Fechner Message-ID: <5cfa1c85-e1f2-c879-7309-1021386a16ad@fechner.net> Date: Sat, 5 Nov 2016 15:57:12 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <86eg2sunv9.fsf@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Nov 2016 14:57:27 -0000 Am 04.11.2016 um 00:47 schrieb Brandon J. Wandersee: > Here would be the "dirty" way of doing it: > 1. Boot into "tank," or boot the install medium and > choose "Live CD" > 2. Import "zroot" (remember to use "altroot"), or > mount whatever partition contains /boot for "zroot" > 3. Delete /boot/zfs/zpool.cache on "zroot" > > That file should be replaced when you boot from "zroot," but will only > contain the relevant info for the new pool. You'd need to make sure > "zfs_enable='YES'" is set in /etc/rc.conf for at least the first boot, > since only the root filesystem would be mounted on the first boot > otherwise. > > Someone else might have a cleaner way of doing what you want, though. > mounting the root directory of the new pool and delete there the zpool.cache works fine. Just rebooted after it, killed the old pool completely and imported my other pools again. Thanks! Gruß Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook