Re: ZVOL/ZFS hosting UFS filesystems ... ERROR!

From: James Snow <snow+freebsd-current_at_teardrop.org>
Date: Thu, 31 Jan 2008 17:14:40 -0500
On Wed, Jan 30, 2008 at 04:28:02PM -0500, James Snow wrote:
> 
> For me the trouble was /etc/rc.d/fsck. fsck runs before zfs and
> mountlate, fails to find the UFS/ZVOL filesystem, and aborts the boot
> process.
> 
> You can work around this by setting pass# to 0 in /etc/fstab.  The
> trouble with this approach is that since this is a UFS filesystem, ZVOL
> or not, I'd still like to fsck it.

swell.k_at_gmail.com wrote to me and suggested the following fix:

--- /usr/src/etc/rc.d/hostid
+++ /etc/rc.d/hostid
_at__at_ -28,7 +28,7 _at__at_
 #

 # PROVIDE: hostid
-# REQUIRE: root
+# REQUIRE: early
 # BEFORE: mountcritlocal
 # KEYWORD: nojail

--- /usr/src/etc/rc.d/zfs
+++ /etc/rc.d/zfs
_at__at_ -4,7 +4,7 _at__at_
 #

 # PROVIDE: zfs
-# REQUIRE: mountcritlocal
+# REQUIRE: hostid

This puts /etc/rc.d/zfs before /etc/rc.d/fsck in the boot process, which
fixes the problem perfectly.  There don't appear to be any unintended
consequences that I can see.


-Snow
Received on Thu Jan 31 2008 - 21:14:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:26 UTC