Operating System - Linux
1828775 Members
2465 Online
109985 Solutions
New Discussion

LUNs assigned to a linux box

 
sen_ux
Valued Contributor

LUNs assigned to a linux box

How can I see the LUNs assigned to a linux box.?Dont want to see all the paths..Only the actual LUNs.

Thanks
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: LUNs assigned to a linux box

Shalom,

Once drivers for the HBA are installed and LUNS are assigned via WWN, fdisk -l should show valid luns as assigned disks.

SEP
hpuxadmin on gtalk
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
sen_ux
Valued Contributor

Re: LUNs assigned to a linux box

fdisk -l shows many devices, whereas my actuall assigned LUNs are less.
I ve Red-Hat multipath installed and fdisk shows many mpath (dm) devices.but actuall LUNs are less.
Matti_Kurkela
Honored Contributor

Re: LUNs assigned to a linux box

Run "multipath -l" and verify that each multipath device actually has multiple paths associated with it. If it does not detect the multiple paths, something is missing from either the /etc/multipath.conf file or the configuration of the SAN storage system.

The multipath subsystem reads the disk identification information presented by the storage system and uses it to determine which paths refer to the same LUN. Unfortunately, there are multiple manufacturer-specific methods to identify LUNs. These methods were developed before the "standard" way (unique WWIDs for each LUN) was completely standardized. For backwards compatibility, the storage systems can be configured to present the disk identification info in many ways.

If the identification info is not in the correct form, the multipath system in Linux (or the native multipathing of HP-UX 11.31) cannot detect the LUNs correctly. In that case, the system will usually assume each path is a separate LUN to avoid data corruption.

Ask your SAN administrator to verify that the storage system is configured to assign an unique WWID for each LUN. There may also be a "host type" setting in the storage system for each HBA the storage system presents LUNs to: make sure it is set correctly.

MK
MK
Hakki Aydin Ucar
Honored Contributor

Re: LUNs assigned to a linux box

The device number or logical unit number (LUN) is represented by "d#". It is usually the number 0.

in Linux RedHat , following is good way to see:

cat /proc/scsi/scsi | less