Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Dec 2015 09:10:23 -0800 (PST)
From:      Anton Shterenlikht <mexas@bris.ac.uk>
To:        amvandemore@gmail.com, mexas@bris.ac.uk
Cc:        freebsd-questions@freebsd.org
Subject:   Re: help number disks via /boot/device.hints
Message-ID:  <201512151710.tBFHAMNd000949@mech-as222.men.bris.ac.uk>
In-Reply-To: <CA+tpaK1aHV1nG3TRN_cP9jtYXupCM47X789WuyNce079Wpx_jw@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
>From amvandemore@gmail.com Fri Dec  4 14:27:24 2015
>On Fri, Dec 4, 2015 at 4:47 AM, Anton Shterenlikht <mexas@bris.ac.uk> 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: <IBM-ESXS MAY2073RC T107> 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: <COMPAQ MSA1000 VOLUME 4.32> 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: <COMPAQ MSA1000 VOLUME 4.32> 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: <IBM-ESXS MAY2073RC T107> 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
<IBM-ESXS MAY2073RC T107>          at scbus0 target 2 lun 0 (pass0,da0)
<COMPAQ MSA1000 4.32>              at scbus1 target 0 lun 0 (pass1)
<COMPAQ MSA1000 VOLUME 4.32>       at scbus1 target 0 lun 5 (pass2,da1)
<TEAC DW-224SL-R 1.0B>             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





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201512151710.tBFHAMNd000949>