Date: Sat, 5 Nov 2016 15:57:12 +0100 From: Matthias Fechner <idefix@fechner.net> To: freebsd-questions@freebsd.org Subject: Re: Prevent zpool from being mounted on next boot Message-ID: <5cfa1c85-e1f2-c879-7309-1021386a16ad@fechner.net> In-Reply-To: <86eg2sunv9.fsf@gmail.com> References: <b9a0002f-42cc-f663-e469-db458442a82a@fechner.net> <86eg2sunv9.fsf@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5cfa1c85-e1f2-c879-7309-1021386a16ad>