Operating System - Linux
1823986 Members
4050 Online
109667 Solutions
New Discussion юеВ

LUN allocation & detecting the LUNs st OS level

 
ASIFKHAN
Frequent Advisor

LUN allocation & detecting the LUNs st OS level

Hi Friends,

I have done zoning of one dell server with EVA8000 sucessfully and thereafter i assigned 3 LUNs to these Hosts.

OS running at this host is RHEL5.3 now i am not able to detect the LUNs which have been assigned to this host OS that i can create volume groups & Fielsystem & all...
So anyone of you is aware of how to detect the LUNS at RHEL 5.3 level.what could be the device file name for it ??
I tried dmesg but i couldn't get any success.

Thanks
MAK
9 REPLIES 9
Michal Kapalka (mikap)
Honored Contributor

Re: LUN allocation & detecting the LUNs st OS level

hi,

you have two possibilities, if you reboot the server the new assigned LUNS should be should be presented to the server, or you could do it online.

rescan linux scsi bus for new san luns without reboot

http://www.unixunderground.com/blog/?p=48

http://kbase.redhat.com/faq/docs/DOC-3942

mikap
AnthonySN
Respected Contributor

Re: LUN allocation & detecting the LUNs st OS level

first reboot.
if the luns done appear then recheck your zoning.
Basheer_2
Trusted Contributor

Re: LUN allocation & detecting the LUNs st OS level

Dear Khan Saab,

This is what I did on my SUSE Linux v 10, SP2

1) downloaded the qloginc drivers (I have qlogic HBA's , HP DL380G5)

2) Installed the rpm using yast (similar to old rpm -i)

3) added zoning info to the swich

4) Also downloaded the scli utility from the qlogic

5) install the scli utility (SANsurferCLI)

then do

scli ( menu driven)
badaim
Occasional Contributor

Re: LUN allocation & detecting the LUNs st OS level

Hi,

Run command lsscsi and show output

Re: LUN allocation & detecting the LUNs st OS level

Hi,

I suggest to use the device mapper multipath package (HPDM) from HP, it's not only a failover solution but an active-active multipathing SAN driver.

http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01475580тМй=en&cc=us&taskId=101&prodSeriesId=3559651&prodTypeId=12169

Cheers
- Thomas
Basheer_2
Trusted Contributor

Re: LUN allocation & detecting the LUNs st OS level

Salaams Khan Saab,

I just did this on SUSE and EVA8000.

chkconfig --list multipathd
multipath -ll

ls /dev/mapper

let me know if you need the detail instructions.

ASIFKHAN
Frequent Advisor

Re: LUN allocation & detecting the LUNs st OS level


Thanks for replies..

See i cannot reboot this server sue to unaivaliablity of downtime.
Second thing zoning is ok since i am able to see some of the LUNs from EVA8K in /proc/scsi/scsi file.


Waale-kum-Asslam Basheer,

Can you please give some more details about SANsurferCLI.

chkconfig --list multipathd:
OP:
[root@bpcides ~]# chkconfig --list multipathd
multipathd 0:off 1:off 2:off 3:on 4:off 5:on 6:off

[root@bpcides ~]# ls /dev/mapper
control VolGroup00-LogVol00 VolGroup00-LogVol01 VolGroup00-LogVol02



Dear badaim: tried to run lsscsi & got the output :
[root@bpcides ~]# lsscsi
-bash: lsscsi: command not found


And also HPDM is installed & after its installation only we are getting the below messgaes in dmesg :

scsi 4:0:3:0: Attached scsi generic sg11 type 12
device-mapper: multipath round-robin: version 1.0.0 loaded
device-mapper: table: 253:3: multipath: error getting device
device-mapper: ioctl: error adding target to table


Still issue is not resolved.

Thanks:
Mohd Asif Khan
badaim
Occasional Contributor

Re: LUN allocation & detecting the LUNs st OS level

OK, then try to install packet lsscsi from rpm, search on rpm.pbone.net or other rpm sites or try to install from yum repos. There is also sg3-utils package, it gives a lot of information when you type sg_scan -i.

First of all try:

yum install lsscsi*
yum install sg3-utils

If fails search by rpm sites.

Re: LUN allocation & detecting the LUNs st OS level

Hi MAK,

Please post output of the following commands:

# dmsetup ls --target=multipath

# multipath -v2

# multipath -ll


Cheers
- Thomas