From owner-freebsd-questions@FreeBSD.ORG Tue Apr 26 11:16:47 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C19C106566B for ; Tue, 26 Apr 2011 11:16:47 +0000 (UTC) (envelope-from freebsd@snap.net.nz) Received: from snapmx1.ironport.snap.net.nz (snapmx1.ironport.snap.net.nz [202.37.100.100]) by mx1.freebsd.org (Postfix) with ESMTP id C00CB8FC08 for ; Tue, 26 Apr 2011 11:16:46 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvEFAG+otk3KfG1m/2dsb2JhbACXBo4/ggTDNIV2BI4/jjU X-IronPort-AV: E=Sophos;i="4.64,267,1301832000"; d="scan'208";a="49633173" Received: from rupert.snap.net.nz ([202.37.100.140]) by smtp1.ironport.snap.net.nz with ESMTP; 26 Apr 2011 23:16:45 +1200 X-Sender-IP: 202.124.109.102 X-Sender-IP: 202.124.109.102 Received: from akllappt.local (102.109.124.202.static.snap.net.nz [202.124.109.102]) by rupert.snap.net.nz (Postfix) with SMTP id D3374201AF; Tue, 26 Apr 2011 23:16:44 +1200 (NZST) Message-ID: <4DB6A99A.4030305@snap.net.nz> Date: Tue, 26 Apr 2011 23:16:42 +1200 From: Peter Toth User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110421 Thunderbird/3.1.9 MIME-Version: 1.0 To: CyberLeo Kitsana References: <4DB60D60.3010104@snap.net.nz> <4DB67318.1070204@cyberleo.net> In-Reply-To: <4DB67318.1070204@cyberleo.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: ZFS and zfsloader X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2011 11:16:47 -0000 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!