ZVOL/ZFS hosting UFS filesystems ... ERROR!
James Snow
snow+freebsd-current at teardrop.org
Thu Jan 31 14:14:42 PST 2008
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
@@ -28,7 +28,7 @@
#
# PROVIDE: hostid
-# REQUIRE: root
+# REQUIRE: early
# BEFORE: mountcritlocal
# KEYWORD: nojail
--- /usr/src/etc/rc.d/zfs
+++ /etc/rc.d/zfs
@@ -4,7 +4,7 @@
#
# 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
More information about the freebsd-current
mailing list