ZFS and zfsloader

Peter Toth freebsd at snap.net.nz
Tue Apr 26 11:16:47 UTC 2011


On 04/26/11 19:24, CyberLeo Kitsana wrote:
> On 04/25/2011 07:10 PM, Peter Toth wrote:
>> Hi there,
>>
>> I've recently migrated my old laptop to a new one (both running R8.2 +
>> ZFS). Used zfs send/recv and corrected mountpoints.
>> On the old laptop I had my / sitting in zpool, on the new one I've
>> created a separate zpool/root for /.
>> Everything is working OK except one strangeness - the boot loader still
>> reads the kernel out of zpool/boot instead of zpool/root/boot.
>>
>> I've reinstalled the boot code and the loader but this did not help.
>>
>> Anyone has an idea how to fix this?
> zpool set bootfs=zpool/root zpool
>
> The bootfs property on the zpool tells zfsboot which dataset contains
> the next boot stage (/boot.config or /boot/loader).
>
Worked like a charm!

Many thanks!


More information about the freebsd-questions mailing list