From owner-freebsd-questions@FreeBSD.ORG Sat Jul 11 00:58:00 2009 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 1AB43106564A for ; Sat, 11 Jul 2009 00:58:00 +0000 (UTC) (envelope-from drew@mykitchentable.net) Received: from smtp2.mc.surewest.net (qsmtp.mc.surewest.net [66.60.130.145]) by mx1.freebsd.org (Postfix) with SMTP id E694A8FC1E for ; Sat, 11 Jul 2009 00:57:59 +0000 (UTC) (envelope-from drew@mykitchentable.net) Received: (qmail 11726 invoked from network); 10 Jul 2009 17:47:19 -0700 Received: by simscan 1.1.0 ppid: 11712, pid: 11713, t: 2.1934s scanners: regex: 1.1.0 attach: 1.1.0 spam: 3.1.7-deb X-Spam-Checker-Version: SpamAssassin 3.1.7-deb (2006-10-05) on smtp2.surewest.net. X-Spam-Level: X-Spam-Status: No, score=0.0 required=10.0 tests=none autolearn=disabled version=3.1.7-deb X-Spam-CMAE-Analysis: v=1.0 c=1 a=KH1J0DaaU9oA:10 a=MitFodcrAAAA:8 a=6I5d2MoRAAAA:8 a=HqhU5Q3nAAAA:8 a=jDt-9pEAAAAA:8 a=sBJdmkNNGD9knihvtkoA:9 a=Q088ZnM4mDZfj55HmhsA:7 a=e51tXMrly_HGNReCC2SVPZcm_4EA:4 Received: from unknown (HELO blacklamb.mykitchentable.net) (69.62.230.77) by smtp2 with SMTP; 10 Jul 2009 17:47:17 -0700 Received: from [127.0.0.1] (bigdaddy.mykitchentable.net [192.168.1.3]) by blacklamb.mykitchentable.net (Postfix) with ESMTPA id A2FE6165858 for ; Fri, 10 Jul 2009 17:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mykitchentable.net; s=default; t=1247273876; bh=lVFh1pC9lwDB6AvPz3Zi/ugGQQsZrub0Ko1yWxKvwGE=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=p1dflKnYJfFHSMM24rS/68DYAcHwUzI/LQBxELfQoAWSIgp6nYjKpxJAfNpLAcdiS MbwhI/kZaLkcKkoquj0L6SxO2CzAzZvX/bjiYlhY5ajXGdBuUbNxAW9e3MGeq0ryY5 /Bm0zKunpn1BvaWHVl0AXUKfs/OLwvkTh0WF50Hk= Message-ID: <4A57E38B.5050108@mykitchentable.net> Date: Fri, 10 Jul 2009 17:57:47 -0700 From: Drew Tomlinson User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 090710-0, 07/10/2009), Outbound message X-Antivirus-Status: Clean Subject: Attempting ZFS Only Install of 7.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jul 2009 00:58:00 -0000 I'm following guides at: http://lulf.geeknest.org/blog/freebsd/Setting_up_a_zfs-only_system/ http://wiki.freebsd.org/AppleMacbook http://menelkir.wordpress.com/2008/07/30/howto-install-freebsd-under-zfs-including-root-part-2/ If I understand correctly, only the first link is about setting up ZFS using gptzfsboot and not a UFS partition so I used it as my primary guide. I've gone through the steps below but can't do the one to copy zpool.cache to my zpool(s). Although the 'zpool import' and 'zpool export' succeed, I can not find zpool.cache (not even using 'find / -iname zpool.cache' anywhere to copy. I've tried rebooting once after skipping this step and got stuck at the boot prompt. Upon rebooting with the LiveDVD and entering FixIt, I did not have any zpools anymore. Not knowing what else to do, I started over from creating zpools. And now I'm here again. The only step left is to copy zpool.cache and I can't. What must I do to ensure that my zpools will survive reboot? I've included my exact steps below for reference. My system has 4 drives. I booted from the LiveDVD, entered the FixIt shell, and partitioned them as follows using gpart: ad6 - 750 GB ad6p1 - 128KB freebsd-boot ad6p2 - 512MB freebsd-zfs ad6p3 - 512MB freebsd-swap ad6p4 - 465GB freebsd-zfs ad6p5 - 233GB freebsd-ufs ad8 - 500 GB ad8p1 - 128KB freebsd-boot ad8p2 - 512MB freebsd-zfs ad8p3 - 512MB freebsd-swap ad8p4 - 465GB freebsd-zfs ad12 - 500 GB ad12p1 - 1024MB freebsd-swap ad12p2 - 465GB freebsd-zfs ad14 - 500 GB ad14p1 - 1024MB freebsd-swap ad14p2 - 465GB freebsd-zfs I used gptzfsboot from the 8.1-Beta1 iso and used a USB key mounted at /tmp/da0 to copy it to the system. Basically I did: gpart bootcode -b /boot/pmbr -p /tmp/da0/gptzfsboot -i 1 ad6 gpart bootcode -b /boot/pmbr -p /tmp/da0/gptzfsboot -i 1 ad8 Next I chrooted into /dist to make a "more normal for me" environment. To get a good environment I performed these commands: 1. chroot /dist 2. mount -t devfs devfs /dev 3. mount -t tmpfs tmpfs /tmp 4. set -o emacs Next I created two zpools: kldload zfs.ko zpool create root mirror /dev/ad6p1 /dev/ad8p1 zpool create data raid1z /dev/ad6p4 /dev/ad8p4 /dev/ad12p2 /dev/ad14p2 Because /root exists, the root zpool was mounted there. However /data doesn't exist and can't be created because FixIt is a read-only file system and thus the error. But in both cases, the zpool was created. Now to unmount zfs:root from /root: zfs umount root To stop zfs automounting for now, I set mount properties on the two zpools: zfs set mountpoint=none root zfs set mountpoint=none data Next I created zfs filesystems for usr and var: zfs create data/usr zfs create data/var I mounted my destination filesystems under /mnt as so: mount -t zfs root /mnt mkdir /mnt/usr mkdir /mnt/var mount -t zfs data/usr /mnt/usr mount -t zfs data/var /mnt/var Next, copy contets of LiveDVD system to destination filesystems: cd / cp -Rv bin boot etc lib libexec root sbin tmp usr var /mnt (Note: I excluded 'rescue' because on the LiveDVD it's 478MB and thus, too large for my 512MB root filesystem. I don't know why it's so big on the LiveDVD because its only around 7MB on a running 7.2 system I checked. I'm excluding and hoping my next 'make world' resolves this.) mkdir /mnt/dev Create/edit /mnt/boot/loader.conf as follows: zfs_load="YES" vfs.root.mountfrom="zfs:tank And now I'm at the part where I'm stuck at copying the zpool.cache file. Help? Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com