IBM s/390 manual Installing FLEX-ES upgrades, ThinkPad power control

Page 69

$ cd rundir

(change to

/usr/flexes/rundir)

$ sh shos

(start our

shell script)

Wait for 3270 sessions to start

 

 

flexes> ipl a80 0a8200

(note that

prompt changes to flexes)

Operate OS/390 as normal, using 3270 sessions. Shut down OS/390 when finished.

Window

2

 

flexes> shutdown

(stop S/390 emulation)

Window

1

 

# resadm -T

(stop FLEX-ES resources cleanly)

# resadm -k

(terminate resadm)

#exit $ exit

This process can be automated or abbreviated in a number of different ways. We wanted to keep a straightforward, manual control over FLEX-ES startup and used the steps shown here.

Another window (not root) was sometimes useful for running vmstat commands and similar utility functions. (This could be done from the root window if you ignore the usual advice to avoid root usage except when specifically required. Or, you could exit from root in Window 1 and work from there.)

5.21 Installing FLEX-ES upgrades

Installing a new FLEX-ES release under Linux involves a few rpm commands:

# rpm -e

ftlib

 

# rpm -e

msgmgr

 

#

rpm -e

flexes

 

#

mount /dev/cdrom /mnt/cdrom

(source for new FLEXES)

#cd /mnt/cdrom

#rpm -i flexes-6.0-5.i386.rpm (a few messages appear)

#rpm -i msgmgr-6.0-5.i386.rpm (a few messages appear)

#rpm -i ftlib-6.0-5.i386.rpm

The old FLEX-ES packages should be removed (with the -e option) in the order shown, and the new packages installed in the order shown. Your package names may be different (to reflect new release numbers) and your source might be ftp files rather than a CD-ROM, so you need to adjust the exact commands shown above to match your environment. When removing the old packages, you can ignore a message about not removing the /usr/flexes directory.

5.22 ThinkPad power control

After installing Linux on our ThinkPad, we found that the suspend function (that is, closing the “lid” of the ThinkPad) worked correctly when Linux and FLEX-ES were running. However, if we left the system alone while running, with no keyboard or mouse movement for several hours, it automatically removed power and we needed to reboot Linux. We were unable to find any power controls in Linux that managed this timeout function.

Chapter 5. Additional Topics

59

Image 69
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 -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 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 IPL OS/390 Terminal Solicitor=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 Operating Systems Messages console SecurityServer memory Vmstat command CPU Importance of Linux swappingUsing a second Linux hard disk Ultrabay# cat /proc/partitions Second disk planning Disk layout AD system Partition Mount Size UseDevice 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 Used# cd /usr/lib/X11/app-defaults # cp X3270 X3270old Remote resources# vi System B Disk cachesWrites Cache Hits FSI Channel Adapters Tuning cachesizeBackup and restore considerations Scsi adapter for the ThinkPadDisk 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 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 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