From owner-freebsd-stable@FreeBSD.ORG Sat Dec 27 14:46:58 2014 Return-Path: Delivered-To: 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 92A88D72 for ; Sat, 27 Dec 2014 14:46:58 +0000 (UTC) Received: from babel.karthauser.co.uk (212-13-197-151.karthauser.co.uk [212.13.197.151]) by mx1.freebsd.org (Postfix) with ESMTP id 2C8B794E for ; Sat, 27 Dec 2014 14:46:57 +0000 (UTC) Received: from dspam (212-13-197-151.karthauser.co.uk [212.13.197.151]) by babel.karthauser.co.uk (Postfix) with SMTP id ED141514 for ; Sat, 27 Dec 2014 14:38:03 +0000 (UTC) Received: from unnamed-72.karthauser.co.uk (unnamed-72.karthauser.co.uk [90.155.77.72]) (Authenticated sender: joemail@tao.org.uk) by babel.karthauser.co.uk (Postfix) with ESMTPSA id 685D4512; Sat, 27 Dec 2014 14:38:01 +0000 (UTC) From: Dr Josef Karthauser Date: Sat, 27 Dec 2014 14:37:58 +0000 Subject: Creating a bootable ZFS disk? To: stable@freebsd.org Message-Id: <1548B1FF-36E2-4AE4-ADD4-3B8872A9DF55@tao.org.uk> Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-DSPAM-Result: Innocent X-DSPAM-Processed: Sat Dec 27 14:38:03 2014 X-DSPAM-Confidence: 1.0000 X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 549ec44b26844928120519 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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:46:58 -0000 I=92m 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=92t get it to boot! Not sure what I=92m doing wrong. I thought I could create the new pool, and use =91zfs send/recv=92 to = copy the existing pool and then boot onto the new disk, but the kernel = doesn=92t load=85 :(. Does anyone know what I=92m doing wrong? Here=92s 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=3Dcopy/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 =91/=91, = but it doesn=92t spin and doesn=92t time out. :(. Any clues would be gratefully received. Many thanks, Joe=