rageek

A place for Unix Thoughts and Ideas

Mapping SAS device names to bay location on HP Integrity Servers

The mapping between the bay numbers on the HP-UX Integrity servers are not very straight forward and if you make a mistake, you could loose critical data.

You can use the sasmgr command to get the information.

Here are 2 examples:

#sasmgr get_info -D /dev/sasd0 -q raid
Thu May  6 11:28:05 2010
———- PHYSICAL DRIVES ———-
LUN dsf              SAS Address          Enclosure    Bay      Size(MB)
/dev/rdsk/c0t0d0     0x5000c5000c9957b5     1            5      140014
/dev/rdsk/c0t3d0     0x5000c5000c987dfd     1            8      140014
/dev/rdsk/c0t4d0     0x5000c50007f34c91     1            1      140014
/dev/rdsk/c0t5d0     0x5000c5000122012d     1            2      140014 

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

Wed Jan 19 12:54:09 2011
———- PHYSICAL DRIVES ———-
LUN dsf              SAS Address          Enclosure    Bay      Size(MB)
/dev/rdsk/c0t0d0     0x5000c5000c9957b5     1            5      140014
/dev/rdsk/c0t3d0     0x5000c5000c987dfd     1            8      140014
———- LOGICAL DRIVE 1 ———-
Raid Level                                         : RAID 1
Volume sas address                                 : 0x2444f42ed0bae7a
Device Special File                                : /dev/rdsk/c0t6d0
Raid State                                         : OPTIMAL
Raid Status Flag                                   : ENABLED
Raid Size                                            : 139136
Rebuild Rate                                       : 100.00 %
Rebuild Progress                                   : 100.00 %
Participating Physical Drive(s) :
SAS Address         Enc   Bay   Size(MB)      Type            State
0x5000c5000122012d   1     2    140014        PRIMARY         ONLINE
0x5000c50007f34c91   1     1    140014        SECONDARY       ONLINE
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: