SAN configuration

sunhux G sunhux at gmail.com
Tue Sep 2 02:02:54 UTC 2008


Hi Rene/any members,


> I use the following command to list the WWNs:
> cat /sys/class/scsi_host/host?/device/fc_host\:host?/port_name

I checked the above on our Redhat 4.6 but the numbers that's
there don't appear like WW number/id :

# pwd
/sys/class/scsi_host/host0    #
# ls -l
total 0
-r--r--r--  1 root root 4096 Sep  2 09:52 cmd_per_lun
lrwxrwxrwx  1 root root    0 Sep  2 09:51 device ->
../../../devices/pci0000:00/0000:00:03.0/0000:04:00.0/host0
-r--r--r--  1 root root 4096 Sep  2 07:35 flags
-r--r--r--  1 root root 4096 Sep  2 09:52 hba_bios_version
-r--r--r--  1 root root 4096 Sep  2 09:52 hba_kernel_version
-r--r--r--  1 root root 4096 Sep  2 09:52 hba_monitor_version
-r--r--r--  1 root root 4096 Sep  2 09:52 host_busy
-r--r--r--  1 root root 4096 Sep  2 09:52 max_channel
-r--r--r--  1 root root 4096 Sep  2 09:52 max_id
-r--r--r--  1 root root 4096 Sep  2 09:52 model
-r--r--r--  1 root root 4096 Sep  2 07:35 proc_name
-rw-r--r--  1 root root 4096 Sep  2 09:52 reset_host
--w-------  1 root root 4096 Sep  2 09:52 scan
-r--r--r--  1 root root 4096 Sep  2 09:52 serial_number
-r--r--r--  1 root root 4096 Sep  2 09:52 sg_tablesize
-r--r--r--  1 root root 4096 Sep  2 09:52 unchecked_isa_dma
-r--r--r--  1 root root 4096 Sep  2 09:52 unique_id
-r--r--r--  1 root root 4096 Sep  2 09:52 vendor
[root at slalnx11 host0]# more *
::::::::::::::
cmd_per_lun
::::::::::::::
256

*** device: directory ***

::::::::::::::
flags
::::::::::::::
SAI_READ_CAPACITY_16
SCSI_HAS_DUMP
::::::::::::::
hba_bios_version
::::::::::::::
5.2-0[11844]
::::::::::::::
hba_kernel_version
::::::::::::::
5.2-0[11844]
::::::::::::::
hba_monitor_version
::::::::::::::
5.2-0[11844]
::::::::::::::
host_busy
::::::::::::::
0
::::::::::::::
max_channel
::::::::::::::
0
::::::::::::::
max_id
::::::::::::::
255
::::::::::::::
model
::::::::::::::
8k
::::::::::::::
proc_name
::::::::::::::
aacraid
::::::::::::::
reset_host
::::::::::::::
0x0
scan: Permission denied
::::::::::::::
serial_number
::::::::::::::
4023279
::::::::::::::
sg_tablesize
::::::::::::::
65
::::::::::::::
unchecked_isa_dma
::::::::::::::
0
::::::::::::::
unique_id
::::::::::::::
0
::::::::::::::
vendor
::::::::::::::
ServeRAID


# cd /sys/class/fc_host/host3     # there's only host3 & no other host*
folders
# more port_id
0x020800
# pwd
/sys/class/fc_host/host3



More information about the redhat-list mailing list