From owner-freebsd-stable@FreeBSD.ORG Sat Dec 27 17:24:24 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 3A787BA4 for ; Sat, 27 Dec 2014 17:24:24 +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 EC27C6437F for ; Sat, 27 Dec 2014 17:24:23 +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 39C79655 for ; Sat, 27 Dec 2014 17:24:11 +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 BD2B1653; Sat, 27 Dec 2014 17:24:08 +0000 (UTC) Subject: Re: Creating a bootable ZFS disk? Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_FE747A40-A473-470D-B40B-7107E2DE9A3A"; protocol="application/pgp-signature"; micalg=pgp-sha512 From: Dr Josef Karthauser In-Reply-To: <549EE3CC.6060306@multiplay.co.uk> Date: Sat, 27 Dec 2014 17:24:06 +0000 Message-Id: <701A1C89-91BE-4FCC-92C7-67A4418069EB@tao.org.uk> References: <1548B1FF-36E2-4AE4-ADD4-3B8872A9DF55@tao.org.uk> <549ed9f7.512f2a0a.5305.7ec5SMTPIN_ADDED_BROKEN@mx.google.com> <549EE3CC.6060306@multiplay.co.uk> To: Steven Hartland X-Mailer: Apple Mail (2.1878.6) X-DSPAM-Result: Innocent X-DSPAM-Processed: Sat Dec 27 17:24:10 2014 X-DSPAM-Confidence: 1.0000 X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 549eeb3a26845666010465 Cc: freebsd-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 17:24:24 -0000 --Apple-Mail=_FE747A40-A473-470D-B40B-7107E2DE9A3A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 I did try populating the cache file on the last try, but it didn=92t = help. I=92ll report back when I=92ve completed the -a4k test. Joe. On 27 Dec 2014, at 16:52, Steven Hartland = wrote: > Actually the cache file shouldn't be required for boot any more, so = you should be able to remove it. >=20 > I was also under the impression that on 4k drive the alignment should = indeed be automatic. >=20 > I'd be interested to know if either of these are not the case as they = are things we should look at fixing if not. >=20 > Regards > Steve >=20 > On 27/12/2014 16:34, krad wrote: >> you will probably need to update the zpool.cache as the one on the = rootfs >> you copied will have the details of the old pool in. You shouldnt = need and >> entries in the loader.conf as all they do is override the bootfs = flags much >> like rc.conf.local does to rc.conf entries >>=20 >> On 27 December 2014 at 16:10, Dr Josef Karthauser = >> wrote: >>=20 >>> Ahha, the 4k alignment is plausible! I thought that that was = automatic >>> these days. I'll give it a go. >>>=20 >>> Do I also need to have a zfs pool cache on the root disk? >>>=20 >>> Joe >>>=20 >>>=20 >>> 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. >>>>>=20 >>>>> 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? >>>>>=20 >>>>> Here?s my recipe: >>>>>=20 >>>>> # 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 >>>> 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 >>> " >>>=20 >>> _______________________________________________ >>> 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" >>>=20 >> _______________________________________________ >> 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" >=20 > _______________________________________________ > 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" >=20 --Apple-Mail=_FE747A40-A473-470D-B40B-7107E2DE9A3A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUnus2AAoJEGdCjs+EVN/YhmIIALCffNzLFeYMhzPfOIBLzk1+ Oi9Wj+n/1afvv9369QBRT6fbCE/fMnI6RLOXNkOtMukJbt9tMgQo1uB8c8UDm0te sg/2H8rDP6gDj3lSjb8fcsYljH0vxD8jmhu5QUTk+BSyANPI7jcpoq5uZrddGFmg /sG+Jg38NgMKO+6b8poqPTYAak1oD8yotQ/DEl41O1Gi4mlh4UoVGmdjd1Q4j2Tp gfolVGdNryBiFbL4bquQZMVs31kZY8JGYDvqJdbjGo3t3VeEADAXuGyk2jnPxQn4 F890ABa4LVjFGiKU7mbS4JPajk+u4hl3O7kmWcxHxgIhScWtLkL0a6Q4PMAgXM0= =V4dn -----END PGP SIGNATURE----- --Apple-Mail=_FE747A40-A473-470D-B40B-7107E2DE9A3A--