From owner-freebsd-amd64@FreeBSD.ORG Mon Oct 4 19:20:13 2004 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FA3916A4CF for ; Mon, 4 Oct 2004 19:20:13 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 361A143D2D for ; Mon, 4 Oct 2004 19:20:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i94JKDw8006017 for ; Mon, 4 Oct 2004 19:20:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i94JKDRG006016; Mon, 4 Oct 2004 19:20:13 GMT (envelope-from gnats) Resent-Date: Mon, 4 Oct 2004 19:20:13 GMT Resent-Message-Id: <200410041920.i94JKDRG006016@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Javier Ramirez Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02BAF16A4CE for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: amd64/72333: vinum doesn't scan for drives on slices on amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 19:20:13 -0000 >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: