IBM s/390 manual Basic debugging, $ cd /usr/flexes/rundir $ cfcomp defA1

Page 48

5.1 Basic debugging

We present here a few common debugging steps that may be useful if you have a problem starting FLEX-ES. We must note that FLEX-ES typically does not produce error messages oriented to a S/390 person. An error message indicates that an error occured, but you may need to ignore the specific text of the message and attempt to deduce the original cause of the problem.

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 -al /usr/flexes/rundirto verify ownership, and a command such as chown flexes:flexes /usr/flexes/rundir/shos to change ownership. (Of course, if you cd to the relevant directory first, you will not need to enter full path names to files in that directory.)

Do all your resources start when you use the resadm -s xxx.rescf command? You can check this with a resadm -rcommand to list the currently active resources. You might verify that the resource names (listed by the resadm -rcommand) exactly match the resource names you specified in your system definition.

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:

$cd /usr/flexes/rundir

$ cfcomp defA1

(using your correct source file name)

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:

flexes> d devstate 700

(display state of emulated device)

flexes>

d ckdcachestats A80

(verify I/O occurs to a disk)

flexes>

d psw

 

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 3390-2 (using ckdfmt or ckdconvaws) but you specify a 3390-3 in your resource definitions, the system will not start.

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

Image 48
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 -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 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 IPL OS/390 Terminal Solicitor=stor 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 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 client $ x3270 -model 3 -keymap pc -port tn3270 localhost$ x3270 -model 3 -keymap pc -port tn3270 localhostt91f 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 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