Monday, November 24, 2008

How to check SAS raid disks in HP-UX (IA64)

Find out the sas device (usually /dev/sasd0) and use "sasmgr". See below example:

# sasmgr get_info -D /dev/sasd0 -q raid


Sat Sep 13 16:39:50 2008

---------- PHYSICAL DRIVES ----------
LUN dsf SAS Address Enclosure Bay Size(MB)

/dev/rdsk/c4t1d0 0x5000c5000a505f61 1 14 140014
/dev/rdsk/c4t3d0 0x5000c5000a5043ad 1 11 140014
/dev/rdsk/c4t4d0 0x5000c5000a505e8d 1 12 140014
/dev/rdsk/c4t5d0 0x5000c5000a50581d 1 13 140014

---------- LOGICAL DRIVE 12 ----------

Raid Level : RAID 1
Volume sas address : 0x9e5dcd189757869
Raid State : OPTIMAL
Raid Status Flag : ENABLED
Raid Size : 139136
Rebuild Rate : 20.00 %
Rebuild Progress : 100.00 %

Participating Physical Drive(s) :
SAS Address Enc Bay Size(MB) Type State

0x5000c500092f9689 1 9 140014 PRIMARY ONLINE
0x5000c500092f9d41 1 10 140014 SECONDARY ONLINE

No comments: