IBM s/390 manual Resource definitions, Emulated control unit types

Page 85

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 FLEX-ES cfcomp program, to produce syscf and rescf files, before they can be used.

Emulated control unit types

FLEX-ES emulates many control unit types (cutype parameters) and device types; the full documentation should be consulted for a complete list. The commonly used cutypes include:

3990

 

DASD control unit

(for all 3380 and

3390 devices)

3480

and 3490

Tape control unit

(for FakeTape and

SCSI tape drives)

3174

 

Terminal control unit

(for emulated

locally-attached 3270s)

3172

 

LAN control unit (for

Ethernet LANs)

 

3172TR

LAN control unit (for

token ring LANs)

3215

 

Typewriter system

console (mostly for VM and Linux for S/390)

2821

 

Unit record control unit (for emulated card reader/punch, printer)

ctc

 

Channel-to-channel control unit

 

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. FLEX-ES parameters 75

Image 85
Contents Bill Ogden ThinkPad Enabled for S/390Page International Technical Support Organization First Edition October Contents Shutting down Index Vi S/390 PID ThinkPad Enabled for S/390 Author Special noticeComments welcome IBM trademarksIntroduction ThinkPad/EFS systems Purpose of this redbookFLEX-ES Positioning with other small S/390s LinuxThinkPad/EFS hardware used Terminology Disk planning System and Linux installationDifferences ThinkPad Linux installationPartition Manually Partition Mount Point Device Requested Actual Type Purpose12.17.210 Device Partition Type Default Boot255.255.255.0 12.17.150Gnome Monitor Setup IBM 9513 T55A TFT No clock chip 24 bit Installation notesSelect Start X automatically # df -h# ps -ef grep xinetd Etc/xinetd.d # vi telnet# kill -s USR1 pidnumber PID number for xinetd 14 S/390 PID ThinkPad Enabled for S/390 FLEX-ES and OS/390 installation Brief introduction FLEX-ESPC Processor in ThinkPad Page Installation Installing the FLEX-ES license key Next steps OS/390 AD systemsAD systems # mkdir /s391Basic CD-ROM formats 2 OS/390 on CD-ROMFLEX-ES formats 3 OS/390 device configurationUnzipping and installing Awsckd CD-ROM files Installation tasksAn unzip program Mount /dev/cdrom /mnt/cdromFile ownership Minor problemsFiles unzip in wrong order Volume in two separate zip filesFLEX-ES Operation Comments FLEX-ES system and resource definitions$ cd /usr/flexes/rundir Building a shell script# resadm -s R10A.rescf $ resadm -r$ sh shos Flexes ipl a80 0a82cs Terminal Solicitor IPL OS/390=stor User terminal connection Operation and use11.42.47 A80,8Iodf requirements Linux TN3270System performance monitors Rmf5 TCP/IP for OS/390 # resadm -T Shutting down# resadm -k # exit36 S/390 PID ThinkPad Enabled for S/390 Additional Topics Basic debugging Security Operating Systems Messages consoleServer memory Vmstat command CPU Importance of Linux swappingUltrabay Using a second Linux hard disk# cat /proc/partitions Second disk planning Partition Mount Size Use Disk layout AD systemDevice Volser Addr Use Alternative method FLEX-ES FakeTape on OS/390222222 560Multi-system setup $ x3270 -model 3 -keymap pc -port tn3270 localhost X3270 client$ x3270 -model 3 -keymap pc -port tn3270 localhostt91f Function Keys UsedRemote resources # cd /usr/lib/X11/app-defaults # cp X3270 X3270old# vi System B Disk cachesWrites Cache Hits FSI Channel Adapters Tuning cachesizeScsi adapter for the ThinkPad Backup and restore considerationsDisk fragmentation $ tar -cvzf /holding/OS39RA.tarz /s390/OS39RA Using tar to back up S/390 volumes$ cd /usr/flexes/rundir $ sh buOS39RAc Using tar and ftpCD-RW drive 16 S/390 identificationRAS discussion Display PSW and registersLinux windows Verify ckd diskThinkPad power control Installing FLEX-ES upgradesCommon commands Useful Linux commandsText editors Multiple consoles, sessions, screens62 S/390 PID ThinkPad Enabled for S/390 Frequently asked questions 64 S/390 PID ThinkPad Enabled for S/390 Frequently asked questions 66 S/390 PID ThinkPad Enabled for S/390 Frequently asked questions 68 S/390 PID ThinkPad Enabled for S/390 Basic definitions for a single HDD Appendix A. FLEX-ES definition listingsShell script for a single HDD Definitions for two HDDs Shell script for two HDDs System definitions Appendix B. FLEX-ES parametersCpu0 Cpu1 Cpu2 Emulated control unit types Resource definitionsTypical resource definitions Emulated device typesCKD disk resources Terminal resources LAN resources Tape resourcesCloned devices Common rules Resadm commandCLI commands 710 Altcons Flexes mount A90 S390/WORK01560 Home/tape3 84 S/390 PID ThinkPad Enabled for S/390 Special notices 86 S/390 PID ThinkPad Enabled for S/390 IBM Redbooks How to get IBM RedbooksReferenced Web sites Other resourcesIBM Redbooks collections Index Pipe Port Power control Terminal logo Terminal Solicitor 16, 18, 31, 39, 65 92 S/390 PID ThinkPad Enabled for S/390 Partners in Development ThinkPad Enabled for S/390 Page Page System setup AD CD-ROM use System operation ThinkPad Enabled for S/390