From ruben@helium.verweg.com  Mon Feb 22 19:02:29 2010
Return-Path: <ruben@helium.verweg.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0C4D41065679
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Feb 2010 19:02:28 +0000 (UTC)
	(envelope-from ruben@helium.verweg.com)
Received: from helium.verweg.com (tunnel41.ipv6.xs4all.nl [IPv6:2001:888:10:29::2])
	by mx1.freebsd.org (Postfix) with ESMTP id 53C1F8FC17
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Feb 2010 19:02:28 +0000 (UTC)
Received: from helium.verweg.com (ruben@localhost.verweg.com [127.0.0.1])
	by helium.verweg.com (8.14.4/8.14.3) with ESMTP id o1MJ2Qkl009639
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Feb 2010 20:02:26 +0100 (CET)
	(envelope-from ruben@helium.verweg.com)
Received: (from ruben@localhost)
	by helium.verweg.com (8.14.4/8.14.3/Submit) id o1MJ2Q3c009638;
	Mon, 22 Feb 2010 20:02:26 +0100 (CET)
	(envelope-from ruben)
Message-Id: <201002221902.o1MJ2Q3c009638@helium.verweg.com>
Date: Mon, 22 Feb 2010 20:02:26 +0100 (CET)
From: Ruben van Staveren <ruben@verweg.com>
Reply-To: Ruben van Staveren <ruben@verweg.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Disappearing zvols on reboot
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         144213
>Category:       conf
>Synopsis:       [rc.d] [patch] Disappearing zvols on reboot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-fs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 22 19:10:01 UTC 2010
>Closed-Date:    Fri Dec 14 19:24:02 UTC 2012
>Last-Modified:  Fri Dec 14 19:24:02 UTC 2012
>Originator:     Ruben van Staveren
>Release:        FreeBSD 8.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD helium.verweg.com 8.0-STABLE FreeBSD 8.0-STABLE #4: Sun Feb 14 20:11:33 CET 2010 root@helium.verweg.com:/usr/obj/usr/cvsup/8-stable/src/sys/HELIUM-SMP i386


	
>Description:
	

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

http://lists.freebsd.org/pipermail/freebsd-current/2009-July/009589.html

>How-To-Repeat:

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

reboot

see that /dev/zvol has gone
	
>Fix:


--- /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
 	fi

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-rc 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Feb 22 21:38:23 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144213 
Responsible-Changed-From-To: freebsd-rc->freebsd-fs 
Responsible-Changed-By: crees 
Responsible-Changed-When: Thu Oct 25 20:18:39 UTC 2012 
Responsible-Changed-Why:  
Do you guys agree with this analysis? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144213 
State-Changed-From-To: open->closed 
State-Changed-By: crees 
State-Changed-When: Fri Dec 14 19:23:59 UTC 2012 
State-Changed-Why:  
volinit is no longer in FreeBSD, and this bug can't be reproduced in a 
recent version of FreeBSD. 
http://lists.freebsd.org/pipermail/freebsd-rc/2012-October/003055.html 
Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144213 
>Unformatted:
