help regarding SCG on Solaris Sparc

From: Santosh Kalekar (santosh@calsoftinc.com)
Date: Fri Mar 26 2004 - 08:48:07 EST


Hi ,
I'm using the SCG driver on solaris sparc 8 machine . I have the SCSI disks
connected through FiberChannel .
When I installed the 32 bit version of scg , it gave me the error as ,
Warning: Driver (scg) successfully added to system but failed to attach

So as per the link (http://www.sunmanagers.org/archives/2000/0364.html) I
installed the 64 bit version , and it seems to be working now .

The number of LUNs are configured from 0-19 in scg.conf and and 21 in sd.conf
.

The ls -l /dev/scg* shows scg0 to scg39 under /dev as follows .
ls -l /dev/scg*

lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg0 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,0:
lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg1 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,1:
lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg10 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,a:
lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg11 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,b:
lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg12 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,c:
lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg13 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,d:
lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg14 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,e:
lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg15 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,f:
lrwxrwxrwx 1 root root 51 Mar 23 2004 /dev/scg16 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,10:
lrwxrwxrwx 1 root root 51 Mar 23 2004 /dev/scg17 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,11:
lrwxrwxrwx 1 root root 51 Mar 23 2004 /dev/scg18 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,12:
lrwxrwxrwx 1 root root 51 Mar 23 2004 /dev/scg19 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,13:
lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg2 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,2:
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg20 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,0:
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg21 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,1:
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg22 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,2:
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg23 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,3:
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg24 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,4:
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg25 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,5:
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg26 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,6:
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg27 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,7:
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg28 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,8:
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg29 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,9:
lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg3 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,3:
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg30 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,a:
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg31 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,b:
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg32 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,c:
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg33 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,d:
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg34 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,e:
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg35 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,f:
lrwxrwxrwx 1 root root 53 Mar 23 2004 /dev/scg36 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,10:
lrwxrwxrwx 1 root root 53 Mar 23 2004 /dev/scg37 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,11:
lrwxrwxrwx 1 root root 53 Mar 23 2004 /dev/scg38 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,12:
lrwxrwxrwx 1 root root 53 Mar 23 2004 /dev/scg39 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,13:
lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg4 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,4:
lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg5 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,5:
lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg6 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,6:
lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg7 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,7:
lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg8 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,8:
lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg9 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,9:

-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-------------------------------------
The format shows only 21 luns as expected .
Searching for disks...done

c1t6d0: configured with capacity of 498.00MB
c1t6d1: configured with capacity of 498.00MB
c1t6d2: configured with capacity of 498.00MB
c1t6d3: configured with capacity of 498.00MB
c1t6d4: configured with capacity of 498.00MB
c1t6d5: configured with capacity of 498.00MB
c1t6d6: configured with capacity of 498.00MB
c1t6d7: configured with capacity of 498.00MB
c1t6d8: configured with capacity of 498.00MB
c1t6d9: configured with capacity of 498.00MB
c1t6d10: configured with capacity of 498.00MB
c1t6d11: configured with capacity of 498.00MB
c1t6d12: configured with capacity of 498.00MB
c1t6d13: configured with capacity of 498.00MB
c1t6d14: configured with capacity of 498.00MB
c1t6d15: configured with capacity of 498.00MB
c1t6d16: configured with capacity of 498.00MB
c1t6d17: configured with capacity of 498.00MB
c1t6d18: configured with capacity of 498.00MB
c1t6d19: configured with capacity of 498.00MB
c1t6d20: configured with capacity of 498.00MB

AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <ST39120A cyl 17660 alt 2 hd 16 sec 63>
          /pci@1f,0/pci@1,1/ide@3/dad@0,0
       1. c1t6d0 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,0
       2. c1t6d1 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,1
       3. c1t6d2 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,2
       4. c1t6d3 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,3
       5. c1t6d4 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,4
       6. c1t6d5 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,5
       7. c1t6d6 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,6
       8. c1t6d7 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,7
       9. c1t6d8 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,8
      10. c1t6d9 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,9
      11. c1t6d10 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,a
      12. c1t6d11 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,b
      13. c1t6d12 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,c
      14. c1t6d13 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,d
      15. c1t6d14 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,e
      16. c1t6d15 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,f
      17. c1t6d16 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,10
      18. c1t6d17 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,11
      19. c1t6d18 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,12
      20. c1t6d19 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,13
      21. c1t6d20 <DotHill-SANnetIIFC-327M cyl 498 alt 2 hd 64 sec 32>
          /pci@1f,0/pci@1/fibre-channel@1,1/sd@6,14

-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-------------------------------------
Here is the scg.conf

name="scg" class="scsi"
    target=6 lun=0;
name="scg" class="scsi"
    target=6 lun=1;
name="scg" class="scsi"
    target=6 lun=2;
name="scg" class="scsi"
    target=6 lun=3;
name="scg" class="scsi"
    target=6 lun=4;
name="scg" class="scsi"
    target=6 lun=5;
name="scg" class="scsi"
    target=6 lun=6;
name="scg" class="scsi"
    target=6 lun=7;
name="scg" class="scsi"
    target=6 lun=8;
name="scg" class="scsi"
    target=6 lun=9;
name="scg" class="scsi"
    target=6 lun=10;
name="scg" class="scsi"
    target=6 lun=11;
name="scg" class="scsi"
    target=6 lun=12;
name="scg" class="scsi"
    target=6 lun=13;
name="scg" class="scsi"
    target=6 lun=14;
name="scg" class="scsi"
    target=6 lun=15;
name="scg" class="scsi"
    target=6 lun=16;
name="scg" class="scsi"
    target=6 lun=17;
name="scg" class="scsi"
    target=6 lun=18;
name="scg" class="scsi"
    target=6 lun=19;

-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-------------------------------------
I'm bit confused between
lrwxrwxrwx 1 root root 50 Mar 23 2004 /dev/scg0 ->
../devices/pci@1f,0/pci@1/fibre-channel@1/scg@6,0:
and
lrwxrwxrwx 1 root root 52 Mar 23 2004 /dev/scg20 ->
../devices/pci@1f,0/pci@1/fibre-channel@1,1/scg@6,0:

1 ) When I try to write_scsi on "target 6 LUN 0" using scg0 as shown above
, it gives me the error , but succeeds using scg20 .
I'm a new to solaris , so just want to know what's the difference between
fibre-channel@1 and fibre-channel@1,1 .
The format command only shows fibre-channel@1,1 .

2) In the SCG skeleton sample I saw the scsi_cmd structure . It has only 3
bits for specifying the LUN . Then how the SCG driver creates /dev/scg0 to
/dev/scg34 .
    And how can I write on LUN which are greater than 8 ?

3) Does SCG create /dev/scgxxx per LUN ? I mean if I configure scg.conf for 3
luns , does it create /dev/scg0 to scg2 ?

4) Is there any IOCTL which SCG provides to query the hba , LUN and target ?

5) How does the SCG driver create the /dev/scg if local SCSI disks has
multiple LUN and targets ?

Are there any other steps which I am missing to configure the SCG ?
Waiting for your reply
Thanks in advance .

Regards
-Santosh
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:28:21 EDT