possible zfs bug? lost all pools

Jeremy Chadwick koitsu at FreeBSD.org
Sun May 18 15:56:08 UTC 2008


On Sun, May 18, 2008 at 12:20:33PM -0300, JoaoBR wrote:
> On Sunday 18 May 2008 11:11:38 Greg Byshenk wrote:
> > On Sun, May 18, 2008 at 09:56:17AM -0300, JoaoBR wrote:
> > > after trying to mount my zfs pools in single user mode I got the
> > > following message for each:
> > >
> > > May 18 09:09:36 gw kernel: ZFS: WARNING: pool 'cache1' could not be
> > > loaded as it was last accessed by another system (host:
> > > gw.bb1.matik.com.br hostid: 0xbefb4a0f).  See:
> > > http://www.sun.com/msg/ZFS-8000-EY
> > >
> > > any zpool cmd returned nothing else as not existing zfs, seems the zfs
> > > info on disks was gone
> > >
> > > to double-check I recreated them, rebooted in single user mode and
> > > repeated the story, same thing, trying to /etc/rc.d/zfs start returnes
> > > the above msg and pools are gone ...
> > >
> > > I guess this is kind of wrong
> >
> > I think that the problem is related to the absence of a hostid when in
> > single-user.  Try running '/etc/rc.d/hostid start' before mouning.
> 
> well, obviously that came to my mind after seeing the msg ...
> 
> anyway the pools should not vanish don't you agree?
> 
> and if necessary /etc/rc.d/zfs should start hostid or at least set REQUIRE 
> different and warn

I've been in the same boat you are, and I was told the same thing.  I've
documented the situation on my Wiki, and the necessary workarounds.

http://wiki.freebsd.org/JeremyChadwick/Commonly_reported_issues

This sort of thing needs to get hammered out before ZFS can be
considered "usable" from a system administration perspective.  Expecting
people to remember to run an rc.d startup script before they can use any
of their filesystems borders on unrealistic.

-- 
| Jeremy Chadwick                                jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |



More information about the freebsd-bugs mailing list