misc/144213: Disappearing zvols on reboot

Ruben van Staveren ruben at verweg.com
Mon Feb 22 19:10:02 UTC 2010

>Number:         144213
>Category:       misc
>Synopsis:       Disappearing zvols on reboot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 22 19:10:01 UTC 2010
>Originator:     Ruben van Staveren
>Release:        FreeBSD 8.0-STABLE i386
System: FreeBSD helium.verweg.com 8.0-STABLE FreeBSD 8.0-STABLE #4: Sun Feb 14 20:11:33 CET 2010 root at helium.verweg.com:/usr/obj/usr/cvsup/8-stable/src/sys/HELIUM-SMP i386


Upon reboot, zvols disappear on zfs-on-root systems (not tested on
non-zfs-on-root systems)

a zfs volinit cures this problem. zfs volinit is safe to run multiple times

Also see some discussion at



Create zvol (zfs create -V 1g zpool/zvol)


see that /dev/zvol has gone

--- /usr/src/etc/rc.d/zfs	2009-08-03 10:13:06.000000000 +0200
+++ /etc/rc.d/zfs	2010-02-21 22:46:57.116222069 +0100
@@ -25,6 +25,7 @@
 	zfs mount -a
 	zfs share -a
+	zfs volinit
 	if [ ! -r /etc/zfs/exports ]; then
 		touch /etc/zfs/exports


More information about the freebsd-bugs mailing list