Prevent zpool from being mounted on next boot
idefix at fechner.net
Sat Nov 5 14:57:27 UTC 2016
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
> 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.
"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." --
More information about the freebsd-questions