[OmniOS-discuss] how many HBAs my system have ?

Thomas Wagner tom-omnios-discuss at tom.bn-ulm.de
Fri Oct 3 14:14:37 UTC 2014


I like the display of "cfgadm".

cfgadm
Ap_Id                          Type         Receptacle   Occupant     Condition
sata2/0::dsk/c2t0d0            disk         connected    configured   ok
sata2/1::dsk/c2t1d0            disk         connected    configured   ok
sata2/2::dsk/c2t2d0            disk         connected    configured   ok
sata2/3::dsk/c2t3d0            cd/dvd       connected    configured   ok
sata2/4::dsk/c2t4d0            disk         connected    configured   ok
sata2/5::dsk/c2t5d0            disk         connected    configured   ok

In my system the controller is the onboard SATA, numbered as "sata2" with
6 ports.

Note: Sometimes a controller might be present, but no
driver attached. Then you don't see that on the list.
The cfgadm manpage has examples how controllers are 
displayed (e.g. just Ap_Id is "c0").
To configure a controller you can run e.g. cfgadm -c configure c1
(controller numbers are incremented, getting a symlink
in /dev/cfg/ and registered in /etc/path_to_inst.)
So in the example you would have two, the first controllert
already linked to /dev/cfg/c0 and the second controller being
unconfigured, getting now the /dev/cfg/c1 link.

Else, the best source is still "/usr/sbin/prtconf -vp | ggrep -2 model",
even if there is too much information. It just never lies, as
it displays all the PCI informations.

Regards
Thomas

On Fri, Oct 03, 2014 at 10:25:35AM -0300, F??bio Rabelo wrote:
> How can I check how many HBA controlres do I have connected in a
> system, if this system are in a ( very ) remote location, and I just
> have SSH available ?
> 
> prtconf -v returns too many noise !
> 
> prtconv -v  |grep  RAID returns only one line ...
> 
> There is an easy way ?
> 
> 
> Fábio Rabelo
> _______________________________________________
> OmniOS-discuss mailing list
> OmniOS-discuss at lists.omniti.com
> http://lists.omniti.com/mailman/listinfo/omnios-discuss
> 

-- 
-- 
Thomas Wagner

------------------------------------------------------------------------
Service rund um UNIX(TM),     Wagner Network Services, Thomas Wagner
Solaris(TM), Linux(TM)        Eschenweg 21, 89174 Altheim, Germany
Novell(TM), Windows(TM)       TEL: +49-731-9807799, FAX: +49-731-9807711
Telekommunikation, LAN,       MOBILE/CELL: +49-171-6135989
Internet-Service, Elektronik  EMAIL: wagner at wagner-net.com


More information about the OmniOS-discuss mailing list