On Tue, Mar 16, 2010 at 8:03 AM, Mauro Jeremy (EXT)
<jeremy.mauro-...@natixis.com> wrote:
> Hi everyone,
>
> I wonder if there is a way to determine if a disk is local and not a SAN 
> device on Solaris 10. I have a big trouble to install Solaris on local disk 
> when the server has SAN device, because the "/" is install on SAN device 
> (since they are the first disks in the SI_DISKLIST). Of course, the idea is 
> not to specify for each server the controller but just determine how to 
> exclude SAN devices from my list of devices available to install Solaris 10.

You can do "ls -l" on the /dev/dsk entries to find the physical paths
of the disks.  You can use that along with some knowledge of the
topology of the system to determine which disks are internal.

For example, in a T5120 I randomly picked these two disks:

/dev/dsk/c1t0d0s2 -> ../../devices/p...@0/p...@0/p...@2/s...@0/s...@0,0:c
/dev/dsk/c3txxxd9s2 ->
../../devices/p...@0/p...@0/p...@8/p...@0/p...@9/SUNW,q...@0/f...@0,0/s...@wxxx,9:c

I know that the SAN devices are on the other side of a qlogic HBA and
the internal disks aren't.  The second one has SUNW,qlc in the path so
I know that one is on the SAN.

In real life, I have a configuration file that lists the paths to the
internal disks on all the server models that my jumpstart environment
needs to support.  A begin script examines the hardware configuration,
the configuration file, and some other things and creates a derived
profile based on that.

-- 
Mike Gerdts
http://mgerdts.blogspot.com/
_______________________________________________
sysadmin-discuss mailing list
sysadmin-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss

Reply via email to