Solaris Luns & Persistant Bindings Guide

 

 

LPFC.conf Files:

 

Located in /kernel/drv

 

Lpfc file holds the persistant bindings from HBA to storage.  Main section to worry about is as follows;

 

fcp-bind-WWPN="5006048accd20040:lpfc0t16",

                   "5006048accd20041:lpfc1t17",

                    "50060160306024ce:lpfc0t18",

                    "50060168306024ce:lpfc1t19";

 

 

Above shows 2 HBA’s in the host (lpfc0 & lpfc1) and they are persistently bound to 2 ports of a Symmetrix and 2 ports of a Clariion.  The “t16” etc is the target which the host will see them as, this can be set to anything you like as long as its different for each FA/Storage Port.  Target numbers need to be sequential incremented (16,17,18 NOT 17,16,18) through the file.

 

 

Sd.conf Files:

 

Located in /kernel/drv

 

Sd.conf file links to the lpfc.conf file.  The target links with the target number set in lpfc.conf and the lun number is the number of the lun as the storage presents it.

 

# Symmetrix Luns

name="sd" parent="lpfc" target=16 lun=161;

name="sd" parent="lpfc" target=16 lun=162;

name="sd" parent="lpfc" target=17 lun=161;

name="sd" parent="lpfc" target=17 lun=162;

 

# Symmetrix VCM Luns

name="sd" parent="lpfc" target=16 lun=0;

name="sd" parent="lpfc" target=17 lun=0;

 

# Clariion Luns

name="sd" parent="lpfc" target=18 lun=0;

name="sd" parent="lpfc" target=18 lun=1;

name="sd" parent="lpfc" target=19 lun=0;

name="sd" parent="lpfc" target=19 lun=1;

 

The above example has a section for Symmetrix luns and Clariion luns.  In the lpfc.conf file one of the Symmetrix ports was defined as target 16 (t16), the Symmetrix was masked to present out luns 161 & 162 (Hex numbers on Sym 0A1 = 161), there must be a separate entry for each lun presented.

 

  

**********Symmetrix Notes***********

 

Must not forget to convert the Symmetrix lun numbers from Hex to Decimal;

 

                                                     HEX:                                              DEC:

E.G.       Sym lun;                          A01       =          Host lun;             161

             Sym lun;              A02        =           Host lun; 162

  

 

Formatting & Mounting Luns:

 

Partition Luns:

 

Once luns are presented and Powerpath is installed, run format.

Select disk number; Solaris will tell you there is no label, type “y” and label it.

Press “p” for partition; then “p” to show partition information.

Press “q” to quit back to main format, then “s” to save changes, press “return” at save prompt

Press “q” to quit from format.

 

 New File System:

 

newfs /dev/dsk/[Disk Device]s2

 

E.G.

 

Newfs /dev/dsk/c3t16d162s2

 

The above shows Controller 3 (lpfc0), Target 16 (Symmetrix), Device 162 (Symmetrix lun 162 or 0A1), the “s2” has to be put on the end to signify the partition, in this case “s2” is the whole disk.

 

Get the Disk Device from running the format command.

 

Say yes when prompted to write new file system.

 

 

Mount File System:

 

Make a new mount point.

 

Mkdir /test

 

Mount /dev/dsk/[Disk Device]s2 /test

 

E.G.

 

Mount /dev/dsk/c3t16d162s2 /test

 

The above will mount Symmetrix lun 162 to a /test mount point.

+ Recent posts