From owner-freebsd-stable@FreeBSD.ORG Sat Dec 27 16:34:43 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 528B69EF for ; Sat, 27 Dec 2014 16:34:43 +0000 (UTC) Received: from mail-yk0-x229.google.com (mail-yk0-x229.google.com [IPv6:2607:f8b0:4002:c07::229]) (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 0BDA46692B for ; Sat, 27 Dec 2014 16:34:43 +0000 (UTC) Received: by mail-yk0-f169.google.com with SMTP id 79so5594206ykr.14 for ; Sat, 27 Dec 2014 08:34:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=XOKqyD3nxC+Pe2Mu4FQKsLRi6BND3t7CwcsxdIIr/Z8=; b=s/E4M7c0nOCIhoFZxQQO6HGA4idXnUZpK2u5pSHqvKDFlJ8rf77x1KGc40MBPvJKG+ N+dbIAvRoTQm2QmU1IceUOUSFTM5Yyr6AkqhBAHvt8Lwotj5SRkjMpX+BEOeGHruQ/lz blTEc8Bx9qby0V915RIBuSC8YSUn+5IB3hIGT2atngfGl4RXd3LH4kzyTDGUTy82g7jB ta0uFfMHN3I3VhsPGKq8DReHaG/HaDhJmIZFdBzj0I1DODEnkP8i+pyEet8ZLW9EKIk2 Ntwjx9qjhmgG/eWPmtzo7Jw6PVF9aM4X8Sl68OXuuEAU1jDtv6Xy/qAhaQsHTXSdCO4b /Vtg== MIME-Version: 1.0 X-Received: by 10.236.230.40 with SMTP id i38mr34641171yhq.34.1419698082082; Sat, 27 Dec 2014 08:34:42 -0800 (PST) Received: by 10.170.188.144 with HTTP; Sat, 27 Dec 2014 08:34:42 -0800 (PST) In-Reply-To: <549ed9f7.512f2a0a.5305.7ec5SMTPIN_ADDED_BROKEN@mx.google.com> References: <1548B1FF-36E2-4AE4-ADD4-3B8872A9DF55@tao.org.uk> <549ed9f7.512f2a0a.5305.7ec5SMTPIN_ADDED_BROKEN@mx.google.com> Date: Sat, 27 Dec 2014 16:34:42 +0000 Message-ID: Subject: Re: Creating a bootable ZFS disk? From: krad To: Dr Josef Karthauser Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: Warren Block , "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:34:43 -0000 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" >