lost zfs pool after buildworld

Pawel Jakub Dawidek pjd at FreeBSD.org
Tue Apr 10 22:18:23 UTC 2007


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!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070410/08a3b7b2/attachment.pgp


More information about the freebsd-current mailing list