From owner-freebsd-stable@FreeBSD.ORG Sat Dec 27 14:50:06 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9B207EA5 for ; Sat, 27 Dec 2014 14:50:06 +0000 (UTC) Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 317C699D for ; Sat, 27 Dec 2014 14:50:05 +0000 (UTC) Received: by mail-wg0-f41.google.com with SMTP id y19so16050987wgg.0 for ; Sat, 27 Dec 2014 06:50:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=N252d6o62wnjsRSCtt+FwP9hEZBH5wFVQuwz0nISGaA=; b=Yv/A/nmpjWgEJo6VAIImg0qQflS2Var95P0qwrhh6Hat39EbYLjtvwe+N0ElOBfKd0 rXB6kGwCsNP9Qt2OpsYPnWg5zc/6Cua8/4kCLSnL1Q7Mcty9LEvoEPKxJ82voVFvAvN4 ib9O/S+t+q+cIzfuFkkyzKVl+TH+AOtPgHavHYlY8MdVX/BNRceCQNLqNnvpDhh1Oyvw 3LUYWzWYPAJ7gADq2+BqXxV8iOXeRUP8AzR4lfu/Ec5ivq/MC1iJx5fAgSJeMuzpV3fA 2QfNyVASQiNVuHkDXrTsS799b4h+xFsrritQWCCaQiorU9uebRYmOtZnEQShmWqXVxvI KLxQ== X-Gm-Message-State: ALoCoQmMk5dVSIC1U3Iz/ExEFtsTg/Vwg13Oysc1T3Tb2XKJ3OLU3fEKMarPOFyIkDbDSCenx/GM X-Received: by 10.181.13.7 with SMTP id eu7mr79894172wid.72.1419691804038; Sat, 27 Dec 2014 06:50:04 -0800 (PST) Received: from [10.10.1.68] (82-69-141-170.dsl.in-addr.zen.co.uk. [82.69.141.170]) by mx.google.com with ESMTPSA id cg8sm40386475wjc.1.2014.12.27.06.50.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Dec 2014 06:50:03 -0800 (PST) Message-ID: <549EC712.3010909@multiplay.co.uk> Date: Sat, 27 Dec 2014 14:49:54 +0000 From: Steven Hartland User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: freebsd-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=windows-1252; 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: Sat, 27 Dec 2014 14:50:06 -0000 Unfortunately send / receive doesn't maintain the pool bootfs, so simply setting that should be all you need e.g. zpool set bootfs=tank/root tank On 27/12/2014 14:37, 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 copy the 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 > > That ought to do it, right? But, if I remove all the existing drives and try and boot on just the new drive, it gets nowhere. I see the ‘/‘, but it doesn’t spin and doesn’t time out. :(. > > Any clues would be gratefully received. > > Many thanks, > Joe > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"