From owner-freebsd-current@FreeBSD.ORG Tue Apr 10 22:18:23 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 71CE716A400 for ; Tue, 10 Apr 2007 22:18:23 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 129C513C45E for ; Tue, 10 Apr 2007 22:18:23 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 48F15487F0; Wed, 11 Apr 2007 00:18:21 +0200 (CEST) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 0704945681; Wed, 11 Apr 2007 00:18:14 +0200 (CEST) Date: Wed, 11 Apr 2007 00:18:06 +0200 From: Pawel Jakub Dawidek To: Max Laier Message-ID: <20070410221806.GH90135@garage.freebsd.pl> References: <57200BF94E69E54880C9BB1AF714BBCB01115B@w2003s01.double-l.local> <200704102300.49972.max@love2party.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4LFBTxd4L5NLO6ly" Content-Disposition: inline In-Reply-To: <200704102300.49972.max@love2party.net> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-current@freebsd.org, Johan Hendriks Subject: Re: lost zfs pool after buildworld 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: Tue, 10 Apr 2007 22:18:23 -0000 --4LFBTxd4L5NLO6ly Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 10, 2007 at 11:00:42PM +0200, Max Laier wrote: > On Tuesday 10 April 2007 22:54, Johan Hendriks wrote: > > I had created a zfs pool of two disks (da1 and da2). > > > > # zpool create tank mirror /dev/da1 /dev/da2 > > then created the dir > > # zfs create tank/samba > > and the mount point > > #zfs set mountpoint=3D/usr/local/samba tank/samba > > > > it all worked well. > > this was after zfs was put to head the same hours after. > > Now i have cvsupped the system did a buildworld and my pool is gone. > > zpool list says no pool defined. > > > > I did the installworld from a remote location so zfs was active during > > installworld, and zfs module loaded. > > > > Must i unload zfs next time? > > I have recreated the pool now ( no important data) but is this normal > > or is it bad luck. > > > > And is there a way to let zpool see the metadata (if any) on the disk. >=20 > You probably didn't catch the etc/zfs/zpool.cache -> boot/zfs/zpool.cache= =20 > change. A simple zpool import should get you back up again. There were actually two changes that could "break" it - mentioned zpool.cache move and hostid stuff. One can recover from both by doing: # zpool import -f --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --4LFBTxd4L5NLO6ly Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGHA0eForvXbEpPzQRAvpoAJ9xopNT83GBf/BTMEr0Ba8y5et62QCgj/07 ZnfcSj/7oYswsEUSAQk63wU= =sIWJ -----END PGP SIGNATURE----- --4LFBTxd4L5NLO6ly--