From nobody@FreeBSD.org  Sat Nov  6 18:45:29 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8806716A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  6 Nov 2004 18:45:29 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7B2EB43D48
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  6 Nov 2004 18:45:29 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id iA6IjTkZ068111
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 6 Nov 2004 18:45:29 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id iA6IjTkh068110;
	Sat, 6 Nov 2004 18:45:29 GMT
	(envelope-from nobody)
Message-Id: <200411061845.iA6IjTkh068110@www.freebsd.org>
Date: Sat, 6 Nov 2004 18:45:29 GMT
From: Ian MacDonald <ian@ianm.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Vinum not detecting drives on reboot
X-Send-Pr-Version: www-2.3

>Number:         73624
>Category:       i386
>Synopsis:       Vinum not detecting drives on reboot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    le
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 06 18:50:28 GMT 2004
>Closed-Date:    Sat Nov 27 15:14:09 GMT 2004
>Last-Modified:  Sat Nov 27 15:14:09 GMT 2004
>Originator:     Ian MacDonald
>Release:        5.3 RELEASE
>Organization:
>Environment:
FreeBSD  5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/
sys/GENERIC  i386
>Description:
Following  http://devel.reinikainen.net/docs/how-to/Vinum/ to create a root mirror.

/boot/loader.conf:
vinum_load="YES"
vinum.autostart="YES"

Loader prompt "lsmod" lists vinum.ko as loaded and "show" lists vinum.autostart=YES.

Vinum: loaded message appears followed by "vinum: no drives found".

Setting root to da0s1a and doing a vinum start and vinum works.

Tried on 2 different boxes (single and dual cpu (with GENERIC and SMP kerns)). Both had 2 scsi disks with fresh installs.

Single cpu box could boot vinum mirror without issue on 5.2.1R
>How-To-Repeat:
Follow http://devel.reinikainen.net/docs/how-to/Vinum/ with 5.3R. I have managed to repeat 2 times.
>Fix:
      
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->le 
Responsible-Changed-By: le 
Responsible-Changed-When: Sat Nov 6 19:48:31 GMT 2004 
Responsible-Changed-Why:  
Take another vinum PR. 

Could you please try geom_vinum and report how it behaves?  Put this 
in your /boot/loader.conf: 

geom_vinum_load="YES" 

and change your /etc/fstab to point to /dev/gvinum instead of 
/dev/vinum. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=73624 
State-Changed-From-To: open->feedback 
State-Changed-By: le 
State-Changed-When: Sat Nov 6 20:39:31 GMT 2004 
State-Changed-Why:  
Could you please try geom_vinum and report how it behaves?  Put this  
in your /boot/loader.conf:  

geom_vinum_load="YES"  

and change your /etc/fstab to point to /dev/gvinum instead of  
/dev/vinum.  

http://www.freebsd.org/cgi/query-pr.cgi?pr=73624 

From: "Ian MacDonald" <ian@parsecnet.com>
To: <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: i386/73624: Vinum not detecting drives on reboot
Date: Sun, 7 Nov 2004 11:57:50 -0000

 Both machines can now mount root (and other partitions) on reboot. There
 was an issue however. When I carried on to configure the mirror (as when
 using vinum) after editing the mirrors label and adding the vinum slice,
 gvinum seemed to pick some old metadata up (this box was one that had
 5.2.1 with mirrored root before) and crashed. This is sorted now (well
 subdisks are now resyncing after booting from da0 directly and resetting
 the config to prior to disklabel). This could be a "gotcha" for people
 doing a fresh install on disks that had old metadata on them.
 
 Also I can not seem to find much info on gvinum and "gvinum resetconfig"
 does not work.
 
 Thanks for your help.
 
 Ian.
 

From: Petter =?iso-8859-1?q?Holmstr=F6m?= <peholmst@abo.fi>
To: freebsd-gnats-submit@FreeBSD.org, ian@ianm.net
Cc:  
Subject: Re: i386/73624: Vinum not detecting drives on reboot
Date: Wed, 10 Nov 2004 09:26:04 +0200

 =2D----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 Hello,
 
 I just wanted to confirm this. We are having the same problems here (upgrad=
 ed=20
 from 5.2.1).
 
 =46reeBSD 5.3-STABLE FreeBSD 5.3-STABLE #2: Tue Nov  9 17:01:24 EET 2004   =
  =20
 root@spider2.abo.fi:/usr/obj/usr/src/sys/GENERIC  i386
 
 It is working now on geom_vinum, but I had to change all entries in /etc/fs=
 tab=20
 from /dev/adxs1y to /dev/adxy (we are using DD-disks).
 
 =2D -Petter-
 
 =2D --=20
 Petter Holmstr=F6m  <peholmst@abo.fi>
 Master's student (computer engineering) / =C5bo Akademi University
 Axelia, Biskopsgatan 8, 20500 =C5bo, Finland
 Tel +358 2 215 3508,  GSM +358 40 8395765
 Get my GnuPG public key from http://www.abo.fi/~peholmst/
 =2D----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (GNU/Linux)
 
 iD8DBQFBkcKP+hJtFPUEs/oRArr+AJ0TIT50Yfw/p2TN3NSh3jog+Lj+LwCg2ETG
 nxPsbwiLg/GfG/dSGJDSBL0=3D
 =3Da+v5
 =2D----END PGP SIGNATURE-----
State-Changed-From-To: feedback->closed 
State-Changed-By: le 
State-Changed-When: Sat Nov 27 15:13:26 GMT 2004 
State-Changed-Why:  
Issue is solved by using geom_vinum, although other problem might come up. 

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