IBM s/390 manual Differences

Page 18

￿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 FLEX-ES would need at least 15 raw disks in UnixWare.

￿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 FLEX-ES because UnixWare does not buffer access to them.

Instead, FLEX-ES code does all the buffering using designs that are optimized for emulated S/390 volumes. This provides a major performance boost for FLEX-ES.3

￿In principle, FLEX-ES could use standard UNIX files to emulate S/390 volumes. However,

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 FLEX-ES coding for raw disks is not very effective.

￿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 3390-3 and 3390-9 emulation.

For these reasons, FLEX-ES uses normal Linux files to emulate S/390 DASD. It is possible to use Linux raw disks, but the performance benefits are slight and not worth the administration efforts involved. Linux has recently begun to support raw devices. It is possible that future versions of FLEX-ES may use these if performance benefits warrant it. For this redbook, and for current ThinkPad/EFS systems, we will use only normal Linux files for emulating S/390 disk volumes. This substantially simplifies installation and administration of the EFS system.

We plan to use a simple naming convention with names such as /s390/OS39RA, for the Linux file containing an emulated 3390-3 with volser OS39RA.

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 FLEX-ES naming convention is required.

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 FLEX-ES naming convention must be followed. This naming convention requires UNIX file names to end with a lowercase ASCII “s” followed by a numeric digit.

3This is not unique to FLEX-ES. Other major UNIX middleware packages, such as some relational data base managers, also use raw disks for the same reasons.

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.

8S/390 PID: ThinkPad Enabled for S/390

Image 18
Contents ThinkPad Enabled for S/390 Bill OgdenPage International Technical Support Organization First Edition October Contents Shutting down Index Vi S/390 PID ThinkPad Enabled for S/390 Special notice AuthorIBM trademarks Comments welcomeIntroduction Purpose of this redbook ThinkPad/EFS systemsFLEX-ES Linux Positioning with other small S/390sThinkPad/EFS hardware used Terminology System and Linux installation Disk planningDifferences Partition Manually Partition Linux installationThinkPad Mount Point Device Requested Actual Type Purpose255.255.255.0 Device Partition Type Default Boot12.17.210 12.17.150Gnome Select Start X automatically Installation notesMonitor Setup IBM 9513 T55A TFT No clock chip 24 bit # df -hEtc/xinetd.d # vi telnet # ps -ef grep xinetd# kill -s USR1 pidnumber PID number for xinetd 14 S/390 PID ThinkPad Enabled for S/390 FLEX-ES and OS/390 installation FLEX-ES Brief introductionPC Processor in ThinkPad Page Installation Installing the FLEX-ES license key AD systems OS/390 AD systemsNext steps # mkdir /s3912 OS/390 on CD-ROM Basic CD-ROM formats3 OS/390 device configuration FLEX-ES formatsAn unzip program Installation tasksUnzipping and installing Awsckd CD-ROM files Mount /dev/cdrom /mnt/cdromMinor problems File ownershipVolume in two separate zip files Files unzip in wrong orderFLEX-ES Operation FLEX-ES system and resource definitions Comments# resadm -s R10A.rescf Building a shell script$ cd /usr/flexes/rundir $ resadm -r$ sh shos Flexes ipl a80 0a82cs IPL OS/390 Terminal Solicitor=stor 11.42.47 Operation and useUser terminal connection A80,8System performance monitors Linux TN3270Iodf requirements Rmf5 TCP/IP for OS/390 # resadm -k Shutting down# resadm -T # exit36 S/390 PID ThinkPad Enabled for S/390 Additional Topics Basic debugging Operating Systems Messages console SecurityServer memory Vmstat command Importance of Linux swapping CPUUsing a second Linux hard disk Ultrabay# cat /proc/partitions Second disk planning Disk layout AD system Partition Mount Size UseDevice Volser Addr Use FLEX-ES FakeTape on OS/390 Alternative method560 222222Multi-system setup $ x3270 -model 3 -keymap pc -port tn3270 localhostt91f X3270 client$ x3270 -model 3 -keymap pc -port tn3270 localhost Function Keys Used# cd /usr/lib/X11/app-defaults # cp X3270 X3270old Remote resources# vi Disk caches System BWrites Cache Hits Tuning cachesize FSI Channel AdaptersBackup and restore considerations Scsi adapter for the ThinkPadDisk fragmentation Using tar to back up S/390 volumes $ tar -cvzf /holding/OS39RA.tarz /s390/OS39RAUsing tar and ftp $ cd /usr/flexes/rundir $ sh buOS39RAc16 S/390 identification CD-RW driveDisplay PSW and registers RAS discussionVerify ckd disk Linux windowsInstalling FLEX-ES upgrades ThinkPad power controlUseful Linux commands Common commandsMultiple consoles, sessions, screens Text editors62 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 Appendix A. FLEX-ES definition listings Basic definitions for a single HDDShell script for a single HDD Definitions for two HDDs Shell script for two HDDs Appendix B. FLEX-ES parameters System definitionsCpu0 Cpu1 Cpu2 Resource definitions Emulated control unit typesEmulated device types Typical resource definitionsCKD disk resources Terminal resources Tape resources LAN resourcesCloned devices Resadm command Common rulesCLI commands Flexes mount A90 S390/WORK01 710 Altcons560 Home/tape3 84 S/390 PID ThinkPad Enabled for S/390 Special notices 86 S/390 PID ThinkPad Enabled for S/390 Referenced Web sites How to get IBM RedbooksIBM Redbooks 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 ThinkPad Enabled for S/390 System setup AD CD-ROM use System operation