EMC: SUN disk configuration

Title:EMC: SUN disk configuration
Author:Douglas O’Leary <dkoleary@olearycomputers.com>
Description:How to make sun systems talk to EMC Symmetrix
Date created:06/2001
Date updated:07/2005
Disclaimer:Standard: Use the information that follows at your own risk. If you screw up a system, don’t blame it on me...

EMC disks like to use luns vs scsi target numbers. SUN doesn’t normally use lun numbers so, to make the two talk together, you have to edit the /kernel/drv/sd.conf file as follows:

Normal, unedited file:

name="sd" class="scsi"
        target=0 lun=0;

name="sd" class="scsi"
        target=1 lun=0;

Edited file:

name="sd" class="scsi"
        target=0 lun=0;
name="sd" class="scsi"
        target=0 lun=1;
name="sd" class="scsi"
        target=0 lun=2;
         .....
name="sd" class="scsi"
        target=0 lun=8;

name="sd" class="scsi"
        target=1 lun=0;
name="sd" class="scsi"
        target=1 lun=1;
name="sd" class="scsi"
        target=1 lun=2;
         .....
name="sd" class="scsi"
        target=1 lun=8;

Add the luns for each of the EMC targets. Limit the targets to the EMC disks only, however, as the extra luns will dramatically increase the boot times on the system.

If you’re using more than 9 luns, make sure you use the hexadecimal notation for the lun numbers:

lun=0xa; lun=0xb; lunc=0xc;

and ensure each lun line ends in a semicolon.