From owner-freebsd-stable@FreeBSD.ORG Sat Dec 27 16:47:45 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 46D6BF3F for ; Sat, 27 Dec 2014 16:47:45 +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 D298B66B77 for ; Sat, 27 Dec 2014 16:47:44 +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 C04F55FC for ; Sat, 27 Dec 2014 16:47:32 +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 B8D125FA; Sat, 27 Dec 2014 16:47:28 +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=_2C444369-5405-4CFF-885A-EF9008198CBA"; protocol="application/pgp-signature"; micalg=pgp-sha512 From: Dr Josef Karthauser In-Reply-To: <549EC87C.2010909@multiplay.co.uk> Date: Sat, 27 Dec 2014 16:47:25 +0000 Message-Id: References: <1548B1FF-36E2-4AE4-ADD4-3B8872A9DF55@tao.org.uk> <549EC712.3010909@multiplay.co.uk> <549EC87C.2010909@multiplay.co.uk> To: Steven Hartland X-Mailer: Apple Mail (2.1878.6) X-DSPAM-Result: Innocent X-DSPAM-Processed: Sat Dec 27 16:47:32 2014 X-DSPAM-Confidence: 1.0000 X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 549ee2a426843268986675 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 16:47:45 -0000 --Apple-Mail=_2C444369-5405-4CFF-885A-EF9008198CBA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 I only have 'zfs_load=3D=93YES=94=92 in my /boot/loader.conf. I=92m = hoping the problem is that I missed the =91-a4k=92 on the =91gpart add=92.= I=92m starting again and will report back whether it now works or not! = :). Joe On 27 Dec 2014, at 14:55, Steven Hartland = wrote: > Replied too quickly there, as your already doing that, however you're = changing the name so the likely issue is you didn't update loader.conf >=20 > You should just need the following in /boot/loader.conf: > vfs.root.mountfrom=3D"zfs:copy/ROOT/default " >=20 > Regards > Steve >=20 > On 27/12/2014 14:49, Steven Hartland wrote: >> Unfortunately send / receive doesn't maintain the pool bootfs, so = simply setting that should be all you need e.g. >>=20 >> zpool set bootfs=3Dtank/root tank >>=20 >>=20 >> On 27/12/2014 14:37, Dr Josef Karthauser wrote: >>> 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). >>>=20 >>> But, I can=92t get it to boot! Not sure what I=92m doing wrong. >>>=20 >>> 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 :(. >>>=20 >>> Does anyone know what I=92m doing wrong? >>>=20 >>> Here=92s 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 >>>=20 >>> # zfs create copy /dev/diskid/DISK-NEW-DISKp3 >>> # zfs send -R oldpool@20141226 | zfs receive -duvF copy >>> # zpool set bootfs=3Dcopy/ROOT/default copy >>>=20 >>> 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. :(. >>>=20 >>> Any clues would be gratefully received. >>>=20 >>> 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" >>=20 >=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=_2C444369-5405-4CFF-885A-EF9008198CBA 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 iQEcBAEBCgAGBQJUnuKeAAoJEGdCjs+EVN/YK/0H/i+h+UfCUgTOguAIHp8U5A1F gLBit9F5YWmrQ7K7bqsCi2GvZWSQuMzAeC/7xYrY21/ZsqKHVKMEIoOY5r51QNxG UXlCMHzr++ghEZ4chAQPwI9JNKnnCGG+zBnVyX1ZFUbUFJzVtp98jfCGjdBBp/5n 7JdwZZLIheKqaSmtfML5Jp8KONkhZjA4lf5XDYwfO9laR97nXOfrmfCqNLI+riLQ 5R4wrsTZnJHxN1Of3Znjbls7Q30ir+B3IKmOa3cplkg/57IZwcBbvJCAHS2sSY09 Xe7KBjbPAgkn/30nBugfIJimWdWR9YdT6E/6I2iQsaWvG+KaM1JDQ8hf0POhTc4= =ew1R -----END PGP SIGNATURE----- --Apple-Mail=_2C444369-5405-4CFF-885A-EF9008198CBA--