From owner-freebsd-questions@FreeBSD.ORG Thu Mar 4 16:00:39 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62BB7106566C for ; Thu, 4 Mar 2010 16:00:39 +0000 (UTC) (envelope-from matt@webcontracts.co.uk) Received: from batfink.vm.bytemark.co.uk (batfink.vm.bytemark.co.uk [80.68.95.231]) by mx1.freebsd.org (Postfix) with ESMTP id 295E68FC2E for ; Thu, 4 Mar 2010 16:00:38 +0000 (UTC) Received: from www.webcontracts.co.uk (localhost [127.0.0.1]) by batfink.vm.bytemark.co.uk (Postfix) with ESMTP id 2B60664005; Thu, 4 Mar 2010 16:00:35 +0000 (GMT) Received: from 212.159.19.37 (SquirrelMail authenticated user mlaw) by www.webcontracts.co.uk with HTTP; Thu, 4 Mar 2010 16:00:37 -0000 Message-ID: <4b57d2606f70fb97c59d0f2aaef7d1c8.squirrel@www.webcontracts.co.uk> In-Reply-To: <86pr3k852o.fsf@blue.stonehenge.com> References: <5f2fd5523c5fb10e82e49e7250430ab7.squirrel@www.webcontracts.co.uk> <86pr3k852o.fsf@blue.stonehenge.com> Date: Thu, 4 Mar 2010 16:00:37 -0000 From: "Matthew Law" To: "Randal L. Schwartz" User-Agent: SquirrelMail/1.4.19 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-questions@freebsd.org Subject: Re: Root on ZFS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: matt@webcontracts.co.uk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2010 16:00:39 -0000 On Thu, March 4, 2010 3:44 pm, Randal L. Schwartz wrote: >>>>>> "Matthew" == Matthew Law writes: > > Matthew> I am following this wiki page to move to zfs root: > Matthew> http://wiki.freebsd.org/ZFSOnRoot > > If you're running RELEASE-8 or later, I've gotten this to work just fine: > > http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot Thanks, guys. Yes, I am on 8-RELEASE. I was really looking to create a 3-disk raidz or raidz2 volume with 1 hot spare. I happened across this page: http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/RAIDZ2 and started to follow that. > Currently live on two slices at arpnetworks.com with that. > > The trickiest part is that Arp installs an existing system on the disk, > and the instructions there don't tell how to remove it. :( > > I can't remember the workaround, but someone in IRC told me. > ("gpart destroy" didn't work, because it said "already in use") I ran into this and figured out I need to remove each slice first. But it did take a little head scratching. I installed a minimal OS from a USB stick onto a single SATA drive. After testing it was installed and running OK, I rebooted and chose the fixit option from sysinstall and followed the above guide. I've got to this part: 7. 'Create ZFS Pool zroot' Fixit# mkdir /boot/zfs Fixit# zpool create zroot raidz2 /dev/gpt/disk0 /dev/gpt/disk1 /dev/gpt/disk2 Fixit# zpool set bootfs=zroot zroot The zpool create command fails because I don't have '/dev/gpt' - I take it I haven't actually installed with gpt in the first place? Can I go back and do that and what's the advantage of gpt? Finally, I had problems with the SAS card in this box, which is a bog standard LSI SAS8041E. I can install OK, but on rebooting it can't find the root slice, panics and drops me into mountroot. Where I get stuck. Any help much appreciated, Matt.