Hi Ron,
First, I apologize if the howto document was not clear enough,
I will try to learn from what was not understood, and possibly
make a second edition.
You said that:
> We added to TCPIP1 and TCPIP2 DTCPARMS with the Tags
>
> :ATTACH.0500 as 0726, 0440 as 727
>
> After restarting the IP's the CTCs are defined but give
> IO errors.
>
> We may be (or actually are) totally
> confused about which device addresses from the IOCP
> actually can be used to connect LPAR1 (ESA11) to LPAR3 (IFL).
You are definitely on the right track. :-)
Before we start checking other things, I just want to be sure -
did you remember to actually get an ESCON fiber line
(or whatever they are called) and plug one end of it in to the socket
defined as CHPID 02, and the other end in the one defined as
CHPID 03? Sorry... but I have to ask that. <g> (Like the washing machine
service guy asked me to *check* that the machine is plugged in).
Are the addresses in the 400-45F and 500-55F range varied online?
If so, lets look at what you defined in your IOCP:
CHPID PATH=02,TYPE=CNC,PARTITION=(ESA11,ESA12,IFL),SHARED
CHPID PATH=03,TYPE=CTC,PARTITION=(ESA11,ESA12,IFL),SHARED
Ok, all CUs and DEVs defined on channel 02 and channel 03 will be
accessable from all three LPARs. So we will have something that 'looks like'
two separate systems, each with 3 LPARs, talking to each other:
SYS-A SYS-B
|--------| |--------|
| ESA11 | | ESA11 |
|--------| |--------|
| ESA12 | | ESA12 |
|--------| |--------|
| IFL | | IFL |
+--------+ +--------+
| | 03| |
| +-----------------+ |
|02 |
+---------------------------+
Use monospace font for the diagram, or paste into monospace editor.
I am calling the 02 side SYS-A, and the 03 side SYS-B.
You are trying to connect LPAR 1 to LPAR 3, but as
we see in the diagram, there are two ways to do this:
LPAR1(SYS-A) <----> LPAR3(SYS-B) and
LPAR1(SYS-B) <----> LPAR3(SYS-A)
(This really means you didn't follow the howto,
which would have removed redundant connections,
but never mind.. its your HMC storage) ;-)
>From your parm line:
ATTACH.0500 as 0726, 0440 as 727
I understand that you are visualizing the first method
I showed just now. Let's see...
To connect *any* LPAR on SYS-B to LPAR1 on SYS-A,
we need a CU whose CUADD is "1". That is because the
CUADD value means the LPAR number of the LPAR
on the target system. The control unit on SYS-B which has
CUADD=1 is 501:
CNTLUNIT CUNUMBR=0501,PATH=(03),UNIT=SCTC,UNITADD=((00,32)),CUADD=1
The devices defined on this CU are 500-51F:
IODEVICE ADDRESS=(0500,32),CUNUMBR=(0501),UNITADD=00, X
UNIT=SCTC,PART=(ESA11,ESA12,IFL)
So now we know that the IFL LPAR will need to use two devices
in the 500-51F range, in order to communicate with the ESA11 LPAR.
Now let's look at the other end of the connection.
To connect *any* LPAR on SYS-A to LPAR3 on SYS-B,
we need a CU whose CUADD is "3". The control unit on
SYS-A which has CUADD=3 is 403:
CNTLUNIT CUNUMBR=0403,PATH=(02),UNIT=SCTC,UNITADD=((00,32)),CUADD=3
Its devices are 440-45F:
IODEVICE ADDRESS=(0440,32),CUNUMBR=(0403),UNITADD=00, X
UNIT=SCTC,PART=(ESA11,ESA12,IFL)
The ESA11 LPAR will need to use two devices in the range 440-45F
in order to communicate with IFL.
Now we just need to pick two from each range, with the condition
that they *must have the same unit address value*.
So, 440 (in ESA11) connects to 500 (in IFL),
441 to 501, etc, through 45E to 51E and
45F to 51F.
Using two first level TCPs, one in each LPAR,
you can just attach 440-441 and 500-501.
If you prefer, ATT 440 as 726 and ATT 441 as 727
in ESA11, and 500 and 501 in IFL.
Hope this helps,
Shimon
> Cross Posted to IBMTCP-L
>
> -----------
>
> We are trying to get two TCPIP stacks in separate LPARs to
> talk to each other over a CTC link.
>
> We have our CTCs defined in our IOCP as shown at the end of this posting
> (We took our clues from "VM New User How To Defining ESCON CTCs Between
> LPARs" by Shimon Lebowitz.)
>
> Before trying to get the LPARs to talk, we checked things out on a
> second level machine. Things worked OK.
>
> ------------- Connecting second level tcpip to first level tcpip ----
> ------------- over CTCs ----
>
> <<<<<<<< TCPIP profile in first level tcpip
>
> ; DEVICE AND LINK from TCPIP1
> DEVICE CTCVDEVA CTC 726
> LINK CTCVLNKA CTC 0 CTCVDEVA
> HOME
> xxx.yyy.zz.10 CTCVLNKA
> GATEWAY
>
> xxx.yyy.zz.9 = CTCVLNKA 1500 HOST
> START CTCVDEVA
>
>
> <<<<<<<<<<< TCP/IP profile in second level tcpip
>
> ; DEVICE AND LINK from TCPIP2
> DEVICE CTCVDEVA CTC 726
> LINK CTCVLNKA CTC 1 CTCVDEVA
> HOME
> xxx.yyy.zz.9 CTCVLNKA
> GATEWAY
>
> xxx.yyy.zz.10 = CTCVLNKA 1500 HOST
> START CTCVDEVA
>
> <<<<<<<<<<< Commands issued to connect the two TCP/IP stacks
>
> First level TCPIP (TCPIP1)
>
> Define ctc 726
> Define CTC 727
>
> Second level VM (TESTVM)
>
> Define CTC 726
> Define CTC 727
>
> Couple 726 TCPIP1 726
> Couple 727 TCPIP1 727
>
> Second Level TCPIP stack (TCPIP2)
>
> ATTACH 726 TCPIP2
> ATTACH 727 TCPIP2
>
> Start TCPIP's and things were communicating
>
>
>
> Then we tried the LPARS. The Second Level VM IPLed fine in the LPAR
> and TCPIP2 start fine.
>
> We changed the SYSTEM DTCPARMS files in both TCPIP1 and TCPIP2
>
> to Attach the LPAR CTCs.
>
> We added to TCPIP1 and TCPIP2 DTCPARMS with the Tags
>
> :ATTACH.0500 as 0726, 0440 as 727
>
> After restarting the IP's the CTCs are defined but give
> IO errors.
>
> We may be (or actually are) totally
> confused about which device addresses from the IOCP
> actually can be used to connect LPAR1 (ESA11) to LPAR3 (IFL).
> We thought we understood the Lebowitz notes (good examples of
> defining the IOCP) but there were no
> examples of how to use the IOCP CTCs after they are
> defined in the IOCP so we did some guessing.
>
>
> Any pointers on where to get a handle on how to do this would
> be appreciated.
>
> Ron Greve
> SDSU Admin and Research Computing
> [EMAIL PROTECTED]
>
>
>
>
>
>
> <<<<<<<<<<<<< IOCP used to define CTCs between LPARS)
> <<<<<<<<<<<<< Reference VNUH-0001 by Shimon Lebowitz
>
> CHPID PATH=02,TYPE=CNC,PARTITION=(ESA11,ESA12,IFL),SHARED
> CHPID PATH=03,TYPE=CTC,PARTITION=(ESA11,ESA12,IFL),SHARED
> CNTLUNIT CUNUMBR=0401,PATH=(02),UNIT=SCTC,UNITADD=((00,32)),CUADD=1
> CNTLUNIT CUNUMBR=0501,PATH=(03),UNIT=SCTC,UNITADD=((00,32)),CUADD=1
> CNTLUNIT CUNUMBR=0402,PATH=(02),UNIT=SCTC,UNITADD=((00,32)),CUADD=2
> CNTLUNIT CUNUMBR=0502,PATH=(03),UNIT=SCTC,UNITADD=((00,32)),CUADD=2
> CNTLUNIT CUNUMBR=0403,PATH=(02),UNIT=SCTC,UNITADD=((00,32)),CUADD=3
> CNTLUNIT CUNUMBR=0503,PATH=(03),UNIT=SCTC,UNITADD=((00,32)),CUADD=3
> IODEVICE ADDRESS=(0400,32),CUNUMBR=(0401),UNITADD=00, X
> UNIT=SCTC,PART=(ESA11,ESA12,IFL)
> IODEVICE ADDRESS=(0420,32),CUNUMBR=(0402),UNITADD=00, X
> UNIT=SCTC,PART=(ESA11,ESA12,IFL)
> IODEVICE ADDRESS=(0440,32),CUNUMBR=(0403),UNITADD=00, X
> UNIT=SCTC,PART=(ESA11,ESA12,IFL)
> IODEVICE ADDRESS=(0500,32),CUNUMBR=(0501),UNITADD=00, X
> UNIT=SCTC,PART=(ESA11,ESA12,IFL)
> IODEVICE ADDRESS=(0520,32),CUNUMBR=(0502),UNITADD=00, X
> UNIT=SCTC,PART=(ESA11,ESA12,IFL)
> IODEVICE ADDRESS=(0540,32),CUNUMBR=(0503),UNITADD=00, X
> UNIT=SCTC,PART=(ESA11,ESA12,IFL)
>
--
************************************************************************
Shimon Lebowitz mailto:[EMAIL PROTECTED]
VM System Programmer mailto:[EMAIL PROTECTED]
Israel Police National HQ. http://www.poboxes.com/shimonpgp
Jerusalem, Israel phone: +972 2 530-9877 fax: 530-9308
************************************************************************