From owner-freebsd-stable@FreeBSD.ORG Sat Dec 27 16:10:23 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 0711C77C for ; Sat, 27 Dec 2014 16:10:23 +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 C4F9B665BC for ; Sat, 27 Dec 2014 16:10:22 +0000 (UTC) Received: from Extravariant (unknown [90.155.77.76]) (Authenticated sender: joemail@tao.org.uk) by babel.karthauser.co.uk (Postfix) with ESMTPSA id 6528D5BE; Sat, 27 Dec 2014 16:10:09 +0000 (UTC) From: Dr Josef Karthauser To: Warren Block Subject: Re: Creating a bootable ZFS disk? X-Mailer: eMailGanizer Message-ID: 3B9A95A5-CCCE-4B75-89B3-5F08361DCFD9.goodhumans@emailganizer.goodhumans.com Date: Sat, 27 Dec 2014 16:10:08 +0000 Reply-To: Dr Josef Karthauser In-Reply-To: References: <1548B1FF-36E2-4AE4-ADD4-3B8872A9DF55@tao.org.uk>, MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "stable@freebsd.org" 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 16:10:23 -0000 Ahha, the 4k alignment is plausible! I thought that that was automatic = these days. I'll give it a go. Do I also need to have a zfs pool cache on the root disk? Joe On 27 Dec 2014 at 3:27:47 pm GMT, Warren Block = wrote: =20 > On Sat, 27 Dec 2014, Dr Josef Karthauser wrote: >=20 > > 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 >=20 > Those partitions are probably not aligned to 4K. Add "-a4k" to the = gpart add commands. (Remember that ashift is filesystem block size, not = alignment.) > _______________________________________________ > 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"