OpenSolaris: Getting Disk Information

1 Comment

Couple of nice commands, hope this helps someone.

root@vps2:/# /usr/sbin/cfgadm -al -s "select=type(disk),cols=ap_id:info"
Ap_Id                          Information
c0::dsk/c0t8d0                 LSILOGIC Logical Volume
c0::dsk/c0t15d0                SEAGATE ST914602SSUN146G
c0::dsk/c0t16d0                SEAGATE ST914602SSUN146G
c0::dsk/c0t18d0                HITACHI H101414SCSUN146G
c0::dsk/c0t19d0                HITACHI H101414SCSUN146G
root@vps2:/# 

OR

root@vps1:~# /usr/sbin/raidctl -l 
Controller: 7
        Disk: 0.0.0
        Disk: 0.1.0
        Disk: 0.2.0
        Disk: 0.3.0
        Disk: 0.4.0
        Disk: 0.5.0
root@vps1:~# raidctl -l -g 0.2.0 7
Disk    Vendor   Product          Firmware      Capacity        Status  HSP
----------------------------------------------------------------------------
0.2.0   SEAGATE  ST973401LSUN72G  0556          68.3G           GOOD    N/A
root@vps1:~# 

You can of course get all of this using prtconf -v as well.

James Lee

The raidctl command will only show drives connected to supported RAID controllers, basically LSI ones at the moment. All of this information can be discovered using 'format' too.

2009-12-22 12:55:49