From owner-freebsd-stable@FreeBSD.ORG Sat Dec 27 14:56:09 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 13E4125D for ; Sat, 27 Dec 2014 14:56:09 +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 9E9E5B7D for ; Sat, 27 Dec 2014 14:56:08 +0000 (UTC) Received: by mail-wg0-f41.google.com with SMTP id y19so16057127wgg.0 for ; Sat, 27 Dec 2014 06:56:06 -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=IsRGY+UVd1THWlzWpyW8OQFLR7BaUxc7C8gRtcyFja0=; b=S4M6FRORnJnNHDkgkn4w+ARXyTqo6O4KfInBsZOF8yXHwU3qf+kS0qZwUxhHYzBE58 B62Kp+oexA6+ZHBxspJGDbtk6n9UTJihEfpS1IyAlPKJulqdjyylA8ISmk6BI4R/4D06 sfJLouP9dx6XimAxSzubOr8Tnfb5t5/MkckRlx2+y7w1APwgY+8K3Iw/lSbCiSi6G1VG 88l2uAVRu9UMac2sMxHiXydIxs7WPTufoIUL1Ow5gnK/S1JhNL99nDwjIfxW7rt6YVC6 3RWWWvkj2AhDRLSoAWJQIHOQ2KexQQDz1RvkYaMm0XjE1O+szNsRV8YRm1yHQZHqccF9 fpzg== X-Gm-Message-State: ALoCoQkDdGmZbHMc4/rt93nS6XyxY6AmGIuQ+iXzc5UomIy0Rtf8Amt1lJ+2ddeSDs824m7Rv57w X-Received: by 10.194.83.98 with SMTP id p2mr92097494wjy.125.1419692166827; Sat, 27 Dec 2014 06:56:06 -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 kn5sm42477774wjb.48.2014.12.27.06.56.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Dec 2014 06:56:06 -0800 (PST) Message-ID: <549EC87C.2010909@multiplay.co.uk> Date: Sat, 27 Dec 2014 14:55:56 +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> <549EC712.3010909@multiplay.co.uk> In-Reply-To: <549EC712.3010909@multiplay.co.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:56:09 -0000 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 You should just need the following in /boot/loader.conf: vfs.root.mountfrom="zfs:copy/ROOT/default " Regards Steve 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. > > 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" >