From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97265714511716.tru64-unix-managers.marc@archive.invalid> From: "R. Richard Hirtler" Date: Fri, 27 Oct 2000 14:31:24 +0000 To: tru64-unix-managers Subject: SUMMARY: Question about array controllers and Tru64 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97265714511716 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--B_3055487485_308269" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3055487485_308269 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Thanks to everyone who replied. SOLUTION: (remember D0 =3D D000) (oh also where you have LUN that is actual unit number) so: unit number =3D D0 =3D D000 =3D Dx0y rz =3D rz(y as letter)( ( 8 * bus number) + x ) where (y as letter) means if it is 0 then letter is a, 1=3Db,2=3Dc,3=3Dd,4=3De,5=3Df,6=3Dg,7=3Dh So D0 =3D rza( (8*busnumber) + 0 ) In this case I'm guessing that your HSZ is sitting on SCSI bus 5. So to continue D1 =3D D001 so rzb( ( 8* 5) + 0 ) =3D rzb40 D102 is rzc( ( 8 * 5 ) + 1 ) =3D rzc41 Here is the solution worded differently: It's based on bus number first, then the D# is the target number, then you apply the lun. Formula is (Bus * 8) + SCSI target ID. Throw your LUN in and you have it. So for your example, rz40 is on bus 5 so; =20 D0 ( 5*8 ) + 0 =3D rz40 40 + 0 =3D 40 =3Drz40 =20 D102 ( 5 * 8 ) +1 =3D 41 =3D rz41 add a LUN of 2 ({ 0...7} =3D { a...h }) and you have rzc41 -Ric -----=20 R. Richard Hirtler Senior Consultant/Northeast Region hirtler@colltech.com Collective Technologies ----- It is the province of knowledge to speak, and it is the privilege of wisdom to listen. =8BOliver Wendell Holmes, Sr. ORIGINAL QUESTION: >=20 > How does Tru64 map logical units on an array controller to a UNIX device? >=20 > I have a HSZ70 and a 8200 running 4.0F. The HSZ70 has the following unit= s > defined: >=20 > LUN Uses > D0 M0 > D1 S1 > D100 S100 > D101 M101 > D102 M102 >=20 > These LUN devices map to rz devices in /dev. I understand that MAKEDEV i= s > used to create the rz devices. However, I am unclear on how the mapping = is > defined. >=20 > For example, D0 maps to rz40. D1 maps to rzb40. The syntax for MAKEDEV = might > be: >=20 > # /dev/MAKEDEV rz40 rzb40 >=20 > But how does the system =B3know=B2 which LUN to map to which device? >=20 > TIA, >=20 > -Ric > -----=20 > R. Richard Hirtler Senior Consultant/Northeast Regio= n > hirtler@colltech.com Collective Technologies > ----- > It is the province of knowledge to speak, and it is the privilege of wisd= om to > listen. =8BOliver Wendell Holmes, Sr. >=20 >=20 >=20 >=20 >=20 --B_3055487485_308269 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable SUMMARY: Question about array controllers and Tru64 Thanks to everyone who replied.

SOLUTION:

    (remember D0 =3D D000)
    (oh also where you have LUN that is actual unit num= ber) so:
    unit number =3D D0 =3D D000 =3D Dx0y
    rz =3D rz(y as letter)( ( 8 * bus number) + x )
    where (y as letter) means if it is 0 then letter is= a,
    1=3Db,2=3Dc,3=3Dd,4=3De,5=3Df,6=3Dg,7=3Dh
    So D0 =3D rza( (8*busnumber) + 0 )

    In this case I'm guessing that your HSZ is sitting = on SCSI bus 5.

    So to continue D1 =3D D001 so
    rzb( ( 8* 5) + 0 ) =3D rzb40
    D102 is
    rzc( ( 8 * 5 ) + 1 ) =3D rzc41

Here is the solution worded differently:

    It's based on bus number first, then the D# is the = target number, then you
    apply the lun.  Formula is (Bus * 8) + SCSI ta= rget ID.  Throw your LUN in
    and you have it.  So for your example, rz40 is= on bus 5 so;
 
    D0
    ( 5*8 ) + 0 =3D rz40
    40    + 0 =3D 40 =3Drz40
 
    D102
    ( 5 * 8 ) +1 =3D 41 =3D rz41 add a LUN of 2 ({ 0...7} =3D= { a...h }) and you have
    rzc41

-Ric
-----
R. Richard Hirtler          &n= bsp;           Senior= Consultant/Northeast Region
hirtler@colltech.com          =        Collective Technologies
-----
It is the province of knowledge to speak, and it is the privilege of wisdom= to listen.   —Oliver Wendell Holmes, Sr.


ORIGINAL QUESTION:


How does Tru64 map logical units on an array controller to a UNIX device?
I have a HSZ70 and a 8200 running 4.0F.  The HSZ70 has the following u= nits defined:

LUN            &n= bsp;            =             &nbs= p;Uses        
D0            &n= bsp;            =             &nbs= p;M0
D1             =             &nbs= p;          S1
D100            &nbs= p;            &n= bsp;            =  S100
D101            &nbs= p;            &n= bsp;           M101 D102            &nbs= p;            &n= bsp;           M102
These LUN devices map to rz devices in /dev.  I understand that MAKEDE= V is used to create the rz devices.  However, I am unclear on how the m= apping is defined.

For example, D0 maps to rz40.  D1 maps to rzb40.  The syntax for = MAKEDEV might be:

    # /dev/MAKEDEV rz40 rzb40

But how does the system “know” which LUN to map to which device= ?

TIA,

-Ric
-----
R. Richard Hirtler          &n= bsp;           Senior= Consultant/Northeast Region
hirtler@colltech.com          =        Collective Technologies
-----
It is the province of knowledge to speak, and it is the privilege of wisdom= to listen.   —Oliver Wendell Holmes, Sr.





--B_3055487485_308269--