From owner-freebsd-fs@FreeBSD.ORG Mon Aug 27 07:02:19 2012 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6E371106564A; Mon, 27 Aug 2012 07:02:19 +0000 (UTC) (envelope-from jlh@FreeBSD.org) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [IPv6:2a01:e0c:1:1599::14]) by mx1.freebsd.org (Postfix) with ESMTP id 3A39C8FC1B; Mon, 27 Aug 2012 07:02:16 +0000 (UTC) Received: from endor.tataz.chchile.org (unknown [82.233.239.98]) by smtp5-g21.free.fr (Postfix) with ESMTP id B0955D48142; Mon, 27 Aug 2012 09:02:11 +0200 (CEST) Received: from felucia.tataz.chchile.org (felucia.tataz.chchile.org [192.168.1.9]) by endor.tataz.chchile.org (Postfix) with ESMTP id 979B633F; Mon, 27 Aug 2012 09:02:10 +0200 (CEST) Received: by felucia.tataz.chchile.org (Postfix, from userid 1000) id 6EC2F10754; Mon, 27 Aug 2012 07:02:10 +0000 (UTC) Date: Mon, 27 Aug 2012 09:02:10 +0200 From: Jeremie Le Hen To: freebsd-fs@FreeBSD.org Message-ID: <20120827070210.GA798@felucia.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: jlh@FreeBSD.org Subject: Cannot get zfsboot prompt X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Aug 2012 07:02:19 -0000 Hi there, Can you please keep me cc'ed as I'm not subscribed. Thanks. I've struggled all over the weekend to make a remote machine full ZFS. I did it once last year. I already struggled a lot at that time by the way so I took notes, but it doesn't work (see below for a manuel screenshot): The server is using the mbr partitionning scheme, with one slice -- ada0s1. There is a BSD label on it with two partitions, ada0s1a which is used in the zpool and ada0s1b which is used for swap/dump. I've set up boot0 and it works correctly: gpart bootcode -b /mnt/boot/boot0 ada0 I've then set up zfsboot: dd if=/mnt/boot/zfsboot of=/dev/ada0s1 count=1 dd if=/mny/boot/zfsboot of=/dev/ada0s1a skip=1 seek=1024 Here is the relevant datasets, the pool as been imported with altroot=/mnt: rescue-bsd# zfs list | head -n 3 NAME USED AVAIL REFER MOUNTPOINT zroot 827M 913G 31K none zroot/rootfs 826M 913G 381M /mnt rescue-bsd# zpool get bootfs zroot NAME PROPERTY VALUE SOURCE zroot bootfs zroot/rootfs local When the server boots I get: F1 FreeBSD F6 PXE Boot: F1 _ Any idea? Thanks. -- Jeremie Le Hen Scientists say the world is made up of Protons, Neutrons and Electrons. They forgot to mention Morons.