Front cover
S/390 Partners in Development:
ThinkPad Enabled for S/390
System setup
AD
System operation
Bill Ogden
International Technical Support Organization
S/390 Partners in Development: ThinkPad Enabled for S/390
October 2001
Take Note! Before using this information and the product it supports, be sure to read the general information in ???Special notices??? on page 85.
First Edition (October 2001)
This edition applies to the OS/390 AD
Comments may be addressed to:
IBM Corporation, International Technical Support Organization Dept. HYJ Mail Station P099
2455 South Road Poughkeepsie, NY
When you send information to IBM, you grant IBM a
?? Copyright International Business Machines Corporation 2001. All rights reserved.
Note to U.S Government Users - Documentation related to restricted rights - Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp.
Contents
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii The author. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii Special notice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii IBM trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . viii Comments welcome. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . viii
Chapter 1. Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.1 Purpose of this redbook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2 ThinkPad/EFS systems. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2.1
Chapter 2. System and Linux installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.1 Disk planning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2 ThinkPad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.3 Linux installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.3.1 Installation notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Chapter 3.
Chapter 4.
Chapter 5. Additional Topics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 5.1 Basic debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 5.2 Operating Systems Messages console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 5.3 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 5.4 Server memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.4.1 The vmstat command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 5.4.2 Importance of Linux swapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 5.5 Ultrabay. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 5.5.1 Using a second Linux hard disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 5.5.2 Second disk planning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 5.5.3 Disk layout (AD system) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 5.5.4 Alternative method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 5.6
Appendix A.
Appendix B.
iv S/390 PID: ThinkPad Enabled for S/390
Special notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Related publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 IBM Redbooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Other resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Referenced Web sites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 How to get IBM Redbooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 IBM Redbooks collections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Contents v
vi S/390 PID: ThinkPad Enabled for S/390
Preface
A ThinkPad Enabled for S/390, generally known as a ThinkPad/EFS system, is the smallest S/390 currently available, and is intended for development and demonstration purposes.
It is based on an IBM ThinkPad running Linux, and the S/390 emulation product
This IBM Redbook introduces the ThinkPad/EFS system, describes the setup process of the system in some detail, and then describes the installation and use of an OS/390 package known as the OS/390 AD
While this publication is primarily directed at members of the IBM S/390 Partners in Development program (also known as PartnerWorld), most of the content applies to any ThinkPad/EFS system.
The author
Bill Ogden is a retired IBM Senior Technical Staff Member, still working
Thanks to the following people for their contributions to this project:
Jim Obrizok, Linda Lovallo, and Frank Yolton, of the S/390 Partners in Development program, who coordinated the PID elements of the project and helped obtain required hardware.
Scott Carter, Martin Groen, Peter Ward, David MacMillan, Ray La Croix, and Tom Valerio, of Fundamental Software, Inc., who provided considerable help with the details of planning and installation.
Mike Hammock, of IntelliWare Systems, Inc., who provided useful feedback about typical system use.
Special notice
This publication is intended to help new users of ThinkPad/EFS systems better understand the platform. The information in this publication is not intended as the specification of any programming interfaces. See the PUBLICATIONS section of any relevant IBM Programming Announcement for more information about what publications are considered to be product documentation.
IBM trademarks
The following terms are trademarks of the International Business Machines Corporation in the United States and/or other countries:
Comments welcome
Your comments are important to us!
We want our IBM Redbooks to be as helpful as possible. Send us your comments about this or other Redbooks in one of the following ways:
???Use the online Contact us review redbook form found at: ibm.com/redbooks
???Send your comments in an Internet note to: redbook@us.ibm.com
???Mail your comments to the address on page ii.
viii S/390 PID: ThinkPad Enabled for S/390
1
Chapter 1. Introduction
Netfinity/EFS and ThinkPad/EFS systems are
EFS systems may be used to run OS/390 (and z/OS1), VM/ESA (and z/VM), VSE/ESA, and Linux for S/390. They may also be used for older versions of these operating systems. This document addresses only OS/390 and z/OS
Rather than constantly write ???OS/390 and z/OS
1 z/OS
1.1 Purpose of this redbook
This IBM Redbook introduces ThinkPad/EFS systems and describes the installation process for a particular configuration of these systems. The configuration used is the base configuration selected by IBM???s S/390 Partners in Development (PID)2 program for members of that program. Many of the specific details described here are for these PID systems and the OS/390 (and z/OS) software packages IBM provides for PID members who obtain systems through this program. However, the descriptions in this book can be generalized to apply to most other ThinkPad/EFS systems and installations.
ThinkPad/EFS systems are available only through IBM business partners, and are not available directly from IBM. In normal situations, the business partner performs the initial machine
We include this material for several reasons:
???Understanding how a system is set up, even though someone else may have done it for you, leads to a better understanding of the system.
???The system owner may accidently (or intentionally) delete or destroy part of the underlying elements of his system. If this happens, he might ask his IBM business partner for assistance, or he might prefer to rebuild the system himself.
???Significant upgrades to the underlying elements (hardware, Linux,
After describing initial system setup, we describe the installation of an OS/390 Application Development
Another redbook, Netfinity Enabled for S/390,
1.2 ThinkPad/EFS systems
A ThinkPad/EFS machine is an IBM ThinkPad laptop running Linux (the Red Hat 7.1 distribution for the discussions in this redbook). A Linux application package,
2Also known as IBM???s PartnerWorld organization.
3Open UNIX 8.0 is the replacement and upgrade product for UnixWare 7.1.1. References in this document to UnixWare also apply to Open UNIX.
2 S/390 PID: ThinkPad Enabled for S/390
No ???real??? S/390 hardware is required, although there are options to attach parallel and ESCON channel devices.4 No special adapter cards or other hardware is needed for basic S/390 emulation. The emulated S/390 runs as a Linux process, in the virtual memory provided by Linux. Every S/390 instruction that is executed is interpreted by the
ThinkPad/EFS is not intended as a production S/390 machine. Many reasons are involved, including obvious ones such as:
???No RAID protection is available for emulated S/390 disk volumes.
???Total disk space is limited, as is the configuration of the disk space.
???No S/390 channel connectivity is supported.
???Memory is limited and must be shared between S/390 use and all the
The system is intended as a small development machine, a demonstration machine, and may fit in a number of debugging situations. It is definitely a
1.2.1
FSI also produces four hardware options that may be used with
???A parallel channel adapter, providing one S/390 parallel channel
???A parallel channel adapter, providing three S/390 parallel channels
???An ESCON channel adapter, providing one S/390 ESCON channel6
???A communications adapter, providing six lines corresponding to S/370 ICA lines
These adapters are
4At the time of writing, there is no practical support for these adapters on a ThinkPad. We mention them here for completeness.
5This is a very brief statement of a complex process.
6This adapter was not yet available at the time of writing.
1.2.2 Linux
In order to provide
This may change in the future, of course. Linux is an ongoing process and the EFS base system is likely to migrate to a future Linux kernel when one becomes available and FSI migrates the
Linux is a large topic. This redbook addresses Linux only to the extent needed to install and use
1.2.3 Positioning with other small S/390s
Recent
???P/390, R/390, and S/390 Integrated Server (IS) systems (all based on P/390 adapters). These systems are no longer manufactured or marketed, but are still widely used by members of IBM???s Partners in Development (PID) organization.
???Application StarterPak systems. These are no longer manufactured or marketed, but a number are in use by PID members.
???Several models of Multiprise 3000 systems (MP3000). These are currently manufactured and marketed and widely used.
???x/Server EFS (formerly known as
???Various models of Multiprise 2000 systems. These are no longer actively marketed.
The following table offers a few initial comparisons:
4 S/390 PID: ThinkPad Enabled for S/390
This table is intended only as a starting point for positioning a ThinkPad/EFS system and needs a number of qualifications:
???The relative CPU performance numbers shown are rough indications of processor performance. Total system performance is dependent on many other factors as well, including memory size and disk performance. Also, processor performance depends on the nature of the workload and may vary considerably from the indicated ratios. Do not attempt to use this table for anything other than positioning the EFS models listed relative to the other specific machines shown.
???ThinkPad/EFS is shown as less than 1 CPU. This indicates that the single PC processor in the ThinkPad must be shared between Linux processes (such as S/390 emulated I/O) and S/390 instruction emulation.
???An x/Series 430 EFS system can have 1, 2, or 3 processors enabled for S/390 processing.
???Many of these machines can have a wide range of memory installed. The numbers shown are intended to represent typical systems.
???All the machines except the StarterPak can have a wide range of disk storage installed. Again, the numbers shown are intended to represent typical installations. The numbers represent effective disk capacity, after RAID or mirroring overhead.
???The S/390 Chans column refers to S/390 channel connectivity, using ESCON and parallel channels. All of the systems offer some channel connectivity, but all except the MP3000 are quite limited in this area.
???This table ignores RAS characteristics. The
1.3ThinkPad/EFS hardware used
ThinkPad/EFS systems are provided through IBM business partners. They cannot be ordered directly from IBM. Different business partners may start with slightly different base configurations and offer different options. The system we describe in this redbook should closely match most starting configurations offered by business partners.
The basic hardware requirements are:
???A Thinkpad in the A21p, A22p, A23 (or T23) series, or one that is closely compatible, is the only supported base at the time of writing.
???A major compatibility requirement is that the X windows support in Red Hat Linux 7.1 must operate correctly with the ThinkPad display.
???It must have a USB port (for the FSI license dongle).
???It should have 512 MB memory (or more, if available).
???It should have at least one 32 GB (or larger) disk drive.
???The option for a second 32 GB (or larger) drive (swappable in the slot used by the
???It should probably have the integrated Ethernet adapter, and possibly a second (PCMCIA) Ethernet adapter or a PCMCIA token ring adapter (depending on your requirements).
ThinkPad models change frequently and the above requirements may need to be adjusted to match current offerings. The author used a T20 ThinkPad (which met the other requirements) and had no problem with it. However, from a formal support viewpoint, only selected ThinkPad models should be used. At the time of writing, these were the A21p and A22p machines.
No particular disk drive size is required. A system needs about 1.5 GB for Linux. Most of the remaining disk space can be used for emulated S/390 drives. An emulated drive takes approximately the same number of bytes on the ThinkPad disk as are available on a ???real??? drive. A
Using two disk drives allows some overlap of drive operations. We did not attempt to measure this and we suspect that the effect is small.
1.4 Terminology
EFS descriptions can become confusing if the terminology is not well defined. These are important terms:
???Processor means a PC processor in the ThinkPad (or a Server processor in larger platforms).
???Server means our underlying ThinkPad hardware.
???Server operating system means Linux for the ThinkPad/EFS system described in this redbook.
???S/390 CPU (or simply CPU) means an emulated single S/390 CPU engine.
???S/390 system means an emulated S/390 (in the EFS system) that might have more than one emulated S/390 CPU engine.
???Instance (or
???OS/390 means the S/390 operating system. We could also use VM/ESA or VSE/ESA, but we elected to work only with OS/390 and z/OS
???ThinkPad/EFS is a generic name. The business partners providing this product often have their own names for their specific implementation of the product.
For any
6 S/390 PID: ThinkPad Enabled for S/390
2
Chapter 2. System and Linux installation
ThinkPad/EFS installation, with Linux, is much simpler than installation of other EFS platforms. There are three primary reasons for this:
???The appropriate ThinkPad models can be used ???out of the box.??? We are unaware of any requirements for BIOS upgrades.1 There are no RAID functions to customize.
???The server operating system (Red Hat Linux 7.1) is installed ???out of the box.??? We are unaware of any required patches or fixes essential for EFS use.
???We can use simple Linux files for emulated S/390 disks.
All of these factors are subject to change, of course, and are likely to change with future systems. Nevertheless, we expect ThinkPad/EFS installation to remain simpler than installation of other EFS systems. A background consideration is that, because ThinkPad/EFS is not intended for production use, there is slightly less emphasis on using the latest BIOS fixes, latest Linux fixes, and most optimum disk performance techniques.
We elected to have Linux as the only PC operating system on our ThinkPad. You could create multiple primary partitions, install a boot manager of your choice, and install a Windows system in addition to Linux. This should be transparent to
2.1 Disk planning
A little background on
???A raw disk is contiguous space on a hard disk. (This statement ignores the effects of RAID striping. The Server operating system sees a raw disk as contiguous space if a hardware RAID adapter is used.)
1This is not to say that you should not install BIOS upgrades. We are unaware of any that are required for using
2These comments also apply to Netfinity/EFS with an Open UNIX 8 base. Open UNIX 8 is the replacement release for UnixWare 7.1.1.
???A raw disk (or several raw disks) is required for each S/390 DASD volume being emulated. For example, if an OS/390 system requires 15 3390 volumes (for the system and user volumes), then
???A raw disk has no UNIX file system. It can be used (by UNIX programs) as a single, sequential file. Multiple raw disks are tedious to administer and can lead to fragmentation issues if not well planned. This disk management has often been the most complex element of EFS installation on other platforms.
???Raw disks are used by
Instead,
???In principle,
the normal UNIX buffering is not well suited to this emulation and the resulting performance is poor.4
Linux has added more factors to these elements:
???Linux has raw disks, but buffers I/O for them. This means that the unique
???Linux I/O handling for normal file systems is generally faster than that of traditional UNIX systems.
???Linux directly supports large files (larger than 2 GB), as required for
For these reasons,
We plan to use a simple naming convention with names such as /s390/OS39RA, for the Linux file containing an emulated
Differences
Typically, under Linux, an emulated S/390 DASD volume is a single Linux file. In this case (a single file), the file can have any convenient name. No
Under UnixWare (for a Netfinity/EFS system) emulated S/390 DASD volumes may occupy several raw disks.5 In this case (multiple UNIX files per S/390 volume) a special
3This is not unique to
4This does not imply that UnixWare disk handling is poor. It is very good for normal UNIX applications. Emulation of S/390 volumes is a very specific, narrow application that does not match typical UNIX file usage.
5This is not required, can be done to reduce potential fragmentation issues with raw disk space.
8 S/390 PID: ThinkPad Enabled for S/390
2.2 ThinkPad
Before installing Linux, we installed all our ThinkPad options: additional memory, internal Ethernet port, the
We started the system and selected F1 for BIOS setup. Working with BIOS functions, we verified that we had 512 MB of memory and that the internal Ethernet adapter was recognized. We set the time and date. In the Startup section, we verified that the Boot device List F12 Option was enabled; this lets us temporarily select the
After exiting the BIOS setup function and performing
2.3 Linux installation
We purchased a Red Hat Linux 7.1 standard package in a local store. (They also had a Deluxe version and a Server version; we selected the basic version.) This consists of four
We booted from the first Linux CD (using the ThinkPad F12 option to select a temporary boot device). This produced a Red Hat logo screen and offered the choice of graphics mode or text mode installation. We selected text mode, primarily because it was easier to document for this redbook. We then went through a number of installation prompts:
Language: English
Keyboard: US
Welcome to Red Hat Linux: OK
System Type: Custom System
(Possible message about ???Bad Partition Table???; if so, select Initialize)
Partition: Manually Partition
Select partition tool: Disk Druid
You can select fdisk instead of Disk Druid, and you should use whichever one you find most comfortable. We found that the Linux fdisk was just different enough from DOS fdisk to be confusing, so we used Disk Druid.
Our ThinkPad disk had no installed partitions and was 100% available for allocation. Using Disk Druid, we allocated four partitions:
6 Business partners providing ThinkPad/EFS systems were switching to 48 GB drives at the time of writing. This change has no effect on the comments here, except that it makes a
We selected a completely arbitrary size, 150 MB, for a Linux swap partition. In the light of later experience, this could probably be smaller. However, it is a small fraction of our available space and appeared to be a safe choice. The Red Hat documentation indicated that 32 MB was the maximum possible boot partition size, so we selected that. Again, it could probably be smaller.
It may take some experimentation with Disk Druid to mark a partition as Linux swap. We suggest simply working with the Disk Druid options (Add, Delete, Edit) until you succeed.
The documentation did not provide much guidance for selecting the amount of space for Linux itself. We elected to put all of Linux into the root file system, and arbitrarily assigned 3000 MB for this.7 (If you elect to install ???everything??? in RH7.1, you will need about 2.5 GB. Our more minimal installation actually used about 1.1 GB.) If you have more Linux or UNIX experience, you might want to create several file systems for Linux8 instead of placing everything in a single root file system. Other than having about 25 MB available in /usr (for later
We then assigned all the remaining space on this drive to a partition with the mount point /s390. This name is arbitrary, but clearly indicates the intended purpose of the partition.
At this point, we had only a single hard disk installed. Our second hard disk will eventually replace the
The installation prompts continued with fairly basic items:
Choose partition to format: ALL (place asterisk in all lines)
LILO Configuration, special parameters: (leave blank) OK
LILO Configuration, where to place boot record: MBR
LILO Configuration: OK
The No Firewall security option was appropriate for our purposes, but may not match your needs. As far as we know, this has no particular
7We intentionally specified considerably more space than we needed. We assumed the extra space would be useful for a variety of purposes.
8Separate file systems for /tmp and /home are the most common alternatives.
10 S/390 PID: ThinkPad Enabled for S/390
automatically installed later.) The installation process will automatically create a group with the same name as the user name you specify, and add this user to the group. For example, if you specify username ogden, the installation process will automatically create group ogden and add user ogden to group ogden.
[*]Printer support
[*]X Window System [ ] GNOME
[*]KDE
[*]Mail/WWW/News Tools
[*]DOS/Windows Connectivity [ ] Graphics Manipulation
[*]Games
[ ] Multimedia Support
[*]Laptop support
[*]Networked Workstation [ ] Dialup Workstation
[ ] News Server [ ] NFS Server
[ ] SMB (Samba) Server
[ ] IPL/Netware (tm) Connection [ ] Anonymous FTP Server
[ ] SQL Server [ ] Web Server
[ ] DNS Name Server
[*]Network Management Workstation [ ] Authoring/Publishing
[ ] Emacs
[*]Development
[*]Kernel Development
[*]Utilities
[ ] Everything
OK
You can select gnome in addition to (or instead of) kde. These two packages are competing implementations of an X
9
You also need X windows, Laptop support, Networked Workstation, Network Management Workstation, Development, Kernel Development, and Utilities. You may want to change some of the options we selected or did not select. In particular, you might want to select
Anonymous FTP Server (if you want any ftp server functions) and SMB (Samba) Server (if you want Windows connections).
Installation took about 16 minutes. It called for the second
Unfortunately, this Linux distribution does not have specific display parameters for ThinkPad displays. As a guess, we specified our ThinkPad display as an IBM T55A (which is a
After rebooting and logging into Linux as root, we tried the following:
#cd /proc
#cat cpuinfo
#cat iomen
#cd /
2.3.1 Installation notes
The Custom System installation option was required in order to have both X windows and xinetd active. The Laptop Installation and Workstation Installation choices both omit xinetd support, and the Server Installation choice omits X windows. We require xinetd functions and X windows functions and are forced to use the Custom installation option.
12 S/390 PID: ThinkPad Enabled for S/390
After the installation outlined above, you should be able to log into the system and ping another host on your subnet.10 If the gateway IP system you specified is functional, you may be able to access remote hosts. You will note, however, that other systems cannot telnet to your ThinkPad Linux.11 If you want to permit telnet or ftp into your machine, you need to do the following:
If this does not work for some reason, you can edit the relevant files as follows:
Similar editing of the
10You may have problems if you ping systems on other subnets. The remote system must have a defined route back to you in order for the ping to work. Testing with another system on your local subnet avoids routing problems.
11This is not required for
14 S/390 PID: ThinkPad Enabled for S/390
3
Chapter 3.
This chapter describes the installation process for
3.1
This redbook concentrates on the use of
The following descriptions and figures assume this particular ThinkPad/EFS configuration. Other configurations and more complex systems are possible, but are not described here.
3.1.1 Brief introduction
Conceptually,
???A S/390 instruction emulator, which might be seen as the heart of the system. It examines each S/390 operation code and emulates that operation, using the instructions of its underlying PC processor.
???A resource manager that controls the interfaces between the emulated S/390 processors and emulated I/O devices and connections.
???Emulators for various S/390 I/O devices.
???A
???A Terminal Solicitor program that emulates local,
???A number of utility programs to help set up and run the
Figure
1 It is actually a number of interrelated processes and threads, but that can be ignored at the conceptual level.
16 S/390 PID: ThinkPad Enabled for S/390
Figure
Key points include:
???
???The
???
???
???The
???The owner can elect to dedicate PC processor(s) to
2 The optional S/390 channel adapters available for use with
Chapter 3.
???You can emulate a S/390 with a number of CPUs. This number cannot exceed the number of PC processors licensed for S/390 emulation. With the ThinkPad/EFS system we are describing, this means that only a
???The emulated S/390 can use LAN adapter(s) on the ThinkPad. OS/390 TCP/IP can run this way. A single ThinkPad LAN adapter can be used both by the OS/390 TCP/IP and by
Linux TCP/IP. This differs from
???The
terminals, CICS terminals, and so forth. There is no particular limit to the number of terminals that can be connected this way.4 Each one must have appropriate VTAM definitions for a local 3270, of course.
???If a LAN adapter is connected to OS/390 TCP/IP, then TSO terminals may connect this way. If OS/390 TCP/IP and UNIX System Services are configured for it, ASCII telnet sessions can also use this connection. The Terminal Solicitor is not involved in these connections. The two LAN interfaces would have separate IP addresses, of course, even though they may share a common LAN adapter.
???The illustration shows a single emulated S/390. It is possible to emulate several S/390s at the same time.5 The PC processor(s) licensed for S/390 emulation will be dispatched among the several emulated S/390s. Only one Terminal Solicitor would be used; it can be shared by all emulated S/390s. The multiple emulated S/390s are known as multiple instances of
???While it is not apparent in the illustration, the amount of real PC memory available is a key performance factor. The performance of an emulated S/390 degrades quickly if Linux performs much paging (especially if the paging is triggered by
???The terminal shown in the figure is usually the ThinkPad display and keyboard. The typical ThinkPad/EFS usage would be through X Windows. In this mode, several windows can be open. Some of these might be x3270 sessions (TN3270 clients) connected to OS/390 through the Terminal Solicitor; one of these sessions might be the MVS master console. Another window might have
3It also differs from
4There is an overall
5A different
18 S/390 PID: ThinkPad Enabled for S/390
3.1.2 Installation
???FTP over the Internet
???
???Diskettes
???Preinstalled by a business partner
The
(you should see the three rpm files and whatever other files your business partner included. We placed our key file on our CD)
#rpm
Changing password for user flexes New UNIX password:
BAD PASSWORD: it is too simplistic/systematic Retype new UNIX password:
passwd: all authentication tokens updated successfully
#rpm
#rpm
#cp /mnt/cdrom/yourlicensekeyname.key /var/adm/flexes/.flexeslicense
Ignore the error messages about passwords. The installation process creates userid flexes with the password abcdef1. It also creates a group named flexes and makes user flexes a member of this group. You can later change the password to anything you like.
We used a test release of
In practice, most
We then shut down Linux, connected the USB dongle, rebooted and did this:
Chapter 3.
Adding /usr/flexes/bin (where all the
Installing the
You need a
Copy the license key file to /var/adm/flexes/.flexeslicense, as noted in the instructions above. (Note that the target file name begins with a period.) If the license key is provided on diskette you will need to copy it from there. For example:
(shut down Linux)
(remove the
(boot Linux and log in as root)
# mdir a:
(if the diskette is in DOS format, you should see the file with your key)
#mcopy a:your.key /var/adm/flexes/.flexeslicense
(done)
(if the diskette is not in DOS format, try the following)
#mount /dev/fd0 /mnt/floppy
#ls
(if the key file is displayed, copy it with the following command)
# cp /mnt/floppy/yourlicensekeyname.key /var/adm/flexes/.flexeslicense
ThinkPad models are updated and changed frequently. The exact method of changing from
If you have multiple
3.1.3 X3270
A version of x3270 (a TN3270 client) is distributed with
After doing this, the
20 S/390 PID: ThinkPad Enabled for S/390
3.1.4 Next steps
We created mount point /s390 when we installed Linux. It is the large file system that occupies most of our hard disk. We intend to use a second hard disk (in the Ultrabay slot of the ThinkPad) and we can create a mount point for it now. (We will initialize and mount the second hard disk later.) Both mount points should be owned by userid flexes because they will be used to hold emulated S/390 volumes:
#chown flexes:flexes /s390
#chown flexes:flexes /s391
The names s390 and s391 are arbitrary, of course, but they express the purpose of the file systems.
You next need to install your S/390 operating system. We used an AD system; this is described next. If you use another installation method, you need to work with it now. After the S/390 operating system is installed, you need to create matching
3.2 OS/390 AD systems
In principle, you can install OS/390 on your ThinkPad/EFS using any of the distribution media and logical packaging available from IBM.6 In practice, most of IBM???s S/390 Partners in Development (PID) members use a
3.2.1 AD systems
We chose an OS/390 AD
An AD (Application Development) system is a prepackaged OS/390 (or z/OS), with a number of priced features and additional program products included.7 Considerable customization has already been done, making the system immediately usable for many functions. The AD systems are available only to members of IBM???s PartnerWorld for Developers (formerly known as Partners in Development, or PID) who obtain systems through the PID program. They are not available to general IBM customers.
Why did we use it for our EFS projects? We used it primarily because it provides a very easy way to install a useful OS/390 system. We could have built an OS/390 system starting with a ServerPac, in the same way most OS/390 customers build their systems. However, this requires considerably more time and effort and would have detracted from the time spent working with EFS elements. It would also require a S/390 with tape drives compatible with the ServerPac media, and the ThinkPad does not meet this requirement.
In general, an OS/390 AD system is a rather straightforward implementation of OS/390 and contains no magic components or ???clever??? setups. The experience and results of using it on ThinkPad/EFS should be about the same as using any other straightforward OS/390 implementation.
6This statement assumes you have a tape drive on your ThinkPad/EFS that is compatible with the
7There are AD systems available for VM/ESA and VSE/ESA also. The discussion in this chapter is about OS/390, so we limit this discussion to the OS/390 AD systems.
Chapter 3.
The AD
3.2.2 OS/390 on
The
In general, the PID versions (once installed on the S/390 system disks) are immediately ready for use. A set of userids is provided, for example. Minor additional customization (such as setting IP addresses) is required, but very little work is required compared to, for example, a ServerPac distribution of OS/390. The penalty for this immediate usability is that many configuration and customization decisions have been made by IBM. In general, the resulting systems are quite suitable for a small development organization, but would probably not be suitable for a large,
Basic
The fundamental format of the
The OS/390 volumes (on the
The AWSCKD format is, in essence, a complete image of a S/390 disk volume. Within an AWSCKD file CKD tracks, cylinders, R0s, and so forth are defined. There will be a standard label, a VTOC, probably a VTOC index, and whatever data sets appear on that volume in an OS/390 context. The data is in S/390 format. Text contained on a S/390 volume is EBCDIC and executables are S/390 binary files suitable for execution by OS/390. To a PC program, an AWSCKD file is simply a large binary file that is not useful to typical PC programs.
AWSCKD files on the
8 This is true when installing on a P/390, Integrated Server, or Multiprise 3000. The processing consists of UNZIPing PC files. Each file contains an emulated 3390 disk volume.
22 S/390 PID: ThinkPad Enabled for S/390
The AWSCKD format was developed for P/390s where the underlying operating system used to emulate CKD drives is OS/2. OS/2 is a
3.2.3 OS/390 device configuration
For the OS/390 R10 AD system, the first four volumes (first four
The AD system is already customized in many ways, including IODF device definitions. It is not the purpose of this redbook to discuss general AD system design.10 The following sections mention specific S/390 device numbers (???addresses???) such as A80 for the IPL volume. These addresses are included in the AD system; that is, they are included in the IODF distributed with the system.
We decided our initial OS/390 system (using the AD
The AD system can use a much larger set of addresses and devices than shown here.11 These represent a basic useful system. Some of the addresses are arbitrarily chosen from the larger set provided with this AD system. The AD volumes containing the DLIBs, DB2, CICS, and IMS are not included in this list; they are not necessary for basic operation and we decided to not install them for our initial ThinkPad/EFS work.
9The two files contain the characters _1 and _2 as the last two characters of each file name. P/390 utilities recognize that the second file is a continuation of the first. Unlike
10A fairly detailed description of recent OS/390 AD systems is given in S/390 Partners in Development: OS/390 (and z/OS) New User???s Cookbook,
11This means that the IODF distributed with the AD system contains a large number of defined devices and addresses. We selected a subset of these
Chapter 3.
The Linux file names shown in the table are not part of the AD system. Rather, they are the names we decided to use when installing these devices on our ThinkPad/EFS system. They are shown here for completeness. A important factor in our setup is to have an IPLable system on the primary ThinkPad hard disk. Although we will later install a second hard disk, we want to be able to IPL OS/390 without the second disk installed.
At the system level, we defined a S/390 system with 256 MB central storage and 64 MB expanded storage. The expanded storage size was completely arbitrary. We wanted our total system definition to be small enough to avoid Linux paging. We could have defined larger central storage, or no expanded storage, or a different combination of storage sizes.
3.2.4 An unzip program
A
3.2.5 Installation tasks
We needed to perform the following tasks to install our OS/390 system:
1.Decide where to place the files containing the emulated volumes.
2.Unzip the required
These steps are described in some detail in the following sections.
Unzipping and installing AWSCKD
The installation of AD
We found that the easiest way to do the following process is to open two
???One window for the unzip and ckdconvaws commands, as userid flexes
???One window for mount commands and other utility commands, with an su to root
Having separate windows for the two major commands is convenient because root authority is needed for mount while the other functions should be under userid flexes.
Mount CD
Mount the first AD
devmap.mvs ickdsf.ipl os39ra.zip sadss.ipl devmap.nme migrate.doc readme.mvs
Unzip and convert a volume
The output of the unzip command can be piped directly to the ckdconvaws command:
$ unzip
FSIDC146 Max head=14, cyl=3343, blks=57
FSIDC180 cylinder nnn Completed in mmm milliseconds
FSIDC190 CKD conversion completed (3339 cyls copied, 0 cyl ignored)
24 S/390 PID: ThinkPad Enabled for S/390
The ckdconvaws command converts the AWSCKD format to the
The nnn and mmm numbers shown will increment as the program runs. When the volume is finished, use the root window to issue the command:
We can pipe directly from the unzip program to the ckdconvaws program only if the emulated volume will be held in a single file, as we are doing here. If the volume will be held in several files, a named pipe must be used. This is more common with UnixWare or Open UNIX systems and is described in the Netfinity/EFS redbook.
Load the other CDs
Repeat the same process (mount, unzip/convert, umount) for the other CDs that are to be loaded. For the OS/390 R10 system, we used the following:
3.3 File ownership
All of the files containing emulated S/390 volumes must be owned by userid flexes and groupid flexes. You can verify this, as follows:
The ???flexes:flexes??? parameter format causes both the owner and the group name to be changed.
3.4 Minor problems
While working with various AD releases, we found two unusual situations.
12 The
Chapter 3.
Files unzip in wrong order
Unzipping one of the
In the most recent
Volume in two separate zip files
Many of the AD volumes are
In rare cases, the zip file containing the two OS/2 files is too large to fit on a
In the latest
3.4.1 Next steps
After loading the operating system, we need to make various
26 S/390 PID: ThinkPad Enabled for S/390
4
Chapter 4.
Installing and running a ThinkPad/EFS system requires a number of steps, some of which have already been described:
???Install the system hardware (described in ???ThinkPad??? on page 9).
???Install Linux as the server operating system (described in ???Linux installation??? on page 9).
???Decide on your disk configuration (described in ???Disk planning??? on page 7).
???Install
???Load OS/390 (many variations are possible, and you might use another S/390 operating system; our steps are described in ???OS/390 AD systems??? on page 21).
We have completed the steps listed above. The following steps are required to run a S/390 instance:
???Create
???Compile the definition file, creating rescf and syscf files.
???Start resadm, the resource manager, pointing to a rescf file.
???Start flexes, the S/390 emulator, pointing to a syscf file.
???Start the flexescli program, which provides a command line interface for controlling a
???Start at least one TN3270 session (for the MVS master console).
???Issue an ipl command through the flexescli interface.
???Operate OS/390 as usual.
???Shut down the system when finished.
These steps are described in this chapter. In general, most of the setup described here should be done under the flexes userid. By convention, all the
4.1
Before the newly installed/restored OS/390 system can be used, we must define the hardware and system resources to the
$ cd /usr/flexes/rundir $ cfcomp defA1
Start
Configuration processing *SUCCEEDED* with no errors
Data Space Manager Terminated
We could issue the cfcomp command directly because we earlier placed /usr/flexes/bin in our Linux PATH. If you did not do this, you would need to use a full path name with the command:
/usr/flexes/bin/cfcomp defA1
Our
#cd /usr/flexes/rundir (if you are not already there)
#resadm
Again, we could issue the resadm command directly because /usr/flexes/bin is in our PATH. You must be root to issue these resadm command options.
Comments
The short steps just shown, to compile system and resource files and to activate the resources (but not the system), require some explanations.
Our definition file source had been placed in /usr/flexes/rundir. We created the rundir directory just after we installed
???Central memory size available to this system
???Expanded memory size
???Number and type of CPUs
???Number and usage of channels
???Control units for all system devices
The other defines resources for a single system or multiple systems, such as:
1 We could have used two definition files, one for the system definitions and one for the resource definitions. The use of separate system and resource definition files is most common when multiple instances of
28 S/390 PID: ThinkPad Enabled for S/390
???Interfaces for all the control units defined in the system section
???Devices for all the control units defined in the system section
These two definitions can be two separate files or combined into one file. We elected to combine them into one file, as listed in Appendix A,
The
Once compiled, the resource portion (the rescf file) can be activated with the resadm command:
You can list all active resources with the command:
$ resadm
Resource: CPU Flags: READY Type: CPU Port: 9365 Pid: 17483
Resource: CHANNEL Flags: READY Type: CHAN Port: 9369 Pid: 17485
Resource: os2821 Flags: READY Type: CU Port: 9368 Pid: 17486
Resource: os3480 Flags: READY Type: CU Port: 9370 Pid: 17487
Resource: os3274 Flags: READY Type: CU Port: 9374 Pid: 17488
Resource: osdasd Flags: READY Type: CU Port: 9375 Pid: 17489
Resource: os3172 Flags: READY Type: CU Port: 9377 Pid: 17490
Resource: osctc Flags: READY Type: CU Port: 9376 Pid: 17491
Resource: NETCU Flags: READY Type: NETCU Port: 9384 Pid: 17492
Resource: TS3270 Flags: READY Type: TS3270 Port: 9381 Pid: 17493
More options of the resadm command are discussed in ???The resadm command??? on page 81.
Once the resources are active, the system portion is ready to be started and IPLed. This is easier to do with a shell script.
4.1.1 Building a shell script
We used vi to create the following shell script file in /usr/flexes/rundir/shos. (The name shos is arbitrary.) The contents are:
flexes S10A.syscf
xmodmap
xset fp rehash
echo ' Verify your master console session is started ' echo ' and then ipl your system '
echo ' '
x3270
The flexes command (in the shell script) starts an emulated S/390, using the indicated compiled system definition file.
Chapter 4.
The next three commands prepare X windows parameters, and the x3270 commands start 3270 client windows on the Linux screen. We elected to identify specific 3270 sessions (mstcon and L701) for these two 3270 client windows.2 These session names match names in our resources definition. There is no requirement to start these x3270 sessions here (in the shell script), but the terminal for the OS/390 master console(s) should be started before IPLing OS/390. Using the shell script this way provides a convenient, automatic way to establish the OS/390 console.3
The last command of this shell script, flexescli localhost S10A, starts the CLI program in interactive mode, with a flexes> prompt replacing the default Linux prompt. You can enter flexes commands here,4 or enter a quit command to return the Window session to a Linux prompt. In most cases, you will not need this Window session while you are using OS/390.
Assuming that we have already started the resource manager (with a resadm
$ sh shos
flexes> ipl a80 0a82cs
flexes>
Here we started the shos shell script. The last command in the shell script starts flexescli (the command line interpreter, or CLI) in interactive mode, and this program provides the flexes> prompt. At this point we can enter CLI commands, some of which are outlined in ???CLI commands??? on page 82. We entered an ipl command to start OS/390. We could have included the ipl command in the shos script, but we found it more convenient to enter it manually because we often change the IPL parameter values. (The ???0a82cs??? in the example is an IPL parameter value.)
If we wanted to include an ipl command in the shell script, it could look like this:
flexes S10A.syscf
xmodmap
xset fp rehash
x3270
This illustrates the two ways in which flexescli can be used. If a command is piped to it (with echo), then flexescli will execute that command and quit. If nothing is piped to it (as in the last line of the shell script), then flexescli starts in interactive mode and issue the flexes prompt. The two operands for flexescli are the IP name/address of the system running
Note that we
2If we omitted the session identification, we would obtain the Terminal Solicitor selection menu on these sessions.
3If you do not start the x3270 sessions this way, you would need access the Terminal Solicitor and start the TN3270 session that will be used for the OS/390 console before starting an IPL.
4For example, you could enter an IPL command at this point. Some users prefer to code an IPL command in their shell script, while others prefer to enter it at the flexes prompt.
30 S/390 PID: ThinkPad Enabled for S/390
Terminal Solicitor
Starting the resource manager, resadm, automatically starts the
Welcome to the
Please select (X) the desired service and press enter (PA1 to exit; CLEAR to refresh)
If we had not started the Linux x3270 sessions for mstcon and L701 in our shell script, then these names would also appear in the Terminal Solicitor list. We would need to select mstcon from the list to activate that session before IPLing OS/390, since it will be used for the MVS master console.7 When we select a terminal (by marking it with an X and pressing Enter8), the Terminal Solicitor screen (on our client TN3270 session) is replaced by a 3270 connection to the indicated terminal address. After OS/390 is up, this is likely to result in the USSTAB logo screen.
4.1.2 IPL OS/390
The OS/390 IPL starts when you execute a flexes ipl command. The ipl command can be entered from the flexes window or in a startup script, as shown in 4.1.1, ???Building a shell script??? on page 29.9 Once our OS/390 was operational, we tried a few typical OS/390 commands, as shown in the following (the operator commands are shown in bold type):
REAL STORAGE STATUS
NONE
PENDING OFFLINE
NONE
5It can also be another window on our Linux desktop.
6Once a 3270 terminal device is selected by a user, it is removed from the Terminal Solicitor panel. When the device is freed by the user, it reappears on the Terminal Solicitor panel and can be selected by another user.
7The AD system expects a 3270 terminal at address 700 for its master console. The name mstcon is arbitrary, and matches the name chosen for a 3270 defined at address 700 when the resource definition file was created.
8Many 3270 emulator users set up the
9We eventually removed it from our shos script because we frequently wanted to IPL with various different IPL parameters. We used the same shos script (less the ipl command) and simply typed our ipl command at the flexes prompt.
Chapter 4.
11.43.44IEE114I 11.43.44 2000.314 ACTIVITY 665
11.41.55IEE457I 11.41.55 UNIT STATUS 659
The processor type (in the d m=cpu response) is 1245. This is the processor type for a Netfinity/EFS system. Otherwise, the displayed responses are exactly the same (except, perhaps, for storage sizes) as would be found when running on any S/390 hardware.
4.2 Operation and use
Once you have OS/390 IPLed, operation is the same as for any other OS/390 installation.
4.2.1 User terminal connection
A TSO user, for example, would normally connect to the system by connecting a TN3270 session to the Linux IP address (or name, if you have a Domain Name Server service), port 24. This should produce the Terminal Solicitor display, as shown in Figure
If you start OS/390 TCP/IP, a user could connect directly to it by using TN3270 and the IP address you assigned to OS/390 TCP/IP. In this case, the user would not be connected to the Terminal Solicitor, but would be connected directly to OS/390 TCP/IP.
32 S/390 PID: ThinkPad Enabled for S/390
4.2.2 Linux TN3270
A TN3270 emulator is included with Linux. In our opinion, it is not quite the same quality as the x3270 emulator distributed with
4.2.3 IODF requirements
OS/390 requires an IODF data set that defines the I/O configuration seen by the software. This normally matches the IOCDS defined for the S/390 I/O hardware configuration. The ThinkPad/EFS platform does not have an IOCDS. All resources are defined in
An IODF is still required within an OS/390 system, but the HCD input to generate it does not need to define control unit details. That is, a simple device definition (device number, type, optional features) is all that is required. OS/390 dynamic I/O redefinition capability is not available.
In response to a d ios,config(all) command, we received the following:
HARDWARE SYSTEM AREA DATA COULD NOT BE OBTAINED
ELIGIBLE DEVICE TABLE LATCH COUNTS
0 OUTSTANDING BINDS ON PRIMARY EDT
You can, however, perform software dynamic configuration changes via OS/390 Hardware Configuration Definition (HCD) dialogs or the OS/390 ACTIVATE command, provided the affected devices are included in the
4.2.4 System performance monitors
Because I/O
When we started RMF, it reported the absence of an IOCDS in this environment and automatically terminated I/O queuing activity reporting:
11.22.36STC00439 ERB265I RMF: IOCDS INFORMATION UNAVAILABLE TO RMF.
RESPONSE CODE 01F0
11.22.37STC00439 ERB260I ZZ : I/O QUEUING ACTIVITY RMF REPORT TERMINATED
11.22.38STC00439 ERB100I ZZ : ACTIVE
SYS1.LOGREC may not have hardware error information. Consequently, any report produced by Environmental Recording and Editing Program (EREP) will have limited value when it comes to hardware detected errors. Due to time constraints, we did not investigate this area in more detail.
Chapter 4.
4.2.5 TCP/IP for OS/390
It is possible to share a single Ethernet LAN adapter in the ThinkPad between Linux (including the
We included the following
System definition:
channel (3) local
cu devad(0xE20,2) path(3) resource(R10A3172)
Resource definitions:
R10A3172: cu 3172 interface local(1)
options ???ipaddress=9.12.17.211??? device(00) 3172 eth0
device(01) OFFLINE end R10A3172
We changed the following lines in the TCPIP.PROFILE.TCPIP data set:
START LCS1
This specifies the use of LAN adapter 0 (sometimes known as the MPTS adapter number, from the OS/2 MPTS program). Adapter 0 is the default LAN adapter number for
In order to share an Ethernet adapter with Linux, we must specify, in the resources file, the IP address to be used by OS/390. It must also be specified in the OS/390 TCP/IP profile data set, as shown here. With the specifications described here, we have these connection options from another host on the network:
???TN3270 to 9.12.17.210, port 24
???TN3270 to 9.12.17.211, port 23
???telnet to 9.12.17.210, port 23
???telnet to 9.12.17.211, port 1023
???telnet to 9.12.17.211, port 23
34 S/390 PID: ThinkPad Enabled for S/390
4.3 Shutting down
Shutting down the system involves the following steps:
???Shut down OS/390. (With the AD systems we would enter s shutdown on the MVS console to start a VTAMAPPL script that issues various commands.)
???Using the flexes window:
To start the system up again, we would use the resadm
Chapter 4.
36 S/390 PID: ThinkPad Enabled for S/390
5
Chapter 5. Additional Topics
Most of this redbook is concerned with the installation of a basic,
5.1 Basic debugging
We present here a few common debugging steps that may be useful if you have a problem starting
A number of common errors occur if userid flexes and groupid flexes do not own the emulated I/O files and most of the files in /usr/flexes/rundir. (We assume your rescf and syscf files, along with any shell scripts you might use, are in this directory.) You can use a command such as ls
Do all your resources start when you use the resadm
Do your rescf and syscf files match your current definitions (in your definition source file)? Changing your definition source file(s) has no effect until you recompile them and start (or restart) resadm with the newly compiled files. If you are not certain, you can simply compile your source file again. In our examples, this would be:
Be certain you have a clean compile. This is indicated by the messages:
Configuration processing *SUCCEEDED* with no errors
Data Space Manager Terminated
Are you using the correct files? The resadm command uses the rescf file and the flexes command uses the syscf file. It is easy to reverse the two file suffixes, and the resulting error message does not identify the exact problem.
Once the resource manager (resadm), the emulator (flexes), and the command line interface (flexescli) are started, you may find the following CLI commands useful:
If your emulated 3270 terminal operation is erratic, be certain you know where the 3270 Enter key is located, and where the 3270 New Line key is located. You may be creating a 3270 Enter operation when you intended to use the New Line key.
Be certain that your the disk model numbers are consistent. For example, if you created a
38 S/390 PID: ThinkPad Enabled for S/390
5.2 Operating Systems Messages console
Larger S/390 machines have an Operating Systems Messages console function that is provided through the Support Element (SE) or a Hardware Management Console (HMC). This console function is sometimes known as the ???system console??? or the ???hardware system console.??? OS/390 attempts to use it if all other MVS consoles fail.
5.3 Security
As we explained earlier,
A ThinkPad/EFS owner must plan and manage traditional Linux security functions for the underlying Linux system, as well as traditional S/390 security management. If the ThinkPad/EFS platform is used only for S/390 operation, this can be fairly simple.
A unique concern involves the OS/390 master console(s). These can be implemented through the Terminal Solicitor. This is convenient, but offers an opportunity for an unwanted person to connect as a master console. We suggest that you have a master console on the ThinkPad display and direct any other master consoles1 to specific IP addresses and not through the Terminal Solicitor. This is done by specifying an IP address in the
The
5.4 Server memory
The memsize + essize + cachesize*11 + DASD cache (described in ???System definitions??? on page 73 ) total values (when translated to bytes of storage) approximate the amount of Linux virtual storage needed to run an instance of S/390 emulation. If you emulate two S/390 systems (at the same time), you will need to add the values for each of the two emulated systems.2 You can emulate more S/390 instances, but each one will require more memory.
1We are using the term ???master console??? loosely here to mean any OS/390 operator console.
2Some of the DASD cache memory may be shared among multiple emulated S/390s.
The key principle is that the Linux system should not be forced to page when running S/390 emulation. Linux might perform considerable paging when getting started, but once a S/390 instance is started and the system working set is established, the average Linux paging rate should be close to zero. (S/390 operating systems running in the emulated S/390 might have much higher paging rates; this is not the point at issue here.) This almost always means that the ThinkPad real memory must be considerably larger than the emulated real memory of all the S/390 instances that are active at any one time.
In principle, the Linux memory needed to emulate a S/390 is ???just??? virtual memory to Linux and might exist in a much smaller real memory used by Linux. In practice, this does not work well. Your ThinkPad should have enough memory so that all the S/390 requirements (memsize + essize + cachesize*11 + DASD cache) fit in your real ThinkPad memory, without requiring Linux paging. If you assume 100 MB for Linux,
This leaves a reasonable margin in a 512 MB system. The 100 MB for Linux is just a guess. The working sets (as seen by Linux) of the emulated S/390 memory (central and expanded), the
The working set of Linux itself and its many system processes are much harder to determine.
5.4.1 The vmstat command
The traditional UNIX command for monitoring swapping3 rates, sar, is not available in base Linux distributions. The vmstat command can be used instead. For example, the command vmstat 10 2 means to run vmstat with 10 seconds between reports and quit after 2 reports.
You should refer to your Linux documentation or man listings for more complete information about vmstat. Very briefly, the key fields are documented as:
???Procs
???r: number of processes waiting for CPU time
???b: number of processes in uninterruptable sleep
???w: number of processes swapped out but otherwise runnable
???Memory
???swpd: the amount of virtual memory used (in the swap file) (kB)
???free: the amount of idle memory (kB)
???buff: the amount of memory used as buffers (kB)
???Swap
???si: amount of memory swapped in from disk (kB/s)
???so: amount of memory swapped out to disk (kB/s)
???IO
???bi: blocks sent received from a block device (blocks/s)
3 In S/390 terms, we would say paging rates. In older contexts, swapping has a different meaning than paging. In modern Linux systems, swapping appears to have exactly the same meaning as paging.
40 S/390 PID: ThinkPad Enabled for S/390
???bo: blocks send to a block device (blocks/s)
???System
???in: the number of interrupts per second (including clock interrupts)
???cs: number of context switches per second
???CPU
???us: user time (percent of CPU time)
???sy: system time (percent of CPU time)
???id: idle time (percent of CPU time)
We are particularly interested in swap (paging) rates. Notice that the unit of measurement is kilobytes per second.
The Linux swapping rate is meaningful (for our discussion) only in a
5.4.2 Importance of Linux swapping
Why is the Linux swapping rate so important? A reasonable analogy is CICS paging in an OS/390 system. A system with many TSO users might have sustained paging rates of hundreds of pages per second (on a larger S/390) with no ill effects, but CICS on the same system would require a paging rate close to zero. The problem is that the whole address space (CICS, for example) is placed in wait when a page fault occurs. Placing CICS4 in wait causes all the CICS users serviced by that address space to wait while the page fault is resolved. A page fault in a TSO user address space causes only that one user to wait.
Remember that a page fault in a
The key message is that you should adjust your
4Modern CICS systems ameliorate this situation in various ways; the description here should be regarded as conceptual.
5Again, we stress that ???Linux paging??? refers to
5.5 Ultrabay
ThinkPad A21 and A22 units have a ???bay??? that can hold a
5.5.1 Using a second Linux hard disk
The preparation and use of a second hard disk is discussed in ???Ultrabay??? on page 42. After it was available, we created three
The ckdfmt commands take some time to run because both write the complete emulated 3390 volume. The
We obtained a second 32 GB hard disk drive (IBM part number 08K9511), along with the mounting tray (IBM part number 08K6068) needed to use it in the Ultrabay. We removed the
The first hard disk (internal in the ThinkPad) is /dev/hda; looking at the above listing, we see a second hard disk as /dev/hdc. This drive (as expected for a new disk) had no partitions. (We do not know why Linux selected hdc instead of hdb, which would logically be next in sequence.)
We decided to create two file systems on the second hard disk. One would be about 2 GB and use mount point /holding. The other would use all the remaining space and have mount point /s391. We intended to use /holding for compressed tar images (created as backups) and other temporary files and we might have considerable creation/deletion activity in this file system. The /s391 file system would be solely for emulated S/390 volumes. Using two file systems seemed to reduce the chances for significant fragmentation of emulated volume files.6
We also noted that IBM, like most other manufacturers, uses decimal numbers to describe disk capacity (1M = 1,000,000) while Linux utilities typically use
6 We may have been too sensitive about fragmentation. Experienced Linux users claim there are practically no fragmentation effects in normal Linux file systems. However, they admit that
42 S/390 PID: ThinkPad Enabled for S/390
We partitioned the disk with fdisk and formatted it:
#mount /dev/hdc2 /s391
#chown flexes:flexes /holding (change owner and group identities)
#chown flexes:flexes /s391
We used the new disk space to confirm that it worked, and then edited /etc/fstab to cause the new file systems to be automatically mounted at boot time. (There are no unwanted effects if the second hard disk is not present when Linux is booted; the file systems on that disk are simply not mounted.) We added two lines at the end of fstab:
5.5.2 Second disk planning
It is unlikely that the second hard drive will always be installed when
The difficulty is that, if a file on the second hard disk (such as an emulated S/390 volume) is specified in a
???We defined a complete IPLable system on the primary hard disk drive. (For the OS/390 R10 AD system, this required four
???We defined a
???We placed optional OS/390 volumes (DLIBs, work volumes, and so forth) on the second hard disk drive.
???We created another set of
There is a slight inconvenience in this method. We need to keep the common parts of both definitions synchronized, and this sometimes means double editing is required when changes are made. Both sets of definitions and the associated shell scripts are listed in Appendix A,
The remaining general discussion in this section assumes that both disk drives are mounted.
5.5.3 Disk layout (AD system)
Since we had two hard disks for our ThinkPad/EFS system, we decided to split the S/390 volumes between them. This might produce a small benefit in overlapped disk operation. We decided to place an IPLable system on the primary drive and optional volumes on the second drive. There was no special reason for this plan, but it seemed reasonable. We had ample space and could install many more 3390 volumes, if needed. We could have, for example, installed two AD releases as well as several user volumes.
We used the following layout for our OS/390 AD R10 system:
We placed our S/390 volumes (for the OS/390 AD R10 system) as follows:
/S390 (on Primary hard disk)
44 S/390 PID: ThinkPad Enabled for S/390
(about 12 GB still available)
Since the
$ cp /s390/OS39DA /s391/OS39DA $ cp /s390/OS3DAA /s391/OS3DAA $ cp /s390/OS3DAB /s391/OS3DAB $ cp /s390/OS39PA /s391/OS39PA $ cp /s390/OS3PAA /s391/OS3PAA $ rm /s390/OS39DA
$ rm /s390/OS3DAA $ rm /s390/OS3DAB $ rm /s390/OS39PA $ rm /s390/OS3PAB
The three work volumes are not part of the AD system. We created them with the ckdfmt command:
$ ckdfmt
$ckdfmt
5.5.4Alternative method
We described using two
5.6
FakeTape8 emulates tape devices using Linux disk files instead of tape drives. Provided the appropriate tape devices are defined in the OS/390 IODF configuration data set, FakeTape will emulate any type of tape drive from 3420 to
This is one of the jobs we executed:
7We elected not to restore the other AD volumes containing IMS and WebSphere components.
8FakeTape is a trademark of Fundamental Software, Incorporated.
//UNIT=560,LABEL=(1,SL),VOL=SER=222222
We submitted the job and the IEF233A mount request was issued by OS/390. The console interaction went like this:
IEF503I UNIT 0560 I/O ERROR
IEF234E D 0560
IEF233A M 0560,222222,P390T,,PROCLIB
(at this point, go to the flexescli window and issue the command (flexes> mount 560 /tmp/222222
3,222222
As seen in this interaction, we submitted our job. The tape drive was offline and OS/390 requested that we provide a device. We answered with the device address, 560. We next received a mount request for volume 222222 (taken from our JCL) on unit 560. At this point, we switched to the CLI window (with the flexes prompt) and entered mount 560 /tmp/222222. This file name was quite arbitrary; if you plan to use many emulated tape volumes, you will probably want to create a directory for them (and perhaps a whole file system for them).
OS/390 attempted to read the tape label (using an empty /tmp/222222 file) and received an error. This causes normal recovery processing for tape labels. We entered a volser (222222) in response to message IEC704A, and the job ran correctly. OS/390 rewound and unloaded the ???tape??? at the end of the job. This logically unmounted the file and made the tape drive logically not ready.
We later read the tape and printed (to SYSPRINT) the tape contents. The process was about the same, except our tape file (/tmp/222222) now had a correct label and was immediately accepted after we entered another flexes> mount 560 /tmp/222222 command.
Server files used by FakeTape are normal files in the server???s file systems. With a little
FakeTape can automatically recognize and handle data in AWSTAPE and AWSOMA formats, as produced by
46 S/390 PID: ThinkPad Enabled for S/390
Several special options are available for FakeTape resource definitions:
c3480: cu 3480
options ???maxwritesize=200,allowdisconnects,allowmountccws,autoloader??? device(00) 3480 OFFLINE
end c3480
The maxwritesize option is important. It specifies (in megabytes) the maximum size of an emulated output tape. If your output approaches this size, FakeTape will signal an
???You might consume all the free space in the server file system.
???You will never have
In our opinion, you should always have a maxwritesize specification when using FakeTape. Unfortunately, you cannot specify option values in a
(The maxwritesize parameter also applies to DAT tapes. DAT drives do not signal that they are near the end of the tape (to permit trailer records to be written). They signal
The other options are more specialized and you may never need them with FakeTape.
5.7
You can define multiple S/390s by defining multiple
Only one resource definition (rescf file) can be active on a server, so it must define all the resources needed by all the S/390 instances. Each S/390 instance must be started with a unique system definition (syscf file). You would normally start a separate CLI window, with its flexes prompt, for each instance. Some care is needed to use the right flexes windows when controlling the S/390 instances. The CLI command set prompt can be used to change the flexes prompt to something more meaningful for each instance.
The redbook
5.8 x3270 client
The
An x3270 window (on the Linux console) is started with the command:
You can optionally identify the
$ x3270
In this case, your resources definition (or a prior
The x3270 command must be in the current search path, of course.9 It is in the /usr/flexes/bin directory, and we suggested placing this in the current PATH. The model parameter refers to 3270 models:
527 lines x 132 columns
These are standard 3270 family model designations. Model 3 use is perhaps the most common and that is what we used.
Important keyboard mapping for x3270 includes:
9 You must make certain than another x3270 program does not appear first in the search path, as discussed in ???X3270??? on page 20.
48 S/390 PID: ThinkPad Enabled for S/390
This key mapping may be disconcerting to experienced 3270 users (especially ISPF users) because it uses the large Enter key (on the PC keyboard) as the 3270 Enter key. On a ???real??? 3270, the large key in this position performs a New Line function, and a smaller key (where the Right Cntrl key is positioned on a PC keyboard) performs the 3270 Enter function. You can correct this situation by the following:
You will need to use :w! to save the file in vi, because it is a
We changed the large Enter key on the PC keyboard to perform the 3270 New Line function, the Left Cntrl key to perform the 3270 Reset function, and the Right Cntrl key to perform the 3270 Enter function. This is the most familiar keyboard arrangement for most 3270 users.
5.9 Remote resources
Setup for this type of operation can be recognized by the keyword network in channel definitions and in cu definitions.
We did not use remote resources for our redbook project. Our project concentrated on setting up and operating a basic ThinkPad/EFS system, and we did not need remote resources for this. However,
A conceptual network is shown in Figure
System and device definitions are required on all three systems. These would include the following lines:
System A:
adisk: cu 3990 interface network(1)
System B:
channel(3) network channel(4) network
cu devad... path(3) resource(adisk) cu devad... path(4) resource(atape)
System C:
atape: cu 3480 interface network(1)
Figure
5.10 Disk caches
???Specify a different number of tracks to cache for a particular emulated drive.
???Specify a different number of tracks to cache at the control unit level; excess tracks (above those needed for the specified or default cache for each device on the control unit) will float, as needed, among all the devices on the control unit.
50 S/390 PID: ThinkPad Enabled for S/390
???Use the writethroughcache parameter to force a different operation of the cache (on a device or control unit level). The default operation uses a writeback cache technique.
Here is an example that uses all three options:
This is a bit complex. The five devices defined will ask for (15 + 5 + 45 + 30 + 0 =) 95 tracks of cache. (Device (00) does not specify a cache size and defaults to 15 tracks.) The control unit definition specifies 150 tracks of cache. This is (150 - 95 =) 55 more tracks than needed by individual device caches, and the 55 tracks will be a floating cache. The floating cache is managed by internal
Cache is normally allocated for an offline device, since you might perform a
If you specify a control unit cache size of less than the sum of the individual device caches, the specified control unit cache size is ignored.
A writethrough operation means that the S/390 channel operation for a disk write is not complete until the data is actually written to the Server disk.11 A copy of the data is retained in the
If you have enough Server memory, you can specify large disk caches for better overall system performance. There is obviously room for considerable tuning here, by manipulating cache sizes at the device and control unit level. You can use the d ckdcachestats cuu command to monitor cache effectiveness:
10This should be a familiar concept. The typical UNIX operation involves writeback caches, where the disk cache buffers are synched (flushed) to disk every 10 seconds or so.
11This is not quite correct, because the RAID adapter also has a cache and the individual disk drives often have a buffer that performs a temporary cache function. We ignore these points in the current discussion.
The command can specify any device address on the control unit. The dedicated lines column indicates the number of dedicated
You can display the definition of an emulated disk with the d devstate cuu command:
flexes> d devstate A87
Filename: /s390/OS39HA State: OPEN, READY
Options: trackcachesize=30
5.11 Tuning cachesize
The
You can monitor the effectiveness of the instruction cache with the d cachestats command:
The number of cache misses in this report is the critical information. If this number is above about 4%, you should increase your cachesize parameter. (But never increase it to the point where Linux starts paging!) If the number is considerably less than 4%, you might make better use of your Server memory by increasing the defined S/390 memory size, defining more S/390 expanded memory, or increasing disk cache sizes. The CLI command clear cachestats will reset the statistics.
FSI has not documented the meanings of the other statistics in this report.
5.12 FSI Channel Adapters
The following FSI hardware adapters are not supported for ThinkPad/EFS systems:
???Parallel Channel Adapter (both versions)
???ESCON Channel Adapter
???ICA Adapter
The required
???ThinkPad/EFS systems are not intended for production use. Different users will define production in different ways, and we will not attempt to make a rigorous definition here. Supporting these adapters could place ThinkPad/EFS in a potential production environment, and this has too many exposures (especially in the RAS area).
???These adapters would require docking stations that could accept
52 S/390 PID: ThinkPad Enabled for S/390
???Extensive testing would be necessary to verify PCI bus functions with the FSI adapter cards in this environment. This has not been done.
5.13SCSI adapter for the ThinkPad
Potentially, one might provide an SCSI interface to the ThinkPad and connect external SCSI tape drives. The supported ThinkPad models do not have this capability, but there are
5.14 Disk fragmentation
The raw disks used with
The standard Red Hat 7.1 distribution does not contain a standard defrag command. Several
We took the following approach:
???A file system performs contiguous file creation when the file system is new.
???We placed S/390 volumes in separate file systems (/s390 and /s391).
???Generally, we did not place anything else in these file systems. (There are always exceptions, of course, and several of our backup/restore methods used files in these file systems.)
???The slight fragmentation caused by, for example, deleting three (discontiguous)
More work is needed to understand the effects of fragmentation on
5.15 Backup and restore considerations
Since a typical12 ThinkPad/EFS cannot directly connect to tape drives, the backup options are more limited than for a Netfinity/EFS system. Still, backing up and restoring S/390 data has interesting variations. The most basic element involved is where to store your backup data. There are several options:
12 A ThinkPad/EFS system might use remote
???You can store S/390 backups on the ThinkPad disks, as Linux files. This provides logical backup of S/390 data, but does not provide protection against physical failure of disk drives.
???You can ftp back up data (in a variety of formats) to another system. This provides protection against physical system failures.
There are two general formats for backed up data:
???A file at the Linux level
These files contain a complete emulated S/390 volume. It is easy to restore the complete volume, but quite messy to restore a single S/390 data set.
???A S/390 backup, using the OS/390 program ADRDSSU or equivalent
This backup would be written to a FakeTape file. Once written, this file can be treated as a normal Linux file. It could, for example, be ftped elsewhere for safety. This type of backup requires the use of OS/390 jobs and may be slower than purely Linux backup functions. It has the strong advantage that single S/390 data sets can be restored easily.
5.15.1Using tar to back up S/390 volumes
An emulated S/390 volume, such as a 3390 volume, is typically a single Linux file. You can back up this volume simply by copying the Linux file somewhere else in your Linux file system. It would be advisable to copy it to another physical disk drive, if possible, for obvious reasons. Emulated volumes are large Linux files and a ThinkPad has limited disk space. Using a compression program as part of the backup process is attractive.
We performed a small test, as follows:
1.We used a tar command to archive the file into a compressed tar file, which we named OS39RA.tarz. The z option in the tar command requests compression. The tar/compression step took about 12.6 minutes. The file was saved as a relative name (without the leading /).
2.The ls
3.We created a new directory, untar, so we could recover the file without destroying the original.
4.We changed to /s390/untar and issued another tar command to extract the file. The additional flags (k w) provided reassurance that we would not overlay our original file. The tar extraction placed the extracted file in the current directory (/s390/untar), but with the additional s390 directory name, and an ls
54 S/390 PID: ThinkPad Enabled for S/390
5.We intended to use the cmp command to verify that the restored file matched the original file, but it appears that this command does not work with files larger than 2 GB.
The complete operation took place on a single HDD in the ThinkPad. Linux disk buffering was very effective and HDD seeking was not excessive during these operations, judging both from the sound of the HDD and observed performance.
The disadvantage of this backup method is that single S/390 data sets cannot be restored from the backup file. (Of course, you could restore the file containing the S/390 volume, rename the file, add it to your
We did not try this, but we could have first backed up the S/390 volume (with ADRDSSU) to create a FakeTape file and then processed this file with tar. This would require more processing and more Linux disk space, but this process could be used to restore individual OS/390 data sets.
5.15.2 Using tar and ftp
One way to back up S/390 volumes on a ThinkPad/EFS system is to ftp the Linux file containing the volume to another system. Using a 100 Mpbs LAN connection, especially on a private or local LAN, performance can be quite good. These files are large, by any standard, and ftp???ing compressed files probably makes more sense. We created the following shell scripts:
Shell script /usr/flexes/rundir/buOS39RAc
tar
Shell script /usr/flexes/rundir/buOS39RAp
open 9.12.17.220 user ogden xxxxxx bin
put /holding/OS39RA.tarz /s390/TP/OS39RA.tarz
We then executed these functions:
$ cd /usr/flexes/rundir $ sh buOS39RAc
tar: Removing ???/??? from member names s390/OS39RA
Connected to 9.12.17.220
220nfefs1 FTP server (Version
530Please login with USER and PASS.
530Please login with USER and PASS. KERBEROS_V4 rejected as an authentication type
331Password required for ogden.
230User ogden logged in/
200Type set to I.
local: /holding/OS39RA.tarz remote: /s390/TP/OS39RA.tarz
226Transfer complete
468091178 bytes sent in 57 seconds (8e+03 Kbytes/s)
221Thank you for using the FTP server on nfefs1
The tar function again took 12.6 minutes and the ftp function took less than one minute. We used a private 100 Mpbs LAN connection, with no other active systems on it. The target system (our Netfinity/EFS machine) was otherwise idle during this time. It would have been faster to ftp /s390/OS39RA than to tar it, but we wanted the disk compression offered by tar. We created the /s390/TP directory on the target system before we ran the script.
We elected to use a separate tar file for each volume. A single, combined tar file would be very large and too unwieldy. We simply made more shell scripts; two for each S/390 volume we wanted to back up.
We could, of course, take ADRDSSU backups (to FakeTape files) and then tar and ftp these files. This might be the best solution, although it would require the most processing and ThinkPad disk space.
There are clearly several ways to approach backup and restore for a ThinkPad/EFS system. We cannot recommend any as the right way, and you will probably use a combination of techniques. We strongly suggest that you take time to understand the options available, try whatever is appropriate for you, and establish a routine for taking backups.
This discussion has not mentioned backing up the Server operating system. Ideally, we should be able to capture the complete Server state in a form that can be restored by a standalone boot program. The options are somewhat limited, since our ThinkPad/EFS systems do not have tape drives or
5.15.3
At least one of the base ThinkPads used for EFS systems has an optional
5.16 S/390 identification
The S/390 instruction STIDP stores an
0APLSSSSIIII0000
||| | |
||||
|||
The processor type field for an EFS system has one of these values:
1245 is the processor type for a system based on xSeries 430 1247 is the processor type for a system obtained through PID 1246 is for all other EFS systems
The SSSS field is normally set to a unique value for each license and functions as a CPU serial number. The LPAR number is usually zero, but you can set it by a statement in the system definitions. The processor number corresponds to one of the processor numbers in your system definitions. For a single processor, this is normally zero.
56 S/390 PID: ThinkPad Enabled for S/390
In most cases, these fields are set by the
5.17 Display PSW and registers
You may sometimes need to display the S/390 PSW. You can do this from the flexes prompt provided by the CLI program:
5.18 RAS discussion
Is a ThinkPad/EFS system as reliable as a ???real??? S/390? No. A reliability discussion can quickly become extended and open ended. We need to include Netfinity/EFS systems as part of the following discussion. We can summarize our views this way:
???A Netfinity/EFS or a ThinkPad/EFS system is not a S/390 (or a z900) system in terms of reliability. It does not have dual instruction units in each processor, or an Application Preservation function, for example.
???A Netfinity/EFS system is based on a very
???ECC memory
This is extremely important in preventing the random lockups and crashes that many PCs experience.
???Use of a RAID adapter
???ECC memory in the RAID adapter, for the same reasons
???Battery operated cache in the RAID adapter
???Multiple, redundant power supplies
???Selection of a very stable Server operating system (UnixWare)
???Absence of random applications (of uncertain trustworthiness) on the Server (That is, games are not downloaded from random sources on the Web, we hope.)
???Thorough physical inspection of the Netfinity hardware by the business partner involved
While this sounds trivial, it contributes to stability.
???Using a UPS system ???in front??? of the Server
???Better cooling
This is a significant factor for a system that is intended to run continuously.
???A ThinkPad/EFS is based on a quality laptop system, but this does not compete with a Netfinity/EFS server in many RAS characteristics.
???The ThinkPad does not have RAID protection for its disk(s). With a single disk drive, or, at the most, two drives, there is no practical method to add RAID protection.
???Multiple power supplies are not available.
???ECC memory is not used, for a number of reasons.
???Interfaces (such as SCSI or S/390 channels) are not typically available to ThinkPad/EFS users, making routine system backup functions more difficult.
???Cooling effectiveness, especially when used without a docking station, can be greatly influenced by the exact location and positioning of the ThinkPad.
If you must have S/390 RAS, you need to buy a S/390. We believe a Netfinity/EFS system will provide more than adequate reliability within its place in the hierarchy of servers. A ThinkPad/EFS system is not intended as a production system and should not be compared with the RAS characteristics of production systems.
5.19 Verify ckd disk
The chkckd command can be used to verify the internal format of an emulated S/390 ckd disk:
The
$ ckdchk
FSIDU166 [cyl = 99 head = 14 rec = 1] Record cylinder number on ???OS39M1??? does not match home address cylinder number (hacyl: 0x0063 reccyl: 0x0d70)
We also get these messages for some of the OS/390 AD volumes built for P/390 emulated I/O; we do not know the cause, but have not had any other problems with the volumes.
If an emulated ckd drive contains improper formatting, something is very likely to go wrong during S/390 operation. This can range from crashing one of the
The only recovery possible is to restore the volume from a backup of some type.
5.20 Linux windows
We found that we often had four windows (terminal emulation progrms) open on the Linux desktop:
???A window running flexescli (with the flexes prompt)
???A Linux command line window with su to root
???An x3270 session for the OS/390 master console
???An x3270 session for TSO
The root window was useful for issuing resadm commands. The window with the flexes prompt is generally required for
Our typical startup process went like this:
58 S/390 PID: ThinkPad Enabled for S/390
Operate OS/390 as normal, using 3270 sessions. Shut down OS/390 when finished.
This process can be automated or abbreviated in a number of different ways. We wanted to keep a straightforward, manual control over
Another window (not root) was sometimes useful for running vmstat commands and similar utility functions. (This could be done from the root window if you ignore the usual advice to avoid root usage except when specifically required. Or, you could exit from root in Window 1 and work from there.)
5.21 Installing
Installing a new
#cd /mnt/cdrom
#rpm
(a few messages appear)
#rpm
(a few messages appear)
#rpm
The old
5.22 ThinkPad power control
After installing Linux on our ThinkPad, we found that the suspend function (that is, closing the ???lid??? of the ThinkPad) worked correctly when Linux and
We went into the ThinkPad BIOS (F1 after starting the ThinkPad) and changed all the
5.23 Useful Linux commands
Not all ThinkPad/EFS owners have Linux or UNIX backgrounds, and a few brief notes may help these users.
Common commands
New users may find Linux commands a little confusing. The following is intended as a brief reminder of the syntax for a number of commands often used while working with Linux in a ThinkPad/EFS environment.
13 When we first installed the ThinkPad, we quickly checked the BIOS controls and thought we disabled any automatic
60 S/390 PID: ThinkPad Enabled for S/390
Multiple consoles, sessions, screens
Linux offers multiple consoles on the PC (or ThinkPad) display. The keys
You can also have multiple command line windows open on the desktop. These do not require separate logins.
Text editors
Traditional UNIX users and many Linux users regard vi as their primary text editor. Traditional mainframe users often avoid vi, if possible. The kde desktop offers the Advanced Editor, which can be started from the fountain pen nib icon in the toolbar. This is much like a simple PC text editor and very unlike vi. It is suitable for almost all the text editing we required while installing and customizing
62 S/390 PID: ThinkPad Enabled for S/390
6
Chapter 6. Frequently asked questions
Q: Can I install a boot manager and have Linux (with
A: Yes, but you will need to do the installation yourself. You might consider completely removing the primary hard disk and replacing it with a disk containing whatever version of Windows you prefer. However, the primary hard disk (as opposed to a second hard disk) is not intended for frequent removal.
Q: Does each S/390 user need a Linux userid?
A: No. A typical OS/390 TSO user, for example, never ???sees??? Linux.
Q: Must I use vi to administer the Linux system?
A: No. Linux has a number of other editors, some of which are very
Q: Why do I need to define emulated control units and channels? I did not need to do this with emulated I/O on P/390 and MP3000 systems. For these machines, I could simply define emulated devices.
A: There are two major reasons. The first is that working through (emulated) channels and devices provides a more accurate emulation of S/390 hardware. In most cases this has little practical effect. The second reason involves emulating multiple S/390 instances, and sharing emulated
Q: How real is the channel emulation? Can I make my system faster by defining lots of channels and spreading out my I/O devices?
A: As best we could tell, the emulated channels are not very real in this sense. Many system definitions we examined define only two or three channels of each channel type. We have noticed that it appears necessary to define separate channels for emulated 3174 or 3274 control units.
Q: I understand that a LAN MAC address is used to control
A: No.
Q: Can I run a ThinkPad in 24x7 operation? (24 hours/day, 7 days/week)
A: There is no rule against it, and some ThinkPads are left running in docking stations. However, in our opinion, this is not a reasonable solution for an EFS system. The
Q: Will the
A: There are really two questions here. The UnixWare version of
Q: Can I use token ring LAN adapters? You mention only Ethernet.
A: Yes, token ring can be used. We usually discuss Ethernet because (1) it is what we used, and (2) the majority of EFS users will probably have Ethernet LANs. You should obtain the current status from your business partner.
Q: How many Ethernet adapters should I have for the ThinkPad?
A: One should be sufficient, and will probably be the
Q: Can I use the FSI channel adapters or ICA adapter with a ThinkPad? I could put them in a docking station.
A: No. This is not supported.
Q: Can I have ???odd size??? 3390 drives, such as a 100 cylinder 3390 on a P/390?
A: No. Only standard size drives are emulated.
Q: An emulated
A: A standard
Q: Are 4mm tapes compatible between my MP3000 and my Netfinity/EFS system?
A: Yes, they should be, for those EFS systems that support 4mm drives. (ThinkPad/EFS does not support SCSI tape drives.)
Q: How many emulated S/390 devices can I have?
A: There is a
Q: I have a fixed amount of real memory in my ThinkPad. You say that I should not overcommit this for S/390 emulation. Should I make my emulated S/390 central storage as large as possible (without triggering Linux swapping) or should I define some expanded storage at the expense of central storage?
A: Provided you do not exceed the maximum 2 GB permitted for central storage, we think
64 S/390 PID: ThinkPad Enabled for S/390
that Server memory is better used as S/390 central storage than as S/390 expanded storage. However, you might have specific applications that require expanded storage, so we cannot provide an absolute answer. You face the same quandary when dividing up real memory on an MP3000, for example, between central storage, expanded storage, and a disk cache.
Q: Several ThinkPad processor speeds are available. The model you used for this redbook (750 Mhz) is one of the slowest. Can I use a faster processor?
A: Yes.
Q: Can I write FakeTape files from my UNIX and Linux applications?
A: Yes. The format is well documented. APIs are provided if you work under UnixWare and Linux.
Q: How many x3270 sessions or TN3270 sessions can I have on the ThinkPad display?
A: There is no particular limit. Reasonable screen usage might indicate a practical maximum of something like three or four.
Q: Should I use Terminal Solicitor sessions (via Linux TCP/IP) or OS/390 TCP/IP connections for my TSO and CICS users?
A: Assuming OS/390 TCP/IP is configured and working, it does not appear to make much difference. OS/390 TCP/IP connects TN3270 sessions to VTAM and whether VTAM is using a local,
Q: When I connect via OS/390 TCP/IP, I do not get the terminal logo I always receive if I connect via the Terminal Solicitor. Why not?
A: This is due to your OS/390 TCP/IP setup. The OS/390 TCP/IP PROFILE needs to point to a USSTAB module that generates the logo. Recent AD releases have this set up.
Q: Can I connect to OS/390 with an ASCII telnet session? I want to use vi.
A: Yes, although this is not really a ThinkPad/EFS question. Recent AD releases have port 1023 (of OS/390 TCP/IP) configured for ASCII telnet sessions. If you are not using an AD release, you will need to configure OS/390 TCP/IP.
Q: I have the impression there are frequent
A: In general, releases are obtained through the IBM business partner from which you purchased the system. You should upgrade only when a later release contains a feature you need. Information on what is new in each release can be obtained from your IBM business partner.
Q: I have the latest z/OS AD release. Can I run it on a ThinkPad/EFS?
A: Yes. The latest
Q: Where can I order a printed copy of the
A:
Q: Can I use the ThinkPad for other purposes when
A: When
may force Linux swapping and this has severe effects on
Q: Should I purchase an Uninterruptable Power Supply (UPS) for use with my ThinkPad/EFS machine?
A: The ThinkPad battery provides, in effect, a UPS function. You might consider an external surge protector.
Q: How do I order a ThinkPad/EFS system? What if I am not a PID member?
A: You do not need to be a PID member to order a ThinkPad/EFS system (although you will not have access to AD
Q: Where can I find documentation about the various
A:There are several
???The processor event trace is always active and uses a permanently defined circular buffer. It is intended only for
???The processor instruction trace uses the tracesize buffer you define in your system definition. It is intended for
???Device traces, which are usually obtained with the devtrsnap command. These are not documented at present, but a user familiar with channel programming techniques might find these traces useful.
The traces are not well documented at this time.
Q: Are any modifications, PTFs, or SPEs required for OS/390 on EFS?
A: No.
Q: Are printer FCBs emulated?
A: Yes.
Q: Is a default 1403 carriage tape emulated?
A: Yes. It is set for 66 lines at 6 lines/inch, and has a channel 1 ???punch??? at line 3. There is no way to alter these settings.
Q: Are Token Ring and Ethernet equally supported?
A: No. (We were still researching this question at the time of writing.)
Q: Can I manage an ESCON director from an EFS system?
A: Not from a ThinkPad/EFS system!
Q: I am interested in using
A: Yes, you will need a
66 S/390 PID: ThinkPad Enabled for S/390
Q: If I obtain faster ThinkPads, can I ask FSI to alter my license? Do I need to notify IBM?
A: Yes, you can ask FSI for a new license key. (You must do this because your old key will not work with the faster processors.) You do not need to purchase a new license, assuming you have retained the same dongle. FSI does not notify IBM or any other software vendor. You need to manage any potential S/390 software fee changes related to the increased MIPS of your new machine. This is obviously a complex area, and these processes may change in the future.
Q: What is the difference between swapping and paging?
A: None, in these discussions.
Q: You mention MIPS in the
A: Both and neither. An emulated S/390 has a much wider range of MIPS than a ???real??? hardware S/390. Any MIPS measurement is very strongly dependent on the instruction mix and the addressing mix involved, as well as the emulation techniques used. We could probably contrive code to produce anything from below one MIPS to 30+ MIPS. We try to use conservative numbers in this series of redbooks, while marketing representatives tend to use optimistic numbers. An exact MIPS number simply does not exist.
Q: How is floating point performance?
A: It is acceptable for casual use, but you would probably not select this platform for major floating point applications. Binary (IEEE) floating point has considerably better performance than hex floating point.
Q: There are always new Linux functions available, as well as kernel fixes and upgrades. Should we install these? Do we need to reinstall any part of
A: If you have a stable system, we suggest you do not apply Linux changes. You should regard your EFS system as a S/390 and not as a Linux machine. If you do rebuild the Linux kernel, you will need to reinstall the
Q: How can I tell whether my Ethernet connection is running at 10 or 100 Mbps?
A: We did not find a convenient way to do this at the ThinkPad end. Many Ethernet hubs have an LED that indicates 100 Mbps operation and you might look for this.
Q: Can I use DHCP to obtain a LAN IP address?
A: Yes, you could do this for Linux TCP/IP, but not for OS/390 TCP/IP. However, this is probably not a practical solution. Your EFS system is essentially a S/390 server, not a client, and you will probably need a stable IP address for it.
Q: How difficult is it to change the IP address of my system?
A: You are likely to have two IP addresses: one for Linux and one for OS/390. To change the OS/390 address you must edit the PROFILE data set and then restart TCPIP. If you are sharing a ThinkPad Ethernet adapter with Linux, you will also need to change the IP address in the
(gnome): Programs
Q: As a developer, I sometimes need a real
A: We did not have time to experiment with printers while writing this redbook. This can become a complex topic quickly when network printers are considered. We hope to provide more detail if a
Q: How long does the ThinkPad battery last?
A: With our fully loaded system (512 MB, two disk drives, heavy computational load) the battery usually lasted about 50 minutes.
Q: Is SNA available over Ethernet?
A: Not yet, at the time of writing. When it is available, the selection of DIX versus IEEE802.3 frames will be done by selecting an appropriate control unit type in the
Q: Can I use a locally administered MAC address for Ethernet?
A: We have never done this, although it appears that some Ethernet drivers appear to support this option.
Q: How many Ethernet adapters do I need if I want to use SNA and TCP/IP?
A: We do not know yet.
68 S/390 PID: ThinkPad Enabled for S/390
A
Appendix A.
This section lists the
Basic definitions for a single HDD
Our system and resources definitions (both in the same file) used for the four volumes required to IPL the OS/390 Release 10 AD
system S10A: memsize(262144)
cachesize(2048)
essize(64)
instset(esa)
cpu(0) channel(0) local channel(1) local channel(2) local
cu devad(0xA80,8) path(2) resource(R10A3990) cu devad(0x700,3) path(0) resource(R10A3174) cu devad(0xE20,2) path(1) resource(R10A3172) cu devad(0x560,1) path(2) resource(R10A3480) end S10A
resources R10A: R10A3990: cu 3990 interface local(1)
device(00)
R10A3174: cu 3174 interface local(1) device(00) 3278 mstcon device(01) 3278 M701 device(02) 3278 M702 end R10A3174
R10A3172: cu 3172 interface local(1)
options 'ipaddress=9.12.17.211' device(00) 3172 eth0
device(01) 3172 OFFLINE end R10A3172
R10A3480: cu 3480 interface local(1) device(00) 3480 OFFLINE end R10A3480
end R10A
Some
The four AD system volumes used for our initial IPL are normally mounted at addresses A80, A81, A82, and A87. The ???gap??? between A82 and A87 required the definition of several OFFLINE 3390 volumes. (In this case, the device model
(If the AD
The tape definition is OFFLINE. This means that
Shell script for a single HDD
After using cfcomp to compile the above definitions, we used this shell script to start operation. (A resadm
flexes S10A.syscf
xmodmap
xset fp rehash
echo 'Verify your master console is active'
x3270
70 S/390 PID: ThinkPad Enabled for S/390
Definitions for two HDDs
The following definitions assume that the second ThinkPad hard disk is mounted and contains the optional volumes discussed in text. Since these definitions reference files on the second hard disk (with mount point /s391), they can be used only when the second hard disk is installed (and the file system mounted). Note that the system name is now S10B and the resources name is R10B.
system S10B: memsize(262144) cachesize(2048) essize(64) instset(esa) cpu(0) channel(0) local channel(1) local channel(2) local
cu devad(0xA80,9) path(2) resource(R10B3990) cu devad(0xA90,3) path(2) resource(R10B3991) cu devad(0x700,3) path(0) resource(R10B3174) cu devad(0xE20,2) path(1) resource(R10B3172) cu devad(0x560,1) path(2) resource(R10B3480) end S10B
resources R10B: R10B3990: cu 3990 interface local(1)
device(00)
R10B3991: cu 3990 interface local(1)
device(00)
R10B3174: cu 3174 interface local(1) device(00) 3278 mstcon device(01) 3278 M701 device(02) 3278 M702 end R10B3174
R10B3172: cu 3172 interface local(1)
options 'ipaddress=9.12.17.211' device(00) 3172 eth0
device(01) 3172 OFFLINE end R10B3172
R10B3480: cu 3480
Appendix A.
interface local(1) device(00) 3480 OFFLINE end R10B3480
end R10B
Shell script for two HDDs
This shell script is just like the first one, except that it uses system name S10B instead of S10A.
flexes S10B.syscf
xmodmap
xset fp rehash
echo 'Verify your master console is active'
x3270
72 S/390 PID: ThinkPad Enabled for S/390
B
Appendix B.
This appendix reviews a selected subset of the
System definitions
System definitions are usually something like this:
The first line (system S10A) provides a name for the system being defined. The
memsize always expresses kilobytes of storage. The largest accepted value is 2097152, which would define a 2 GB system. The size specified will be the size of central storage in the emulated S/390. There is no direct relation to the memory size on the ThinkPad server, although we strongly recommend that memsize be such that no paging is required by the underlying Linux system.
The parameter essize specifies expanded storage size and expresses megabytes of storage. Furthermore, the number specified must be an even multiple of 16. If essize is not specified, then no expanded storage is emulated. A specification of 64 means 64 MB of expanded storage.
The instset parameter should always be specified as instset(esa) for the OS/390 systems we are discussing.
The cachesize parameter specifies the amount of storage to be used by
The tracesize parameter specifies the number of entries in a
There is also a processor event trace that uses a permanently defined buffer. This event trace is always active and is not associated with the tracesize parameter.
The cpu parameters indicate the number of emulated S/390 CPUs and assign identification numbers to each one. Multiple cpu parameters are used to specify multiple emulated S/390 CPUs within a single emulated S/390. For example,
cpu(0)
cpu(1)
cpu(2)
as part of a system definition would specify an emulated S/390 with three CPUs. The CPU numbers (which are defined S/390 architecture elements) are 0, 1, and 2. The number of CPUs specified may not exceed the number of server processors enabled for S/390 emulation. For a ThinkPad/EFS system, this will be a single Pentium processor. Therefore, only one cpu parameter may be specified. (The single CPU may be given any number in the range 0 - 7, but there is no reason to use anything other than 0.) The dedicated keyword on a CPU definition statement means that the underlying ThinkPad processor will be used only for S/390 emulation; it will not be used for Linux work. This option cannot be used with a ThinkPad/EFS system because only one processor is available for both S/390 and other Linux work. Netfinity/EFS systems will normally have at least two Server processors and all but one will be dedicated to S/390 emulation (unless you are running multiple S/390 instances; in that case, the situation is more complex).
The channel parameters specify emulated channels and assign channel numbers. For example:
channel(3) local channel(1) local
74 S/390 PID: ThinkPad Enabled for S/390
defines two channels, with the channel numbers 3 and 1. The channel numbers must be unique, but need not be in sequence. The local keyword means the channels are emulated block multiplexor channels and are emulated using resources on the ThinkPad.1 The channel numbers (or path numbers) are somewhat arbitrary and do not necessarily mirror the channels you might have on a ???real??? S/390. The channel numbers you assign are not reflected in the device addresses (???device numbers???) used by OS/390.
The cu statement defines an emulated control unit. The devad parameter defines the beginning address and the number of (emulated) devices connected to the control unit. This address (or device number) is the address seen by the operating system. For example, if you want to ???IPL from A82,??? then address A82 would appear in a devad parameter.2 The path parameter specifies an emulated channel connected to the control unit. The resource parameter specifies the name of a section in a resource definition (described below) that defines the emulated devices connected to the control unit. Resource names, used in cu statements, must be unique.
The cu definition specifies a numberofunits for each cu. You must define this number of devices in the matching resource definition. For example:
cu devad(0xA80,12) path(2) resource(R10A3990)
specifies that 12 devices are attached to this control unit. The R10A3990 clause in the resources definition must contain 12 devices.
An end statement is required for the system definition, and the parameter should specify the same name as the system statement.
Resource definitions
Resource definitions refer to actual devices or files and are defined separately from system definitions. In practice, both a system definition and the corresponding resource definition might be in the same text file. Both must be ???compiled??? by the
Emulated control unit types
1Other types of channels may be specified, such as byte multiplexor and channels using remote (via TCP/IP) resources. These are described in detail in the FSI documentation.
2For this example, we might have devad(0xA80,8) as the parameter. This defines 8 addresses, A80, A81, A82, and so forth. A82 is named in this sequence.
Appendix B.
Emulated device types
Typical resource definitions
A simple set of resource definitions, corresponding to the system definitions above, might be:
resources R10A mema: memory
264 end mema
R10A2821: cu 2821 interface local(1) device(00) 2540R OFFLINE device(01) 2540P OFFLINE device(02) 1403 OFFLINE
end R10A2821
R10A3480: cu 3480 interface local(1) device(00) 3480 OFFLINE
end R10A3480
76 S/390 PID: ThinkPad Enabled for S/390
interface local(1)
options ???ipaddress=9.12.17.211??? device(00) 3172 eth0 device(01) 3172 OFFLINE
end R10A3088
end R10A
A resources block must have a name; R10A is used in this example. Each set of resources in the block must also have a name. Each set name should match a name in a cu statement in the system definition. The general syntax for defining a resource set is:
resourcename: cu cutype parameters
end resourcename
You assign a resource name. It must follow the
The memory definition is needed only if your system contains an FSI parallel channel adapter (either model) or ICA adapter. The parameter value is normally 1.03*memsize, where the memsize is specified in the system definition.3 You will need to consult the full
In the following paragraphs, we show examples of commonly used device resource definitions and describe parameters used for each device type.
CKD disk resources
R10A3990: cu 3990
interface local(1)
device(00)
device(01)
device(02)
....
device(10)
device(11)
end R10A3390
The interface local(1) parameter means that the defined devices are local (on the same server running
3If multiple S/390 instances are used, the situation is more complex. The maximum memory parameter is the smaller of 512 MB or 3/8 of the server real memory size.
4
Appendix B.
The device(00) parameter describes the first device of this resource set. The index number is decimal; it must begin with 00 and be incremented by one for each additional device. If your device addressing scheme (at the OS/390 level) requires addressing gaps, you must define dummy (OFFLINE) devices in the resource set. The addresses seen at the OS/390 level are set by the cu statement (in the systems definition section) that points to this resource set.
The device type
This can be the actual name or a symbolic link.
The keyword devopt indicates that optional parameters follow. The writethroughcache parameter causes the
The trackcachesize= parameter tells the emulation program to allocate the indicated number of track buffers (3390 tracks, in this example) for a cache. The default cache size is one emulated cylinder (15 tracks for a 3390) for each emulated S/390 disk volume. A larger cache size may improve performance, but at the expense of using more ThinkPad memory. In general, the default cache size is acceptable.
3270 terminal resources
Emulated 3270 terminals, which are actually TN3270 sessions (or x3270 sessions) to a
R10A3174: cu 3174 interface local(1) device(00) 3278 mastcon device(01) 3278 term701 device(02) 3278 term702 device(03) 3278 OFFLINE
device(04) 3278 @9.12.17.210
.....
device(15) 3278 term70F end R10A3174
The interface, local, device, and device index parameters have already been described. The 3174 cutype is a provided
Typical mount commands, from a flexes prompt, might be:
flexes> mount 703 bills flexes> mount 704 @9.12.17.211
78 S/390 PID: ThinkPad Enabled for S/390
These commands would add a new terminal name (bills) to the Terminal Solicitor screen, and also enable a TN3270 connection from 9.12.17.211. Where do the addresses (703 and 704) come from? The cu statement in our example (???Typical resource definitions??? on page 76) specified an addressing range with 16 addresses. The resource name in the cu statement matches the resource set name of the 3270 definitions, so these resources have addresses beginning with 700.
The same mount commands could be placed in a shell script used to start an emulated S/390. The shell statements would be:
$ echo ???mount 703 bills??? | flexescli localhost S10A
$ echo ???mount 704 @9.12.17.211??? | flexescli localhost S10A
Tape resources
The tape resources discussed here involve emulated S/390 tapes. If you could
You can define FakeTape devices, and these would be the normal case for a ThinkPad/EFS system. The definition might be:
R10A3480: cu 3480 interface local(1)
device(00) 3480 /tmp/tapes/222222 end R10A3480
The keyword 3480 specifies a standard
Several specialized parameters can be used with tape resource definitions. These would be written like this:
device(00) 3480 /tmp/tapes/222222 devopt ???maxwritesize=200???
The options are placed (in single quotes) after a devopt keyword. The maxwritesize option is probably the most commonly used. It specifies, in megabytes, the maximum size of the emulated tape media. When the amount of data written approaches this size, an
When using FakeTape, the tape resource would normally be specified as OFFLINE and the operator would use a flexescli mount command to specify the UNIX file to be used. (The mount command also brings the device online.) See
LAN resources
LAN resources are used to define OS/390 TCP/IP connections to the S/390 or to define an SNA LAN connection to the S/390. A definition for OS/390 TCP/IP use might be:
R10A3088: cu 3172 interface local(1) device(00) 3172 eth0 device(01) 3172 OFFLINE
end R10A3088
Appendix B.
The cu type 3172 is a defined
The device designation in this example, eth0, may appear strange to experienced UNIX users, who will want to write something like /dev/eth0. However, eth0 worked on our ThinkPad/EFS; furthermore, Linux does not appear to define names like /dev/eth0 or /dev/net0.
An additional parameter may be required for a LAN definition. A ???real??? 3172 unit may have up to four adapters. These are numbered
R10A3088: cu 3172
options ???adapternumber=1??? interface local(1) device(00) 3172 eth0 device(01) 3172 OFFLINE
end R10A3088
This emulates the ???real??? 3172 adapter number 1. This is not related to the actual LAN adapter number in your ThinkPad. The actual Netfinity LAN adapter that is used is specified by the device parameter.
You can share a LAN adapter between Linux and OS/390 TCP/IPs. In order to do this, you need to specify the IP address to be used by OS/390, as a parameter in the resource definition. (You should specify the same address in your OS/390 TCP/IP parameters.) For example,
R10A3088: cu 3172
options ???ipaddress=9.12.17.211??? interface local(1)
device(00) 3172 eth0 device(01) 3172 OFFLINE
end R10A3088
Using this example, the single Ethernet adapter in our ThinkPad/EFS machine appears as IP address 9.12.17.210 (defined when we installed Linux) and 9.12.17.211 (when we start
Cloned devices
The
5 The same situation exists with a P/390 or MP3000 emulated I/O LAN adapter. It is known as the MPTS number in these cases.
80 S/390 PID: ThinkPad Enabled for S/390
Common rules
White space (usually blanks) may be included almost anywhere between words. Two special cases exist:
???No white space may exist in the parameters of an options statement or in a devopt parameter. For example,
device(00)
is incorrect; there should not be spaces before or after the equal sign.
???If a device number range is used, there must be spaces before and after the hyphen. For example:
device(00 - 15) 3278 OFFLINE
is correct because there is a space before and after the hyphen.
Numbers (in system and resource definitions) are always decimal. If you want a hexadecimal number, you must indicate it. For example:
cu devad(0xA80,10) path(1) resource(xyz)
contains a hexadecimal number (0xA80) and a decimal number (10). CLI commands differ; they assume device addresses are hexadecimal.
You should not use duplicate names in any definitions.
The resadm command
The resadm command has a number of options that are frequently used. Using R10A.rescf as an example of a compiled resource definition, the options are:
A few notes about the resource manager may be useful:
???The
???The
???For all except the
???The
???You should terminate resources gracefully, with
???A common sequence is to
Appendix B.
???You can
???The resource manager writes log information to the /var/log/messages file (via the Linux syslog logging facility).
???The resource manager automatically uses TCP/IP port 555 to communicate with other elements of
CLI commands
Every S/390 emulated system instance has an associated main console for
In discussions we typically ignore the details of the flexescli and main console interaction and describe operations in terms of commands to flexescli. Also, for our ThinkPad/EFS discussion, we usually assume that only a single S/390 is being emulated at any given time.
CLI commands can be entered two ways:
???You can start the flexescli program in interactive mode and then issue CLI commands directly at the flexes prompt provided by the CLI program.
???You can use ECHO to pipe a command to flexescli. In this case, it executes the command and terminates.
The syntax for the flexescli command is:
# flexescli IPname systemname
If the flexescli program is not in the current PATH, you would need to issue the full path name for it. The IPname can be an IP address, a host name that is resolved by DNS, or a local name (in /etc/hosts). The standard IPname localhost is used to reference the local IP loopback address. The systemname is the name of a syscf file used to start an emulated S/390. In our examples, this is S10A.syscf. (The syscf suffix is omitted for the flexescli command.) The flexescli program must always be directed to a specific S/390 instance (even if there is only one running).
An example of executing a single command through the CLI interface might be:
#pwd
#echo ???ipl a80 0a8200??? | flexescli localhost S10A
The flexescli program senses whether input is waiting for it in a pipe; if so, it executes the waiting command and quits. If started this way:
# flexescli localhost S10A flexes>
it issues a flexes prompt and waits for commands. It will run until it receives a quit command.
82 S/390 PID: ThinkPad Enabled for S/390
There are a considerable number of CLI commands. Many of them are for
(like a ???mount devaddr OFFLINE??? for other devices)
Here are a few brief notes concerning CLI commands:
???Unlike with the resources manager, CLI numeric parameters are assumed to be hexadecimal.
???There are many aliases for commands, not shown here. For example: go = g = start.
???The mount command is perhaps the most common CLI command. Do not confuse it with the Linux mount command. They are completely different commands that perform different functions.
???A resources definition can define a device as OFFLINE. This means that the emulated device exists but is, in effect, turned off.
???A CLI mount command can, while an emulated S/390 is running, dynamically ???turn on???
the device, using a specified file or name. Some examples are:
???The first example is similar to mounting a disk pack (if disk packs were available for 3390s). The named file (or symbolic link) should point to a properly formatted emulated 3390 volume.
???The second example causes the name altcons to be added to the list of connections available through the Terminal Solicitor.
???The third example, in effect, is a tape mount.
Appendix B.
84 S/390 PID: ThinkPad Enabled for S/390
Special notices
References in this publication to IBM products, programs or services do not imply that IBM intends to make these available in all countries in which IBM operates. Any reference to an IBM product, program, or service is not intended to state or imply that only IBM's product, program, or service may be used. Any functionally equivalent program that does not infringe any of IBM's intellectual property rights may be used instead of the IBM product, program or service.
Information in this book was developed in conjunction with use of the equipment specified, and is limited in application to those specific hardware and software products and levels.
IBM may have patents or pending patent applications covering subject matter in this document. The furnishing of this document does not give you any license to these patents. You can send license inquiries, in writing, to the IBM Director of Licensing, IBM Corporation, North Castle Drive, Armonk, NY
Licensees of this program who wish to have information about it for the purpose of enabling:
(i) the exchange of information between independently created programs and other programs (including this one) and (ii) the mutual use of the information which has been exchanged, should contact IBM Corporation, Dept. 600A, Mail Drop 1329, Somers, NY 10589 USA.
Such information may be available, subject to appropriate terms and conditions, including in some cases, payment of a fee.
The information contained in this document has not been submitted to any formal IBM test and is distributed AS IS. The use of this information or the implementation of any of these techniques is a customer responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. While each item may have been reviewed by IBM for accuracy in a specific situation, there is no guarantee that the same or similar results will be obtained elsewhere. Customers attempting to adapt these techniques to their own environments do so at their own risk.
Any pointers in this publication to external Web sites are provided for convenience only and do not in any manner serve as an endorsement of these Web sites.
The following terms are trademarks of other companies:
Java and all
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States and/or other countries.
PC Direct is a trademark of Ziff Communications Company in the United States and/or other countries and is used by IBM Corporation under license.
ActionMedia, LANDesk, MMX, Pentium and ProShare are trademarks of Intel
Corporation in the United States and/or other countries.
UNIX is a registered trademark in the United States and other countries licensed exclusively
through The Open Group.
SET, SET Secure Electronic Transaction, and the SET Logo are trademarks owned by SET Secure Electronic Transaction LLC.
Other company, product, and service names may be trademarks or service marks of others.
86 S/390 PID: ThinkPad Enabled for S/390
Related publications
The publications listed in this section are considered particularly suitable for a more detailed discussion of the topics covered in this redbook.
IBM Redbooks
For information on ordering these publications, see ???How to get IBM Redbooks??? on page 87.
???
???S/390 Partners in Development: NetFinityEnabled for S/390,
Other resources
These publications from Fundamental Software, Inc., are also relevant as further information sources:
???
???
???
???
???
???
???
Referenced Web sites
These Web sites are also relevant as further information sources:
How to get IBM Redbooks
Search for additional Redbooks or Redpieces, view, download, or order hardcopy from the Redbooks Web site:
Also download additional materials (code samples or
Redpieces are Redbooks in progress; not all Redbooks become Redpieces and sometimes just a few chapters will be published this way. The intent is to get the information out much quicker than the formal publishing process allows.
IBM Redbooks collections
Redbooks are also available on
88 S/390 PID: ThinkPad Enabled for S/390
Index
Symbols
/holding 42
Numerics
A
AD releases 44
AD system 21
ADRDSSU backups 56
ASCII telnet sessions 18, 65
AWSCKD format 22
AWSOMA format 46
AWSTAPE format 46
B
backup and restore 53 battery life 68
boot manager 63 business partners, IBM 2
C
cachesize parameter 52, 74 cachestats command 52
cfcomp command 28, 29, 75 channel 74
channel emulation 63 chkckd command 58 CKD disk resources 77
ckdcachestats command 51
control units and channels, which 63 cpu parameters 74
cu statement 75
D
DASD cache 40 debugging, basic 38
dedicate Server processor(s) 17 dedicated keyword 74
device types, emulated 76 device(00) parameter 78 devopt 78
disk cache 41, 50 disk fragmentation 53 disk layout 44 diskette drive 42, 43 DIX frames 68 dongle 64
E
ECC memory 57
emulated S/390 devices, maximum 64 end statement 75
ESCON and parallel channels 5 ESCON Channel Adapter 52 ESCON director 66
essize, definition 74 eth0, resource 80
Ethernet adapters, how many 64 Ethernet connection, speed 67
F
FakeTape 65 FCBs emulated 66 fdisk 43
flexes command 29, 47
flexescli program 82
floating point performance 67 FSI channel adapters 64
FSI hardware adapters 52 ftp 55
Fundamental Software, Incorporated 3
H
hwc command 39
I
ICA Adapter 52 ICA adapter 64 ICKDSF 42
IEEE802.3 frames 68 initawstape utility 46 instance, definition 6 instances, multiple 18 instruction cache 41 instset parameter 74 Integrated Server (IS) 4
interface local(1) parameter 77 IOCDS 33
IODF device definitions 23 IODF requirements 33
IP address, changing 67 ipl command 31
K
key mapping, x3270 49
L
LAN adapter, shared 34, 80 LAN adapters 18
LAN resources 79 license key 67 Linux commands 60 Linux swapping 41 Linux windows 58 local 75
logo, USSTAB 65
M
MAC address 64 maxwritesize option 47 memory allocations 41 memory definition 77 memory, server 18 memsize, definition 73 MIPS 67
mount command 70, 79 mount command, Linux 24 MPTS adapter number 34 MPTS number 80 Multiprise 3000 4
N
N3270 sessions, limit 65 named pipe 25
O
Open UNIX 2
Operating Systems Messages console 39 OS/390 AD systems 21
OS/390 device configuration 23 OS/390 R10 AD system 23 OS/390 TCP/IP 18
P
R
RAS characteristics 5 RAS discussion 57 raw disks 53
Red Hat 7.1 Linux 4 Redbooks Web site 87
Contact us viii remote resources 49, 66
resadm command 28, 29, 33, 38 resadm command, options 81 resource definitions 75 resource manager 16
Resource Measurement Facility (RMF) 33 resource parameter 75
resources definitions 28, 69 rpm commands 59
S
S/390 central storage 64 S/390 CPU, definition 6 S/390 expanded storage 65 S/390 identification 56 SCSI adapter 53
second Linux hard disk 42 security 39
serial number, CPU 56 Server memory 39 shell script 29 shutdown process 59 shutting down 35
90 S/390 PID: ThinkPad Enabled for S/390
SNA over Ethernet 68 StarterPak systems 4 startup process 58 STIDP instruction 56 suspend function 59 swap (paging) rates 41 system console 39 system definitions 69, 73
T
U
Ultrabay 42
Uninterruptable Power Supply (UPS) 66 UNIX System Services 18
UnixWare version of
unzip, wrong order 26 userids, Linux 63 USSTAB logo 31 USSTAB module 65
V
W
Windows 63 writeback 51 writeback cache 51 writethrough cache 51
writethroughcache parameter 51, 78
Index 91
92 S/390 PID: ThinkPad Enabled for S/390
S/390 Partners in Development: ThinkPad Enabled for S/390
(0.2???spine)
Back cover
??
S/390 Partners in Development:
ThinkPad Enabled for S/390
System setup
AD
System operation
A ThinkPad Enabled for S/390, generally known as a ThinkPad/EFS system, is the smallest S/390 currently available, and is intended for development and demonstration purposes.
It is based on an IBM ThinkPad running Linux, and the S/390 emulation product
This IBM Redbook introduces the ThinkPad/EFS system, describes the setup process of the system in some detail, and then describes the installation and use of an OS/390 package known as the OS/390 AD
While this publication is primarily directed at members of the IBM S/390 Partners in Development program (also known as PartnerWorld), most of the content applies to any ThinkPad/EFS system.
INTERNATIONAL
TECHNICAL
SUPPORT
ORGANIZATION
BUILDING TECHNICAL
INFORMATION BASED ON
PRACTICAL EXPERIENCE
IBM Redbooks are developed by the IBM International Technical Support Organization. Experts from IBM, Customers and Partners from around the world create timely technical information based on realistic scenarios. Specific recommendations are provided to help you implement IT solutions more effectively in your environment.