From owner-freebsd-sparc64@FreeBSD.ORG Tue Aug 16 18:58:00 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BED8106566B for ; Tue, 16 Aug 2011 18:58:00 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id AA1058FC12 for ; Tue, 16 Aug 2011 18:57:59 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id p7GIvrAG022654; Tue, 16 Aug 2011 20:57:54 +0200 (CEST) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id p7GIvrYt022653; Tue, 16 Aug 2011 20:57:53 +0200 (CEST) (envelope-from marius) Date: Tue, 16 Aug 2011 20:57:53 +0200 From: Marius Strobl To: Riccardo Veraldi Message-ID: <20110816185753.GA22605@alchemy.franken.de> References: <4E4542C0.6010905@gmail.com> <20110815210349.GB59127@server.vk2pj.dyndns.org> <4E4A7148.2030003@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E4A7148.2030003@gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-sparc64@freebsd.org Subject: Re: problem installing 8.2 on Sun Blade 1000 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2011 18:58:00 -0000 On Tue, Aug 16, 2011 at 03:31:52PM +0200, Riccardo Veraldi wrote: > Hello, > I focused closer to the problem. > I have 2 internal 18GB SCSI Segate disks and 2 external SCSI HITACHI > 140GB disks. > now if I Remove the external disk cabinet, everything works and FreeBSD > install and boot > from the internal disks. > > After installation if I add the external cabinet with 2 SCSI-III disks > at boot the system > goes kernel panic since it cannot find root on /dev/da0a > > it is like if GEOM confuses the disk and the internal da0 and da1 disks > are confused with the external disks which are called the same da0 and > da1 like the internal disks, this is the problem. > I checked the SCSI IDs and they are all ok, I renumbered the external > SCSI ID disk in the cabinet. > I Can see disk correctly with probe-scsi-all > > but on boot external disks are recognized as da0 and da1 like the > internal disks and system is messed. > > anyone got this problem before ? > If the external and internal disks hang off of different HBAs then which disk becomes da0 then is not only determined by the ID but also depends on what HBA is probed first, which FreeBSD does based on the order provided via the device tree provided by the firmware. If that's the case you should be able to influence the probe order by changing the slot order in pcia-probe-list and pcib-probe-list respectively as appropriate in the PROM boot monitor or using eeprom(8). Apart from just living with the root filesystem just not being on da0 (besides having a matching /etc/fstab you might also need to set vfs.root.mountform as appropriate) you should be also do solve this by wiring da(4) devices to certain IDs on certain busses via hints (see SCSI DEVICE CONFIGURATION in the MI NOTES) and probably also by using glabel(8) in order to set labels which then can be used instead of da(4) devices names. Marius