IBM s/390 manual Shell script for a single HDD

Page 80

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 FLEX-ES users elect to define emulated 3270 devices as OFFLINE and then use FLEX-ES mount commands (in a shell script) to define and name terminals. For our small system, we found it easier to simply define a number of 3270 terminals (with names such as L701) in our resources definition.

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 (3390-1, -2, -3) is not meaningful.) It would be possible, of course, to mount these volumes at any 3390 addresses contained in the OS/390 IODF. We could have placed the A87 volume on A83 and avoided defining the OFFLINE devices. However, other AD CD-ROM documentation (including several redbooks) uses the addresses we selected and we want to preserve compatibility with this existing documentation.

(If the AD CD-ROM system is installed on the logical volumes of a Multiprise 3000 system, it is typically placed at addresses AA0, AA1, and so forth, or sometimes at addresses 300, 301, and so forth. Normal OS/390 rules for device addressing and usage are followed; there is nothing unique about a ThinkPad/EFS system in this respect.)

The tape definition is OFFLINE. This means that FLEX-ES mount commands are needed before the device can be used. This is typical, and allows the UNIX files to be associated with such devices to be selected and changed while the OS/390 system is operational.

Shell script for a single HDD

After using cfcomp to compile the above definitions, we used this shell script to start operation. (A resadm -s R10A.rescf command must be issued first.)

xmodmapflexesS10A-e 'keysym.syscfAlt_L = Alt_L Meta_L' xset fp+ /usr/flexes/fonts

xset fp rehash

echo 'Verify your master console is active'

x3270 -model 3 -keymap pc -port tn3270 localhost:mstcon & x3270 -model 3 -keymap pc -port tn3270 localhost:M701 & flexescli localhost S10A

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

Image 80
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 Linux installation ThinkPadPartition Manually Partition Mount Point Device Requested Actual Type PurposeDevice Partition Type Default Boot 12.17.210255.255.255.0 12.17.150Gnome Installation notes Monitor Setup IBM 9513 T55A TFT No clock chip 24 bitSelect Start X automatically # df -h# kill -s USR1 pidnumber PID number for xinetd Etc/xinetd.d # vi telnet# ps -ef grep 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 OS/390 AD systems Next stepsAD systems # mkdir /s3912 OS/390 on CD-ROM Basic CD-ROM formats3 OS/390 device configuration FLEX-ES formatsInstallation tasks Unzipping and installing Awsckd CD-ROM filesAn unzip program 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 CommentsBuilding a shell script $ cd /usr/flexes/rundir# resadm -s R10A.rescf $ resadm -r$ sh shos Flexes ipl a80 0a82cs =stor IPL OS/390Terminal Solicitor Operation and use User terminal connection11.42.47 A80,8Linux TN3270 Iodf requirementsSystem performance monitors Rmf5 TCP/IP for OS/390 Shutting down # resadm -T# resadm -k # exit36 S/390 PID ThinkPad Enabled for S/390 Additional Topics Basic debugging Server memory Operating Systems Messages consoleSecurity Vmstat command Importance of Linux swapping CPU# cat /proc/partitions Using a second Linux hard diskUltrabay Second disk planning Device Volser Addr Use Disk layout AD systemPartition Mount Size Use FLEX-ES FakeTape on OS/390 Alternative method560 222222Multi-system setup X3270 client $ x3270 -model 3 -keymap pc -port tn3270 localhost$ x3270 -model 3 -keymap pc -port tn3270 localhostt91f Function Keys Used# vi # cd /usr/lib/X11/app-defaults # cp X3270 X3270oldRemote resources Disk caches System BWrites Cache Hits Tuning cachesize FSI Channel AdaptersDisk fragmentation Backup and restore considerationsScsi adapter for the ThinkPad 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 560 Home/tape3 Flexes mount A90 S390/WORK01710 Altcons 84 S/390 PID ThinkPad Enabled for S/390 Special notices 86 S/390 PID ThinkPad Enabled for S/390 How to get IBM Redbooks 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 ThinkPad Enabled for S/390 System setup AD CD-ROM use System operation