Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wwn LUN for disk (how to get it)

Status
Not open for further replies.

Scunningham99

Programmer
Sep 20, 2001
815
GB
Hi We have volume presented from hp san and we wish to view the WWN / LUN number the linux box....

Please advise...

rgds


Sy UK
 
I'm not to sure if you can get the WWN from the OS but the LUN can be obtained by [blue]lsscsi[/blue] (last column) or from [blue]cat /proc/scsi/scsi[/blue].

You should be able to get the WWN from the FC switch. The switch deals with the WWN directly. The drivers hide the entire FC fabric from OS.

Have Fun! [afro2]
 
Hi Thanks for reply

Linux sunatlsunx004 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686 i686 i386 GNU/Linux
[root@sunatlsunx004



lsscsi does not work "command not found"

when we cat /proc/scsi/scsi how do we determine which which mounted??

[root@sunatlsunx004 root]# lsscsi
-bash: lsscsi: command not found
[root@sunatlsunx004 root]# lscsi
-bash: lscsi: command not found
[root@sunatlsunx004 root]# more /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: COMPAQ Model: HSV110 (C)COMPAQ Rev: 3028
Type: Unknown ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 00 Lun: 01
Vendor: COMPAQ Model: HSV110 (C)COMPAQ Rev: 3028
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 00 Lun: 02
Vendor: COMPAQ Model: HSV110 (C)COMPAQ Rev: 3028
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: COMPAQ Model: HSV110 (C)COMPAQ Rev: 3028
Type: Unknown ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: COMPAQ Model: HSV110 (C)COMPAQ Rev: 3028
Type: Unknown ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 01 Lun: 00
Vendor: COMPAQ Model: HSV110 (C)COMPAQ Rev: 3028
Type: Unknown ANSI SCSI revision: 02
[root@sunatlsunx004 root]# man lsscsi
No manual entry for lsscsi


[root@sunatlsunx004 root]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p6 11527312 7625152 3316596 70% /
/dev/cciss/c0d0p1 101089 17719 78151 19% /boot
/dev/cciss/c0d0p2 10080520 2522616 7045836 27% /usr
/dev/cciss/c0d0p5 5036284 1249468 3530984 27% /var
/dev/sdb1 780009952 662208224 117801728 85% /qa
/dev/sda1 780009952 657474656 122535296 85% /CNTR

thanks in advance!





Sy UK
 
I assume you're running RHEL(2 ???). I'm afraid you need a 2.6 kernel to use lsscsi. Sorry 'bout that.

From what I can gather you have two (2) SCSI adapters, scsi0 and scsi1. Correct?

You also have two (2) Direct disks, sda and sdb, attached to adapter scsi0. Correct?

Host: scsi0 Channel: 00 Id: 00 Lun: 00 --> boot device? (/dev/cciss/c0d0p?)
Host: scsi0 Channel: 00 Id: 00 Lun: 01 --> /dev/sda
Host: scsi0 Channel: 00 Id: 00 Lun: 02 --> /dev/sdb
Host: scsi0 Channel: 00 Id: 01 Lun: 00 --> Another device on the same adapter (??)
Host: scsi1 Channel: 00 Id: 00 Lun: 00 --> Some device on the second adapter (??)
Host: scsi1 Channel: 00 Id: 01 Lun: 00 --> Another device on the second adapter (??)

You know your system better than I do. Narrow the choices by deducing what's left. I need more info to be helpful.

Try using [blue]cat /proc/mounts[/blue] and [blue]cat /proc/partitions[/blue] to get a better picture.

It might be time to call HP to get a real answer.

Have Fun! [pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top