From owner-freebsd-questions@FreeBSD.ORG Sun Feb 3 16:08:52 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 4279B16A417 for ; Sun, 3 Feb 2008 16:08:52 +0000 (UTC) (envelope-from datahead4@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id CE5E913C4EF for ; Sun, 3 Feb 2008 16:08:51 +0000 (UTC) (envelope-from datahead4@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so1377209uge.37 for ; Sun, 03 Feb 2008 08:08:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=rL1phXb5jNeUP72HKkCbWmo5hO1wdj9hNS4thMZ2ZKk=; b=VnhHhMuilon17RbCKcvTy6RczbxORpUb6z13CpK5xsErz+udvSQiWydcPfp4cb4hBHnF6OX8+VkATy7QqaZ5LQExTY4bPHX3vO4kisngk5z4cMgTH79OX85+geRukMLE+XCx0ESGrnaqN/166WC7Y2cvsAqi/5atSw2/gJ7XmHk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mvhNVN08uR6nutgD2tzWYMpi9+CI+31KC04c6Wb0+cW3d9K5nMul+hwyzWUzTtwmUpiJ4F4VDten/Fz7x5c+wV0cxktYRKitXm3yeLV22t30oipMYtiJUu8Ch6TKnGizMINj7x7oSIHKzpWD+7y25yF0c33L7jjQbhGSvaJYThM= Received: by 10.67.98.15 with SMTP id a15mr986855ugm.69.1202053253728; Sun, 03 Feb 2008 07:40:53 -0800 (PST) Received: by 10.66.234.11 with HTTP; Sun, 3 Feb 2008 07:40:53 -0800 (PST) Message-ID: Date: Sun, 3 Feb 2008 09:40:53 -0600 From: Matt To: "Christian Baer" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: 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 16:08:52 -0000 On Feb 3, 2008 6:13 AM, Christian Baer wrote: > Greetings programs! > > I have a computer here with 10 HDDs. Four of them are connected to the > southbridge of the mainboard. The other 6 are connected to two Promise > SATAII 300 TX4. Four of the drives are connected to the first controller > (making it 'full') the other two connected to the second. > > To make the device names predictable I was very careful how I connected > them. The four drives connected to the southbridge are in the right order > (this also means they have the device names ad0 to ad3). The drives > connected to the other controllers are a different story. > > The two controllers cooperate well and identify themselves as one > controller only. So I get only one message showing all the drives. The > drives are in this order in the BIOS message: > > 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 > > Where did I go wrong? > > Regards, > Chris Is the concern with the apparent out-of-order numbering based on how you want to access these devices in areas like fstab? If so, I suggest using glabel(8) to label the drives and then address them by their labels elsewhere in the system. I think there may be cases where glabel won't be able to help, but it should work for many usage scenarios. Matt