Re: lost zfs pool after buildworld

From: Pawel Jakub Dawidek <pjd_at_FreeBSD.org>
Date: Wed, 11 Apr 2007 00:18:06 +0200
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=/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.
> 
> You probably didn't catch the etc/zfs/zpool.cache -> boot/zfs/zpool.cache 
> 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 <pool>

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd_at_FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

Received on Tue Apr 10 2007 - 20:18:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:08 UTC