From owner-freebsd-stable@FreeBSD.ORG Sat Dec 27 16:58:25 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 0F2B511D for ; Sat, 27 Dec 2014 16:58:25 +0000 (UTC) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) (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 9718766D4B for ; Sat, 27 Dec 2014 16:58:24 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id h11so18873409wiw.9 for ; Sat, 27 Dec 2014 08:58:17 -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=m6+59XhkPP1m505boudaIHtgtmkKdaR3l2uRG22vbXY=; b=j5ukUBIYVJHG8DjboSu5Mv0cLlxe5BOHPaFmhtdfyb9JB3Pizru2Uwhv0qayX4O8nu TiAXHzwYJvBu0tpVkIr7f3tsewPaDJang8nCSxMjYBa3VN0ba+TL0s1IYxKZucUHIRx9 9oKmo6Sf7UqidGsvTd2E65zBkhgikTQHued0pZNiFnCKEPJmZ2vsIdeKqL0Lak0iyy0w h1apUdbeZ5THpAoNRCCeU+TLv5ukjk52KOQQqz2xX76ks5vwXmBGI4kTNJ44Rjz92jFY hHkeCIl8JHQuqRaRctuhXmghW2kpQ5tjN0Hp9papw+2ILLwz4fsTaCBi9xVjtshxKSJx NU4A== X-Gm-Message-State: ALoCoQn5p6cmvR2JJP0OnEKY3KZt7uCnoOydO5+LDAkehLvmtWn5quQ3+bVDQCCjVdac3HVNZWgT X-Received: by 10.194.108.98 with SMTP id hj2mr93008854wjb.102.1419699158009; Sat, 27 Dec 2014 08:52:38 -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 ww4sm22640610wjc.47.2014.12.27.08.52.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Dec 2014 08:52:37 -0800 (PST) Message-ID: <549EE3CC.6060306@multiplay.co.uk> Date: Sat, 27 Dec 2014 16:52:28 +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> <549ed9f7.512f2a0a.5305.7ec5SMTPIN_ADDED_BROKEN@mx.google.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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:58:25 -0000 Actually the cache file shouldn't be required for boot any more, so you should be able to remove it. I was also under the impression that on 4k drive the alignment should indeed be automatic. 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. Regards Steve 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 > > On 27 December 2014 at 16:10, Dr Josef Karthauser > wrote: > >> 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: >> >>> On Sat, 27 Dec 2014, 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 >>> 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 >> " >> >> _______________________________________________ >> 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" >> > _______________________________________________ > 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"