Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Sep 2013 10:16:02 -0400
From:      J David <j.david.lists@gmail.com>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org>, freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: zfs_enable vs zfs_load in loader.conf (but neither works)
Message-ID:  <CABXB=RR%2B5toQjRJRuf2yuj1updnTn1FqWnckn6fX4N%2BSr_6T4g@mail.gmail.com>
In-Reply-To: <52331179.4030201@FreeBSD.org>
References:  <CABXB=RTz6jM=B895Bo6Kp-ZAf2pvTZkm-HfS=PrfX=aMKqjMbw@mail.gmail.com> <523310E2.4050702@FreeBSD.org> <52331179.4030201@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks very much for the info Andriy.

On Fri, Sep 13, 2013 at 9:22 AM, Andriy Gapon <avg@freebsd.org> wrote:
> Another piece of information is that neither mountpoint nor canmount property
> affects ZFS root mounting.

It is mountpoint=legacy that boots on this machine and mountpoint=/
that can't find init, with no other changes.  So clearly under some
obscure edge case, this is not strictly correct.

Did your test include zpool root != filesystem root?  Because as you
describe one possible cause of the problem is mounting the wrong
filesystem as root, one wonders if somehow with the mountpoint=/
setting the zpool root (which has no files at all) is incorrectly
being chosen as fsroot with mountpoint=/ on data/root.  I.e. perhaps
somewhere in the code is looking for "legacy" (or skipping anything
with a mountpoint set) and defaulting back to the zpool root if it is
not found?

Unfortunately there is no way I know of to check and see what the root
filesystem turned out to be after the failure to find init.  That
would reduce speculation about what is happening quite a bit.  Can the
kernel debugger extract this info?

If it matters, the pools in question are fairly complex, not just
throwing everything possible on one drive.  Example:

NAME        STATE     READ WRITE CKSUM
data        ONLINE       0     0     0
 mirror-0  ONLINE       0     0     0
   da0p2   ONLINE       0     0     0
   da4p2   ONLINE       0     0     0
 mirror-1  ONLINE       0     0     0
   da1p2   ONLINE       0     0     0
   da5p2   ONLINE       0     0     0
 mirror-2  ONLINE       0     0     0
   da2p2   ONLINE       0     0     0
   da6p2   ONLINE       0     0     0
 mirror-3  ONLINE       0     0     0
   da3p2   ONLINE       0     0     0
   da7p2   ONLINE       0     0     0
logs
 ada0p2    ONLINE       0     0     0
cache
 ada1p2    ONLINE       0     0     0

The boot order for that system begins at either ada0 or da0, not sure
which without checking the BIOS.

Thanks!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABXB=RR%2B5toQjRJRuf2yuj1updnTn1FqWnckn6fX4N%2BSr_6T4g>