[OpenIndiana-discuss] Best way to map SAS drives to physical positions

James C. McPherson james.c.mcpherson at gmail.com
Fri Oct 7 00:52:44 UTC 2011


On  7/10/11 10:41 AM, Christopher Chan wrote:
> On Wednesday, October 05, 2011 02:03 AM, Alasdair Lumsden wrote:
>> Hi Jeppe,
>>
>> On 3 Oct 2011, at 14:19, Jeppe Toustrup wrote:
>>> The only way I have found which I can find the order of the drives in
>>> the JBOD along with the above names, without pulling out each drive
>>> and see which one becomes unavailable, is within /etc/path_to_inst,
>>> where I find the following lines:
>>
>> Have you tried:
>>
>> /usr/lib/fm/fmd/fmtopo -V
>>
>> ?
>>
>> It works with SES compatible JBOD enclosures and I can confirm it works with the LSI JBODs we use.
>>
>
> Thanks Alasdair for this!
>
> I get enclosure id and bay id with this command. But boy, it sure does need lots of parsing.

Or you could look at the headers in usr/include/scsi and write
a utility that takes a topology snapshot, then walks and parses
the entries therein.....



  
James C. McPherson
--
Solaris kernel software engineer, system admin and troubleshooter
               http://www.jmcp.homeunix.com/blog
Find me on LinkedIn @ http://www.linkedin.com/in/jamescmcpherson




More information about the OpenIndiana-discuss mailing list