HPE EVA Storage
1824169 Members
3361 Online
109669 Solutions
New Discussion юеВ

How to find scsi_id in san

 
Charles THISE
Occasional Advisor

How to find scsi_id in san

Hi,

I work with a san with multiple host type on.
The end devices are tapes to backup.
my clients are either IBM RS/6000 or HP HP-9000.
On AIX, i can get the scsi_id of all tape rmtXX, by lsattr -El rmtxx

How can i get the same return for the same tape seen by HPUX ?
lssf /dev/rmt/5m give me something, but i can't translate...

I just want something like this :
scsi_id 0x113e1 SCSI Id (ALPA)

Any ideas ?

In advance, i thank you for your help.

Charles.
4 REPLIES 4
Marcin Wicinski
Trusted Contributor

Re: How to find scsi_id in san

Hi,
Try ioscan -fnkCtape and find Hardware Path. I do not know your SAN configuration but I think the tape(drive rather) shoudl be seen as device (not as LUN) so the second latest number in hardware path should indicate SCSI id.

Later,

PS. Give me ioscan result.
Marcin Wicinski
harry d brown jr
Honored Contributor

Re: How to find scsi_id in san

Marcin,

You don't want to use the "k" option because it will just scan the kernel data structures and not the IO cards.

Charles,

You aren't going to get something like this :
scsi_id 0x113e1 SCSI Id (ALPA)

but more like this:

[root]pbctst: ioscan -fnCtape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/0/2/0.3.0 stape CLAIMED DEVICE HP C1537A
/dev/rmt/0m /dev/rmt/c2t3d0BESTn
/dev/rmt/0mb /dev/rmt/c2t3d0BESTnb
/dev/rmt/0mn /dev/rmt/c2t3d0DDS
/dev/rmt/0mnb /dev/rmt/c2t3d0DDSb
/dev/rmt/c2t3d0BEST /dev/rmt/c2t3d0DDSn
/dev/rmt/c2t3d0BESTb /dev/rmt/c2t3d0DDSnb
[root]pbctst:


live free or die
harry
Live Free or Die
Marcin Wicinski
Trusted Contributor

Re: How to find scsi_id in san

Hi Harry,
Yes, you are right, but I assume an ioscan (without k option) or a reboot were performed before.
Marcin Wicinski
Oliver Haensel
Respected Contributor

Re: How to find scsi_id in san

 
everything is possible ...