cancel
Showing results for 
Search instead for 
Did you mean: 

Drive connected to which HBA

rajeshthink
Level 4

I recently got a Interview question, where in i was ask How would you check which drive is connected via which HBA...explaning more

suppose there are 3 HBA and 10 Drive how would you confirm from which HBA which drive is connected.

1 ACCEPTED SOLUTION

Accepted Solutions

mph999
Level 6
Employee Accredited

If the drive is visible, then scan will show the serial numbers of the drives.

 

Ap_Id                          Type         Receptacle   Occupant     Condition
c3::2103000d77640cc8,0         med-changer  connected    configured   unknown
c3::2103000d77640cc8,1         tape         connected    configured   unknown
c3::2103000d77640cc8,2         tape         connected    configured   unknown
c3::2103000d77640cc8,3         tape         connected    configured   unknown
c3::2103000d77640cc8,4         tape         connected    configured   unknown
 
 
You can also use luxadm
 
luxadm -e port
/devices/pci@1e,600000/SUNW,qlc@3/fp@0,0:devctl                    CONNECTED
 
Then 
 luxadm -e dump_map /devices/pci@1e,600000/SUNW,qlc@3/fp@0,0:devctl

.. but this is not showing all the drives, not sure why, maybe it only shows the 'top level device'.

/usr/openv/volmgr/bin/scan shows the serial numbers, scan also shows the WWN, so the drives can be found.

NOTE

I do not know why people are obsessed with "NetBackup commands" to show HBA related stuff (you are  not the first peron to ask).

Let me tell you what NBU has to do with tape drives.

Nothing.

Why

If you remove NBU from you system, are the tape drives still there - yes ... therefore tho two are not related.

For HBA  stuff/ san stuiff do not think about NetBackup commands, use OS commands / utilities.

 

Martin

 

View solution in original post

3 REPLIES 3

mph999
Level 6
Employee Accredited

Impossible question because you didn't tell us which OS.

The method would vary across the OS.  A generic answer is to say to use the HBAs utility (they come with an optional application) for example hbanywhere to see where they are connected.

Other ways would be to use OS commands, for example, cfgadm on solaris, or iostat on HP.

Martin

rajeshthink
Level 4

The OS is Solaris  , Is there any netbackup Command which can help.

also How would you see the HBA and Serial number of drive which point that its connect to this HBA.

mph999
Level 6
Employee Accredited

If the drive is visible, then scan will show the serial numbers of the drives.

 

Ap_Id                          Type         Receptacle   Occupant     Condition
c3::2103000d77640cc8,0         med-changer  connected    configured   unknown
c3::2103000d77640cc8,1         tape         connected    configured   unknown
c3::2103000d77640cc8,2         tape         connected    configured   unknown
c3::2103000d77640cc8,3         tape         connected    configured   unknown
c3::2103000d77640cc8,4         tape         connected    configured   unknown
 
 
You can also use luxadm
 
luxadm -e port
/devices/pci@1e,600000/SUNW,qlc@3/fp@0,0:devctl                    CONNECTED
 
Then 
 luxadm -e dump_map /devices/pci@1e,600000/SUNW,qlc@3/fp@0,0:devctl

.. but this is not showing all the drives, not sure why, maybe it only shows the 'top level device'.

/usr/openv/volmgr/bin/scan shows the serial numbers, scan also shows the WWN, so the drives can be found.

NOTE

I do not know why people are obsessed with "NetBackup commands" to show HBA related stuff (you are  not the first peron to ask).

Let me tell you what NBU has to do with tape drives.

Nothing.

Why

If you remove NBU from you system, are the tape drives still there - yes ... therefore tho two are not related.

For HBA  stuff/ san stuiff do not think about NetBackup commands, use OS commands / utilities.

 

Martin