zfs boot and fstab chicken and egg problem

View: New views
4 Messages — Rating Filter:   Alert me  

zfs boot and fstab chicken and egg problem

by John Hay-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have setup a zfs only system using 2 mirrored disks and gpart, using
gptzfsboot to boot. That part is working well. The problem comes when
you need to add things like the linproc filesystem. If you add that to
fstab, the rc scripts will try to mount that before the zfs filesystems
and fail because rcorder put mountcritlocal before zfs.

Should a system that boot from zfs have it the other way around maybe?
I understand that my kind of setup is in the minority, but I guess
that more and more people will start to use zfs as their primary
filesystem.

John
--
John Hay -- jhay@... / jhay@...
_______________________________________________
freebsd-rc@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-rc
To unsubscribe, send any mail to "freebsd-rc-unsubscribe@..."

Re: zfs boot and fstab chicken and egg problem

by Jilles Tjoelker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Sep 26, 2009 at 04:37:36PM +0200, John Hay wrote:
> I have setup a zfs only system using 2 mirrored disks and gpart, using
> gptzfsboot to boot. That part is working well. The problem comes when
> you need to add things like the linproc filesystem. If you add that to
> fstab, the rc scripts will try to mount that before the zfs filesystems
> and fail because rcorder put mountcritlocal before zfs.

You can probably work around this using the "late" option in fstab.

--
Jilles Tjoelker
_______________________________________________
freebsd-rc@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-rc
To unsubscribe, send any mail to "freebsd-rc-unsubscribe@..."

Re: zfs boot and fstab chicken and egg problem

by John Hay-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Sep 26, 2009 at 11:39:45PM +0200, Jilles Tjoelker wrote:
> On Sat, Sep 26, 2009 at 04:37:36PM +0200, John Hay wrote:
> > I have setup a zfs only system using 2 mirrored disks and gpart, using
> > gptzfsboot to boot. That part is working well. The problem comes when
> > you need to add things like the linproc filesystem. If you add that to
> > fstab, the rc scripts will try to mount that before the zfs filesystems
> > and fail because rcorder put mountcritlocal before zfs.
>
> You can probably work around this using the "late" option in fstab.

Ahhh, thanks, once you know what to look for it becomes a lot easier. :-)
I only found it mentioned in mount(8). Should it not be mentioned in
fstab(5) too? noauto is there.

John
--
John Hay -- jhay@... / jhay@...
_______________________________________________
freebsd-rc@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-rc
To unsubscribe, send any mail to "freebsd-rc-unsubscribe@..."

Re: zfs boot and fstab chicken and egg problem

by M. Warner Losh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In message: <20090927051312.GA90311@...>
            John Hay <jhay@...> writes:
: On Sat, Sep 26, 2009 at 11:39:45PM +0200, Jilles Tjoelker wrote:
: > On Sat, Sep 26, 2009 at 04:37:36PM +0200, John Hay wrote:
: > > I have setup a zfs only system using 2 mirrored disks and gpart, using
: > > gptzfsboot to boot. That part is working well. The problem comes when
: > > you need to add things like the linproc filesystem. If you add that to
: > > fstab, the rc scripts will try to mount that before the zfs filesystems
: > > and fail because rcorder put mountcritlocal before zfs.
: >
: > You can probably work around this using the "late" option in fstab.
:
: Ahhh, thanks, once you know what to look for it becomes a lot easier. :-)
: I only found it mentioned in mount(8). Should it not be mentioned in
: fstab(5) too? noauto is there.

All options you can specify in /etc/fstab should be in fstab(5).  The
question is "which subset should be mentioned elsewhere," not what
subset to document in the logical place...  I mean, you wouldn't
expect to look at tip(8) to find info about ttys(5) format, would you?

Warner
_______________________________________________
freebsd-rc@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-rc
To unsubscribe, send any mail to "freebsd-rc-unsubscribe@..."