From nobody@FreeBSD.org  Mon Oct  4 19:12:59 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 02BAF16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  4 Oct 2004 19:12:59 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E9B2043D53
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  4 Oct 2004 19:12:58 +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 i94JCwwK077575
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 4 Oct 2004 19:12:58 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i94JCwpi077574;
	Mon, 4 Oct 2004 19:12:58 GMT
	(envelope-from nobody)
Message-Id: <200410041912.i94JCwpi077574@www.freebsd.org>
Date: Mon, 4 Oct 2004 19:12:58 GMT
From: Javier Ramirez <jramirez@diatel.upm.es>
To: freebsd-gnats-submit@FreeBSD.org
Subject: vinum doesn't scan for drives on slices on amd64
X-Send-Pr-Version: www-2.3

>Number:         72333
>Category:       amd64
>Synopsis:       vinum doesn't scan for drives on slices on amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-amd64
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 04 19:20:12 GMT 2004
>Closed-Date:    Mon Nov 29 23:41:06 GMT 2004
>Last-Modified:  Mon Nov 29 23:41:06 GMT 2004
>Originator:     Javier Ramirez
>Release:        FreeBSD 5.3-BETA6/amd64
>Organization:
UPM
>Environment:
FreeBSD agua.madrimasd.org 5.3-BETA6 FreeBSD 5.3-BETA6 #0: Sat Sep 25 21:49:38 UTC 2004 
root@fanboy.samsco.home:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Code at file /usr/src/sys/dev/vinum/vinumio.c , where vinum scans for drives looking for vinum partitions, it only considers slices existence (aka ad0s1h) when "__i386__" is defined. 

So, i suppose that code doesn't execute on amd64 machines and vinum doesn't find vinum partitions on a pc slice. So, it doesn't find vinum partitions (this is critical for mounting root filesystem over vinum) when you put vinum.autostart="YES" in /boot/loader.conf.

By hand, vinum works if you do "vinum read ad4", because it find the vinum partition at this drive. But "vinum read" doesn't scan on pc slices, too (i suppose that use the same scan routine than boot scan). 

 
>How-To-Repeat:
On a amd64 box: install with /stand/sysinstall over a slice (aka ad0s1). Configure a vinum partition for root on than slice (aka ad0s1h). 

Configure 
vinum_load="YES"
vinum.autostart="YES"
in /boot/loader.conf

Reboot (on single user, for example), and see "vinum: no drives found". 

Warning: test with vinum partitions only on slices (if vinum takes its configuration from another copy in any drive, i suppose it will read the configuration from that drive. 
>Fix:
Probably code at file /usr/src/sys/dev/vinum/vinumio.c , where vinum scans for drives looking for vinum partitions, must consider slices existence (aka ad0s1h) when "__i386__" or "__amd64__" is defined (not only "__i386__". 

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: peter 
State-Changed-When: Mon Nov 29 23:40:25 GMT 2004 
State-Changed-Why:  
Patch to enable slice scanning for amd64 committed as vinumio.c:1.100.2.1 
in RELENG_5 

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