SCSI and SAN

Eric Anderson anderson at freebsd.org
Fri Oct 5 05:55:35 PDT 2007


Sharad Chandra wrote:
> That's very right, but it needs a manual setup. Whereas I need to work on 
> storage disks attached to system, to accomplish that i have to write a script 
> and know in itself whether it is attached to SAN or not. I know mainly there 
> are "sysctl kern.disks" storage attached to system, nothing else.

You must be blocking my mails.

camcontrol devlist -v
                   ^^^^^^

It will tell you which controllers the devices are on.  You can even 
show devices on a particular controller, say, an isp device.

Eric



> On Friday 05 October 2007 5:19 pm, Tom Evans wrote:
>> On Fri, 2007-10-05 at 12:43 +0100, Tom Evans wrote:
>> ....
>>
>> Excuse the formatting, my keyboard went nuts and decided I was done
>> editing :o
>>
>> In addition to the example I showed, I was just going to say that the
>> purpose of glabel is to stop referring to /dev/da[0-9]* and instead be
>> able to refer to /dev/label/san_0_lun_0 (or whatever you like). I don't
>> know of a way to automagically determine if a disk is in fact a SAN, but
>> it cannot be too hard to figure out from dmesg + information about the
>> disk.
>>
>> Once you have identified it LABEL IT! Then there is no more ambiguity.
>>
>> Regards
>>
>> Tom



More information about the freebsd-hackers mailing list