Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Sep 2013 14:46:45 -0400
From:      J David <j.david.lists@gmail.com>
To:        Adam Nowacki <nowakpl@platinum.linux.pl>
Cc:        "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org>
Subject:   Re: zfs_enable vs zfs_load in loader.conf (but neither works)
Message-ID:  <CABXB=RQ9ty66OpA_HCHoKvvPbHMpBRGUyOFDxG8_9P7WWy8t_w@mail.gmail.com>
In-Reply-To: <522E07B1.5030205@platinum.linux.pl>
References:  <CABXB=RTz6jM=B895Bo6Kp-ZAf2pvTZkm-HfS=PrfX=aMKqjMbw@mail.gmail.com> <522D67DB.7060404@infracaninophile.co.uk> <CALfReyeAnpDAZEYPNP4-OZy3wCc9Yt1nurhfgA%2B=o7WFVZGHLA@mail.gmail.com> <CABXB=RQ_D2nwDYJf48dkM%2BQZbF565snvowe2cdG=0m6LKW831w@mail.gmail.com> <522E07B1.5030205@platinum.linux.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 9, 2013 at 1:38 PM, Adam Nowacki <nowakpl@platinum.linux.pl> wrote:
> zfs set mountpoint=legacy data/root
> together with
> zpool set bootfs=data/root data

This does appear to work, thanks.  So the key steps seem to be:

1) zfs_load="YES" in loader.conf
2) zfs_enable="YES" in rc.conf
3) Set bootfs=data/root in the zpool.
4) Set mountpoint=legacy on the root fs

Using mountpoint=legacy seems a little conceptually challenged,
especially given that the description of a legacy mount is:

"If a file system's mount point is set to legacy, ZFS makes no attempt
to manage the file system, and the administrator is responsible for
mounting and unmounting the file system."

Is this bending things to claim setting bootfs is adequate example of
the administrator's responsibility to mount the file system?  (Even
though that is clearly also part of ZFS.)

How does mountpoint=legacy interact with importing the pool on another
system, or from a LiveCD, with " -o altroot=/mnt " ?  (A case where
mountpoint=/ works perfectly.)

And, finally, what would have to change to support a ZFS root
filesystem set as mountpoint=/ instead of mountpoint=legacy ?

Thanks!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABXB=RQ9ty66OpA_HCHoKvvPbHMpBRGUyOFDxG8_9P7WWy8t_w>