From owner-freebsd-questions@FreeBSD.ORG Sun Feb 3 14:59:42 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C991E16A418 for ; Sun, 3 Feb 2008 14:59:42 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id 5641713C448 for ; Sun, 3 Feb 2008 14:59:41 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-25-183.bredband.comhem.se ([83.253.25.183]:52002 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JLgJo-0004ZS-7C for freebsd-questions@freebsd.org; Sun, 03 Feb 2008 15:59:40 +0100 Received: (qmail 72636 invoked from network); 3 Feb 2008 15:59:39 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 3 Feb 2008 15:59:39 +0100 Received: (qmail 66882 invoked by uid 1001); 3 Feb 2008 15:59:39 +0100 Date: Sun, 3 Feb 2008 15:59:39 +0100 From: Erik Trulsson To: Christian Baer Message-ID: <20080203145939.GA66745@owl.midgard.homeip.net> Mail-Followup-To: Christian Baer , freebsd-questions@freebsd.org References: <20080203130333.GA66223@owl.midgard.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Originating-IP: 83.253.25.183 X-Scan-Result: No virus found in message 1JLgJo-0004ZS-7C. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1JLgJo-0004ZS-7C 0f86718699a923c9a230b11360bb94dc Cc: freebsd-questions@freebsd.org Subject: Re: Strange HDD order X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Feb 2008 14:59:42 -0000 On Sun, Feb 03, 2008 at 02:34:48PM +0100, Christian Baer wrote: > On Sun, 3 Feb 2008 14:03:33 +0100 Erik Trulsson wrote: > > >> D 0 WDC WD3200SD-01KNB0 08.05J08 (ad4) > >> D 1 WDC WD3200SD-01KNB0 08.05J08 (ad6) > >> D 2 SAMSUNG HD501LJ CR100-11 (ad8) > >> D 3 SAMSUNG HD501LJ CR100-11 (ad10) > >> D 4 Seagate ST3500320AS SD04 (ad12) > >> D 5 Seagate ST3500320AS SD04 (ad14) > >> > >> The device in brackets is the one I'd expect to get. Instead, I get this: > >> > >> ad4: 476940MB at ata2-master SATA300 > >> ad6: 305245MB at ata3-master SATA150 > >> ad8: 476940MB at ata4-master SATA300 > >> ad10: 305245MB at ata5-master SATA150 > >> ad14: 476940MB at ata7-master SATA150 > >> ad18: 476940MB at ata9-master SATA150 > > > > How disks ars numbered do depend on which ports on which controller they > > are attached to. You want to use the lowest-numbered ports on the Promise > > controllers. Which ports that is when both controllers identify as a single > > controller is another question. From what you show it looks like all the > > odd-numbered ports are on one controller and all the even-numbered ports are > > on the other. > > Do you mean physically or logically? Physically the first four drives in > the top list (the two WDCs and the two Samsungs) are connected to the > first controller. The two Seagates are connected to the second. In that case my guess on how they were numbered seems wrong. FreeBSD seems to think that the two Samsung drives are connected to ports 1 and 3 on the first controller, while the two WDC drives are connected to ports 2 and 4 on the same controller. The two Seagate drives appear to be connected to ports 2 and 4 on the second controller, with ports 1 and 3 on that controller being unused. This may or may not be the same numbering of the ports as shown in the manual for the controller (and possibly printed on the card itself.) If it is the same, then all is fine, and working just as it should. If it is different then there is a bug somewhere. If this bug is in the controller, the manual for the controller, or FreeBSD's ATA driver is not something I can answer. Using Google to search for 'Promise SATA300-TX4 "port numbers"' indicate that this is a problem that several other people have encountered with this controller with both FreeBSD and LInux. The ports on the card are labeled 1-2-3-4 but are detected as 3-2-4-1 > > > Try experimenting by changing which disk is connected to which port and see > > if you can get the behaviour you want. > > I don't really want or nead any behaviour in particular. This is just a > matter of what's in the fstab. I was more wondering how this could be and > if this order (and thus the device names) will stay constant or if the OS > could get funny ideas after a csup and change this again, which would > certainly mess up my directory tree. It should stay constant unless there would be some change specifically in how the ATA driver enumerates the ports on this controller. > > I was also wondering about the "gap" there is in the device names. The > first controller should get ad4,6,8 and 10. But then, the second should > get 12 and not 14. What happened to 12? 12 is probably one of the two ports you are not using. (16 being the other.) -- Erik Trulsson ertr1013@student.uu.se