From owner-freebsd-questions@freebsd.org Tue Dec 15 17:35:21 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7880CA4801F for ; Tue, 15 Dec 2015 17:35:21 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 180671BBA for ; Tue, 15 Dec 2015 17:35:21 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-wm0-x235.google.com with SMTP id l126so4316043wml.1 for ; Tue, 15 Dec 2015 09:35:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=64UGZX6afdSlRHo4mRkiUjwFORV9x2z0n2RNP5jN0Cg=; b=IMT5+ppDdqQKouugpDFNaem1ejO4n6jEJqwTyZf85cQHK3Trq5WC7NyJrckydvrDiE QwjRQOYXsoN3LMndH+P/yRMUfrt5KpqVaL1Cv4ja8yhYwK/OuD7pgPmFVOih0BotdpR/ nZeiVbeVs3vEuhhyFQemUlLWimRXxc9FpRjdwrvcqEOm3n/esrJbyZGADNFwjCxFPi/e vCPUSopmR9JXHRaBInVUR9fGjBEFResgNZsFmxF48B8+qmcazMxzxKIjWR7iYjWLKztG 3WTTnLDd6HlCkGvUhiGBfPAuc7aiIvpZqMjv/QWhi4Oab/9aWhvtn+G0m3shIIJGM+dY TdOw== MIME-Version: 1.0 X-Received: by 10.194.9.169 with SMTP id a9mr44998429wjb.60.1450200919434; Tue, 15 Dec 2015 09:35:19 -0800 (PST) Received: by 10.194.192.33 with HTTP; Tue, 15 Dec 2015 09:35:19 -0800 (PST) In-Reply-To: <201512151710.tBFHAMNd000949@mech-as222.men.bris.ac.uk> References: <201512151710.tBFHAMNd000949@mech-as222.men.bris.ac.uk> Date: Tue, 15 Dec 2015 11:35:19 -0600 Message-ID: Subject: Re: help number disks via /boot/device.hints From: Adam Vande More To: mexas@bris.ac.uk Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2015 17:35:21 -0000 On Tue, Dec 15, 2015 at 11:10 AM, Anton Shterenlikht wrote: > > > >man 4 cam > > After some trial and error I figured out that this seems to work: > > hint.scbus.0.at="mpt0" > hint.scbus.1.at="isp0" > > which gives: > > da1 at isp0 bus 0 scbus1 target 0 lun 5 > da1: Fixed Direct Access SPC-2 SCSI device > da1: Serial Number P56350GX3RX04Z > da1: 200.000MB/s transfers WWNN 0x500805f3000ec220 WWPN 0x500805f3000ec221 > PortID 0x10000 > da1: Command Queueing enabled > da1: 140011MB (286744185 512 byte sectors: 255H 63S/T 17849C) > da0 at mpt0 bus 0 scbus0 target 2 lun 0 > da0: Fixed Direct Access SPC-3 SCSI device > da0: Serial Number B399P790FBEG > da0: 300.000MB/s transfers > da0: Command Queueing enabled > da0: 70006MB (143374000 512 byte sectors: 255H 63S/T 8924C) > > and: > > # camcontrol devlist all > at scbus0 target 2 lun 0 (pass0,da0) > at scbus1 target 0 lun 0 (pass1) > at scbus1 target 0 lun 5 (pass2,da1) > at scbus2 target 0 lun 0 (pass3,cd0) > > But I see in dmesg: > > Ambiguous scbus configuration for mpt0 bus 1, cannot wire down. > The kernel config entry for scbus0 should specify a controller bus. > Scbus will be assigned dynamically. > I think you also want to add at least: hint.scbus.0.bus="0" -- Adam