Start a Conversation

Unsolved

This post is more than 5 years old

M

1865

March 23rd, 2009 20:00

Difference between host id and LUN id

hi team I am a new bee in storage. I want to know the difference between LUN id and host id. Is it possible to get the host id from host side when I have a lUN id. if so what will be the command to get that(OS is Solaris 8). what all information do we need to give to SA when we create a LUN. Is host id any way related to host ie is it assigned by array or will get the data from host to do it? Is there any Relation between host id and lun id like hexa decimal conventions?

thanks

1 Rookie

 • 

20.4K Posts

March 23rd, 2009 20:00

LUN id is internal name of a LUN inside of Clariion while you can think of host id as a SCSI id. Each storage group on Clariion can have 256 addresses (0-255), so when you present new LUN to your storage group Navisphere will assign an available host id or you can assign it manually. Once you present the LUN to your host you can query it by running inq utility. You can download it from here:

ftp://ftp.emc.com/pub/symm3000/inquiry/

inq has a couple of options that will allow you to display LUN id (inq -clar_wwn). Do you have persistent binding configured on the host (sd.conf and lpfc.conf/qla.conf) ?

217 Posts

March 23rd, 2009 20:00

yes I have all those file in the system

1 Rookie

 • 

20.4K Posts

March 23rd, 2009 20:00

do you know if they have been configured to reflect Clariion SP's WWNs ? Specifically if you use Emulex HBAs then your lpfc.conf should contain WWNs for your Clariion storage processors, if you are using Qlogic HBAs ..then these entries would be in qla.conf. Are you using PowerPath or Veritas DMP ?

217 Posts

March 23rd, 2009 21:00

we are using Emulex and have updated lpfc.conf file with WWPN of each SP's

217 Posts

March 23rd, 2009 21:00

power path.

1 Rookie

 • 

20.4K Posts

March 24th, 2009 05:00

is this the first LUN being presented from Clariion ? Did you reboot after you modified lpfc.conf ..also did you modify sd.conf as well ? Here is what my lpfc.conf looks like:

fcp-bind-WWPN="55006016130602321:lpfc0t10",
              "5006016930602321:lpfc0t11",
              "5006016330602321:lpfc1t10",
              "5006016b30602321:lpfc1t11";


i have two HBAs in the system and each HBA is zoned to SPA and SPB. You control the target id, in my case i used 10 and 11. Controller number you can find from lputil utility. Now here is my sd.conf:

# lpfc0 - target 10                                 
# -----------------                                 
 
name="sd" parent="lpfc" target=10 lun=0 hba="lpfc0";
 
name="sd" parent="lpfc" target=10 lun=1 hba="lpfc0";
 
name="sd" parent="lpfc" target=10 lun=2 hba="lpfc0";
 
name="sd" parent="lpfc" target=10 lun=3 hba="lpfc0";
 
name="sd" parent="lpfc" target=10 lun=4 hba="lpfc0";
 
name="sd" parent="lpfc" target=10 lun=5 hba="lpfc0";
 
name="sd" parent="lpfc" target=10 lun=6 hba="lpfc0";
 
etc .etc .etc
 
name="sd" parent="lpfc" target=10 lun=255 hba="lpfc0"; 
 
# lpfc0 - target 11                                 
# -----------------                                 
 
name="sd" parent="lpfc" target=11 lun=0 hba="lpfc0";
 
name="sd" parent="lpfc" target=11 lun=1 hba="lpfc0";
 
name="sd" parent="lpfc" target=11 lun=2 hba="lpfc0";
 
name="sd" parent="lpfc" target=11 lun=3 hba="lpfc0";
 
name="sd" parent="lpfc" target=11 lun=4 hba="lpfc0";
 
name="sd" parent="lpfc" target=11 lun=5 hba="lpfc0";
 
name="sd" parent="lpfc" target=11 lun=6 hba="lpfc0";
 
etc etc etc
 
name="sd" parent="lpfc" target=11 lun=255 hba="lpfc0";
 
# lpfc1 - target 10                                 
# -----------------                                 
 
name="sd" parent="lpfc" target=10 lun=0 hba="lpfc1";
 
name="sd" parent="lpfc" target=10 lun=1 hba="lpfc1";
 
name="sd" parent="lpfc" target=10 lun=2 hba="lpfc1";
 
name="sd" parent="lpfc" target=10 lun=3 hba="lpfc1";
 
name="sd" parent="lpfc" target=10 lun=4 hba="lpfc1";
 
name="sd" parent="lpfc" target=10 lun=5 hba="lpfc1";
 
name="sd" parent="lpfc" target=10 lun=6 hba="lpfc1";
 
etc etc etc 
 
name="sd" parent="lpfc" target=10 lun=255 hba="lpfc1";
 
# lpfc1 - target 11                                 
# -----------------                                 
 
name="sd" parent="lpfc" target=11 lun=0 hba="lpfc1";
 
name="sd" parent="lpfc" target=11 lun=1 hba="lpfc1";
 
name="sd" parent="lpfc" target=11 lun=2 hba="lpfc1";
 
name="sd" parent="lpfc" target=11 lun=3 hba="lpfc1";
 
name="sd" parent="lpfc" target=11 lun=4 hba="lpfc1";
 
etc etc etc 
 
name="sd" parent="lpfc" target=11 lun=255 hba="lpfc1";
 


after you have modified your files and rebooted the host (reboot -- -r), presented the LUN(s), you will need to run these commands:

devfsadm -v
powercf ¿q
powermt config
powermt save

now if you run format ..you should see your new devices.
No Events found!

Top