IBM s/390 manual 560, 222222

Page 56

//BACKUP

EXEC PGM=IEBGENER

//SYSPRINT

DD SYSOUT=*

//SYSIN

DD DUMMY

//SYSUT1

DD

DISP=SHR,DSN=SYS1.PROCLIB(JES2)

//SYSUT2

DD

DSN=PROCLIB,DISP=(NEW,KEEP),

//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:

$HASP373

P390T STARTED - INIT 1

IEF244I

P390T - UNABLE TO ALLOCATE 1 UNIT(S)

IEF877E

P390T NEEDS 1 UNIT(S)

FOR SYSUT2

 

FOR VOLUME 222222

OFFLINE

 

0560

 

02 IEF238D

P390T - REPLY DEVICE NAME OR ‘CANCEL’

2,560

 

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

IEC512I LBL ERR 0560,

,NL,222222,SL,P390T

IEC704A

L 0560,222222,SL,NOCOMP,P390T

03 IEC704A

REPLY ‘VOLSER,OWNER INFORMATION’, ‘M’ OR ‘U’

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 planning—for space and naming—a whole tape library can be emulated using inexpensive server disks. A file (in the server file system) is equivalent to a tape volume. You can compress these files, ftp them, write them on CD-ROMs, and so forth, provided they are restored to their normal form when used again by FakeTape.

FakeTape can automatically recognize and handle data in AWSTAPE and AWSOMA formats, as produced by P/390-related systems. You should be able to exchange such files via ftp, although we did not try this. You can use the FLEX-ES utility initawstape to initialize a file in AWSTAPE format and then write output data to it.

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

Image 56
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