From owner-freebsd-questions@freebsd.org Tue Dec 15 17:10:26 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 2F93BA48FFC for ; Tue, 15 Dec 2015 17:10:26 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) (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 CBEE41AA6 for ; Tue, 15 Dec 2015 17:10:25 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by mail-wm0-x22e.google.com with SMTP id n186so105006365wmn.0 for ; Tue, 15 Dec 2015 09:10:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bris-ac-uk.20150623.gappssmtp.com; s=20150623; h=date:from:message-id:to:subject:cc:reply-to:in-reply-to; bh=iUzqL1jdN2SSmVi9zvo/VMbIIZ8Amjd8voCv32ZawBo=; b=uzqydZSZQ+BkLoY8lSjY6xRgFMABYKG7qAWfR2Bufv1w0fs6qaWul5r+OwDIaE4jdv TObpK5DSQcD8DgF/RS1fd8U5RQq8e3jOah91arV1bBXza5S09VQLKww85yRAJhF1kmjX I1VakmxvpqkEFrByj708LCSWwketCtAr/bEs0qQKqeMkcXDN8zJO8/b7Z2zGi0xjwylq 72v1Y5phu/dc2jtFkyWmqu0JGRUBW39pKgehL0VTh79z47vRctI3brEVuMp/W6u9S+tL hCbgOcH7tLhMwfJAOaHo1dQ0yC92vxNdy9B2X0DiuqpAZeOYH9DYswpsJm+jmtVq2Kda zEtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:message-id:to:subject:cc:reply-to :in-reply-to; bh=iUzqL1jdN2SSmVi9zvo/VMbIIZ8Amjd8voCv32ZawBo=; b=mByVDkcNo9KS7INDUlVsQKrIiWRfMD7S0JWvmFT71ElcFPc5X6splsmbbsSXpwxW8o IKcWN/m9StXiW91Ga58eBbCyYMU21BepmLt1iQvhjrKXsTPYRRs+9BTmhoi6eFwEqVJp AbXgzZspZgE0YsXtBlYANhw+fKmxpsZt2rzZnWUt/sYDb7QjH5y/MHAidhh97mFI7SR/ 0LnuG7Ybs8KV5V9VTCK6rN+xIAhNejREvbsRWbkM/vigw6pMQWYgFmYCuBxpMw0dTZuz PyM88wivF+uXVBYCXVbKUGAzO0wlGNeB83gDe/7/jelJ7Ay+U3XAHL3W1NQH+KejHT7e TroA== X-Gm-Message-State: ALoCoQmbUwgDTE95GMq1mJU36OhkyoZbzGizBP01NOos1LQH++PFrSktu3rw6VKHPTxdx9VBXuyts9iK8bzUFkfxJg1+gAu0+w== X-Received: by 10.28.187.4 with SMTP id l4mr6011689wmf.33.1450199424289; Tue, 15 Dec 2015 09:10:24 -0800 (PST) Received: from mech-as222.men.bris.ac.uk (mech-as222.men.bris.ac.uk. [137.222.170.4]) by smtp.gmail.com with ESMTPSA id u4sm2256987wjz.4.2015.12.15.09.10.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Dec 2015 09:10:23 -0800 (PST) Date: Tue, 15 Dec 2015 09:10:23 -0800 (PST) X-Google-Original-Date: Tue, 15 Dec 2015 17:10:22 GMT Received: from mech-as222.men.bris.ac.uk (localhost [127.0.0.1]) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2) with ESMTP id tBFHAMDH000950; Tue, 15 Dec 2015 17:10:22 GMT (envelope-from mexas@mech-as222.men.bris.ac.uk) Received: (from mexas@localhost) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2/Submit) id tBFHAMNd000949; Tue, 15 Dec 2015 17:10:22 GMT (envelope-from mexas) From: Anton Shterenlikht Message-Id: <201512151710.tBFHAMNd000949@mech-as222.men.bris.ac.uk> To: amvandemore@gmail.com, mexas@bris.ac.uk Subject: Re: help number disks via /boot/device.hints Cc: freebsd-questions@freebsd.org Reply-To: mexas@bris.ac.uk In-Reply-To: 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:10:26 -0000 >From amvandemore@gmail.com Fri Dec 4 14:27:24 2015 >On Fri, Dec 4, 2015 at 4:47 AM, Anton Shterenlikht wrote: > >> I've a problem - when the fibre disks are connected >> at boot, the boot disk is not given da0 and I cannot boot. >> So what I do now is disconnect the fiber disk until boot >> is completed, and connect is manually afterwards. >> >> Then I get: >> >> da0 at mpt0 bus 0 scbus3 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) >> >> da1 at isp0 bus 0 scbus2 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) >> >> How can I set in /boot/device.hints that the MSA1000 >> disk is da1 and IBM is the boot disk da0? >> > >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. Have I got it wrong? Thanks Anton