From owner-freebsd-questions@FreeBSD.ORG Sat Oct 27 08:24:58 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C9F01E8B for ; Sat, 27 Oct 2012 08:24:58 +0000 (UTC) (envelope-from schmidt@ze.tum.de) Received: from inga.augusta.de (inga.augusta.de [77.90.142.2]) by mx1.freebsd.org (Postfix) with ESMTP id 4ED148FC08 for ; Sat, 27 Oct 2012 08:24:57 +0000 (UTC) Received: from inga.augusta.de (localhost [127.0.0.1]) by inga.augusta.de (8.14.5/8.14.5) with ESMTP id q9R8OrSO051987 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 27 Oct 2012 10:24:53 +0200 (CEST) (envelope-from schmidt@ze.tum.de) Received: (from uucp@localhost) by inga.augusta.de (8.14.5/8.14.5/Submit) with UUCP id q9R8OpbQ051986; Sat, 27 Oct 2012 10:24:51 +0200 (CEST) (envelope-from schmidt@ze.tum.de) Received: from wanderer.starbox.augusta.de (wanderer.starbox.augusta.de [192.168.71.2]) by gatekeeper.starbox.augusta.de (8.14.3/8.14.3) with ESMTP id q9R8MIH9010133; Sat, 27 Oct 2012 10:22:18 +0200 (CEST) (envelope-from schmidt@ze.tum.de) Message-ID: <508B99A9.6000906@ze.tum.de> Date: Sat, 27 Oct 2012 10:22:01 +0200 From: Gerhard Schmidt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121022 Thunderbird/16.0.1 MIME-Version: 1.0 To: Jeremy Chadwick Subject: Re: ata controller problem References: <20121026163338.GA32286@icarus.home.lan> In-Reply-To: <20121026163338.GA32286@icarus.home.lan> X-Enigmail-Version: 1.4.5 OpenPGP: id=4000A915 Content-Type: multipart/mixed; boundary="------------020802060106010500090600" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (inga.augusta.de [127.0.0.1]); Sat, 27 Oct 2012 10:24:53 +0200 (CEST) X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd@edvax.de, freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2012 08:24:59 -0000 This is a multi-part message in MIME format. --------------020802060106010500090600 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Am 26.10.2012 18:33, schrieb Jeremy Chadwick: > Regarding this: > > http://lists.freebsd.org/pipermail/freebsd-questions/2012-October/245862.html > > No no NO *NO*! > > I wish people would stop recommending this utter garbage. There is > absolutely no justification behind using the highly convoluted labelling > mechanisms at multiple layers within FreeBSD. There are 3 (possibly 4) > different "label" mechanisms which do nothing but confuse the user, or > cause other oddities/complexities. Good grief, there is so much hard > evidence on the mailing lists over the past 5 (maybe even 7?) years > talking about the utter mess that is filesystem/device/geom/blahblah > labels that to recommend this is borderline insane. > > The proper way to solve this problem is to user /boot/loader.conf > tie-downs to assign each disk to each individual controllers' device > number (e.g. ada0 --> scbus0 --> ahcich0, or whatever you want). Please > note I said ahcichX, not ahciX. Different things. > > I have helped others in the past do this; Randy Bush is one such person. > > Taken directly from my /boot/loader.conf with a single SATA controller, > but obviously this can be adjusted to whatever you want. > > # "Wire down" device names (ada[0-5]) to each individual port > # on the SATA/AHCI controller. This ensures that if we reboot > # with a disk missing, the device names stay the same, and stay > # attached to the same SATA/AHCI controller. > # http://lists.freebsd.org/pipermail/freebsd-fs/2011-March/011036.html > # > hint.scbus.0.at="ahcich0" > hint.scbus.1.at="ahcich1" > hint.scbus.2.at="ahcich2" > hint.scbus.3.at="ahcich3" > hint.scbus.4.at="ahcich4" > hint.scbus.5.at="ahcich5" > hint.ada.0.at="scbus0" > hint.ada.1.at="scbus1" > hint.ada.2.at="scbus2" > hint.ada.3.at="scbus3" > hint.ada.4.at="scbus4" > hint.ada.5.at="scbus5" > > See CAM(4) man page (read it, don't skim!) for full details. Just > please for the love of god do not use labels to solve this. > Sorry this doesn't work because the numbering of the ahci change with the occupancy of the Hot-Swap Bays. And that is my Problem. This i have tried first. Any idea how i can fix which controller gets which number. Regard Estartu -- ------------------------------------------------- Gerhard Schmidt | E-Mail und JabberID: TU-München | schmidt@ze.tum.de WWW & Online Services | Tel: 089/289-25270 | Fax: 089/289-25257 | PGP-Publickey auf Anfrage --------------020802060106010500090600--