From owner-freebsd-current@FreeBSD.ORG Sat Sep 26 13:54:14 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 760131065676 for ; Sat, 26 Sep 2009 13:54:14 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from koef.zs64.net (koef.zs64.net [212.12.50.230]) by mx1.freebsd.org (Postfix) with ESMTP id 167CC8FC14 for ; Sat, 26 Sep 2009 13:54:13 +0000 (UTC) Received: from localhost by koef.zs64.net (8.14.3/8.14.3) with ESMTP id n8QDsBxc044446 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 26 Sep 2009 15:54:12 +0200 (CEST) (envelope-from stb@lassitu.de) (authenticated as stb) Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes From: Stefan Bethke In-Reply-To: Date: Sat, 26 Sep 2009 15:54:11 +0200 Content-Transfer-Encoding: 7bit Message-Id: <6A973ECE-83E7-4653-BBE7-CC3093361D19@lassitu.de> References: To: Dmitry Morozovsky X-Mailer: Apple Mail (2.1076) Cc: freebsd-current@freebsd.org Subject: Re: ZFS on entire disks setup X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Sep 2009 13:54:14 -0000 Am 26.09.2009 um 13:39 schrieb Dmitry Morozovsky: > Dear colleagues, > > is there a way to configure ZFS-only setup without partitions? > > I tried to reproduce the trick with `skip=1 seek=1024', and have > loot/loader > running, but it does not see the pool. This sequence is working for me: dd if=/boot/zfsboot of=/dev/da0 count=1 dd if=/boot/zfsboot of=/dev/da0 skip=1 seek=1024 zpool create zroot /dev/da0 zpool set bootfs=zroot zroot cd /usr/src && make installworld installkernel distribution DESTDIR=/ zroot cp /boot/loader.conf /zroot/boot/loader.conf cp /etc/rc.conf /zroot/etc/ touch /zroot/etc/fstab echo 'zfs_load="YES"' >>/zroot/boot/loader.conf echo 'vfs.root.mountfrom="zfs:zroot"' >>/zroot/boot/loader.conf zpool export zroot zpool import zroot cp /boot/zfs/zpool.cache /zroot/boot/zfs/ zfs set mountpoint=legacy zroot ... except that it doesn't anymore. I saw this working about two months ago, but now it fails to mount root. Verbose boot doesn't give any indication why ZFS can't find the pool. Stefan -- Stefan Bethke Fon +49 151 14070811