From owner-freebsd-stable@FreeBSD.ORG Sun Dec 28 03:25:51 2014 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6C735B72 for ; Sun, 28 Dec 2014 03:25:51 +0000 (UTC) Received: from ipmail04.adl6.internode.on.net (ipmail04.adl6.internode.on.net [150.101.137.141]) by mx1.freebsd.org (Postfix) with ESMTP id 0695E64516 for ; Sun, 28 Dec 2014 03:25:50 +0000 (UTC) Received: from ppp14-2-30-215.lns21.adl2.internode.on.net (HELO leader.local) ([14.2.30.215]) by ipmail04.adl6.internode.on.net with ESMTP; 28 Dec 2014 13:50:40 +1030 Message-ID: <549F7705.4020701@ShaneWare.Biz> Date: Sun, 28 Dec 2014 13:50:37 +1030 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Dr Josef Karthauser , stable@freebsd.org Subject: Re: Creating a bootable ZFS disk? References: <1548B1FF-36E2-4AE4-ADD4-3B8872A9DF55@tao.org.uk> In-Reply-To: <1548B1FF-36E2-4AE4-ADD4-3B8872A9DF55@tao.org.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2014 03:25:51 -0000 On 28/12/2014 01:07, Dr Josef Karthauser wrote: > I’m trying to create a new ZFS pool from an existing one (the new > one is 4k aligned and the old one is legacy 512b). > > But, I can’t get it to boot! Not sure what I’m doing wrong. > > I thought I could create the new pool, and use ‘zfs send/recv’ to > copythe existing pool and then boot onto the new disk, but the kernel > doesn’t load… :(. > > Does anyone know what I’m doing wrong? > Here’s my recipe: > > # gpart create -s gpt diskid/DISK-NEW-DISK > # gpart add -s 64K -t freebsd-boot diskid/DISK-NEW-DISK > # gpart add -t 8G freebsd-swap diskid/DISK-NEW-DISK > # gpart add -t freebsd-zfs diskid/DISK-NEW-DISK > # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 diskid/DISK-NEW-DISK > > # zfs create copy /dev/diskid/DISK-NEW-DISKp3 > # zfs send -R oldpool@20141226 | zfs receive -duvF copy > # zpool set bootfs=copy/ROOT/default copy > Are you sure diskid/DISK-NEW-DISK is correct? Do you have /dev/diskid/ ? Do you mean /dev/gpt/ ? DISK-NEW-DISK - variable name should have a $ in front? $DISK-NEW-DISK Check partition table with gpart show Is the bios set to boot from this disk? -- FreeBSD - the place to B...Serving Data Shane Ambler