zfs & diskless boot problem

Danny Braniss danny at cs.huji.ac.il
Tue Dec 25 01:48:50 PST 2007


Zfs uses /boot/zfs to keep track of it's pools, but in a diskless
environment, this is a read-only fs. This causes several inconveniences,
- /etc/rc.d/zfs needs :
 zfs_start_main()
 {
    dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2> /dev/null`
    if [ ${dlv:=0} -ne 0 ]; then
	zpool import -a
    fi
 ...
- how important is /boot/zfs?

danny




More information about the freebsd-stable mailing list