Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Oct 2004 19:12:58 GMT
From:      Javier Ramirez <jramirez@diatel.upm.es>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   amd64/72333: vinum doesn't scan for drives on slices on amd64
Message-ID:  <200410041912.i94JCwpi077574@www.freebsd.org>
Resent-Message-ID: <200410041920.i94JKDRG006016@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         72333
>Category:       amd64
>Synopsis:       vinum doesn't scan for drives on slices on amd64
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-amd64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 04 19:20:12 GMT 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410041912.i94JCwpi077574>