From owner-freebsd-questions@FreeBSD.ORG Sun Apr 27 18:44:43 2008 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 7B99A106567B for ; Sun, 27 Apr 2008 18:44:43 +0000 (UTC) (envelope-from guus@houtzager.net) Received: from oban.houtzager.net (unknown [IPv6:2001:828:301:53::195]) by mx1.freebsd.org (Postfix) with ESMTP id D8D888FC1A for ; Sun, 27 Apr 2008 18:44:42 +0000 (UTC) (envelope-from guus@houtzager.net) Received: from localhost (oban [127.0.0.1]) by oban.houtzager.net (Postfix) with ESMTP id 83E68586D4 for ; Sun, 27 Apr 2008 20:44:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at oban.houtzager.net Received: from oban.houtzager.net ([127.0.0.1]) by localhost (oban.houtzager.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CqHeQKeaiq0T for ; Sun, 27 Apr 2008 20:44:31 +0200 (CEST) Received: from [192.168.1.40] (195-240-108-75.ip.telfort.nl [195.240.108.75]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by oban.houtzager.net (Postfix) with ESMTPSA id 8BD9A585CF for ; Sun, 27 Apr 2008 20:44:31 +0200 (CEST) Message-Id: From: Guus Houtzager To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Sun, 27 Apr 2008 20:44:31 +0200 X-Mailer: Apple Mail (2.919.2) Subject: ZFS + gmirror: how? 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: Sun, 27 Apr 2008 18:44:43 -0000 Hi, I'm rather new to FreeBSD and I'm having trouble with ZFS and gmirror. I've used this guide to install FreeBSD 7 on ZFS: http://www.ish.com.au/solutions/articles/freebsdzfs This goes flawless, however, the /bootdir is still just /dev/ad01sa (in my case), so if that disk breaks, I still can't boot from ad1. So I thought I could just make a gmirror containing /dev/ad0s1a and ad1s1a and use that for /bootdir. This however does not work. What I did is: - gmirror load - gmirror label -v -b round-robin gm0 /dev/ad1s1a - newfs /dev/mirror/gm0 - mount /dev/mirror/gm0 /mnt/tmp - dump -L -0 -f- /bootdir | (cd /mnt/tmp && restore -r -v -f-) - edit /etc/fstab and /mnt/root/etc/fstab: change all references to ad0s1a by /dev/mirror/gm0 - echo 'geom_mirror_load="YES"' >> /boot/loader.conf - echo 'geom_mirror_load="YES"' >> /mnt/tmp/boot/loader.conf - reboot However: I can see the bootprocess starting first ZFS followed by a message saying it's waiting for GEOM gmirror to start, which it does after a little while and then I get a prompt where I can manually tell the system where the root filesystem is. And if I tell it zfs:system/ root it does not work (my zpool is named system). Anyone know what I'm doing wrong and what's the best way to do this? Thanks in advance! PS: please CC me in any reply, as I'm not subscribed to this list. Thanks! Regards, -- Guus Houtzager Email: guus@houtzager.net ++?????++ Out of Cheese error. Redo from start. -- Terry Pratchett, Interesting Times