lofs mounts processed before zfs

I created a zpool called "data" (mounted as /data).

Then I created zfs data/netboot to manage the netboot area usage. Inside of here, I created subdir /data/netboot/tftpboot.

Instead of mucking with the tftp smf, I wanted to lofs-mount /tftpboot

Everything was fine until a reboot. filesystem/local processed the lofs mounts before the zfs mounts, causing a failure on /tftpboot, which dropped filesystem/local into maintenance mode (and pooching the entire bootup).

Anyone else encountered this problem?

[edit] I found the problem, not sure about the "cure" -- lofs is mounted with fs-root, zfs is mounted with fs-local. whee!

Message was edited by:

WRWindsor

[710 byte] By [WRWindsora] at [2007-11-26 19:42:52]
# 1

> [edit] I found the problem, not sure about the "cure"

> -- lofs is mounted with fs-root, zfs is mounted with

> fs-local. whee!

You sure about that? The only lofs stuff I see in fs-root is specific to some optimization libraries that overlay libc on some platforms. It's not for general lofs mounts.

I think it more likely that lofs mounts are handled by the '/sbin/mountall' early in fs-local and that ZFS is handled later.

It might be possible to make the ZFS filesystem a legacy mount so that it appears in /etc/vfstab. This reduces flexibility, but if it appears before the lofs mount, I think it will be mounted first. Something to try, anyway.

--

Darren

Darren_Dunhama at 2007-7-9 22:25:20 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
Why don't you just make a new zfs fs in the pool and set its mountpoint to be /tftpbootrather than mucking around with lofi mounts.
robert.cohena at 2007-7-9 22:25:20 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3
Darren, you are correct. I got grep happy and fired one off.Robert, that'sa possibility, but maybe I'm better off tweaking the tftp smf (the cleanest of all three scenarios).
WRWindsora at 2007-7-9 22:25:20 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4
You sure that the cleanest.zfs create pool/tftpbootzfs set mountpoint=/tftpboot pool/tftpbootlooks pretty clean to me.
robert.cohena at 2007-7-9 22:25:20 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 5
Since my tftpd is 95% used for jumpstart, I'd much rather keep the data in the /data/netboot/tftpboot directory tree.
WRWindsora at 2007-7-9 22:25:20 > top of Java-index,Solaris Operating System,Solaris 10 Features...