IBM s/390 manual Common rules, Resadm command

Page 91

Common rules

FLEX-ES names, in general, may be up to 255 characters and use upper/lowercase letters, numeric digits, and a few special characters. These special characters are underscore, hyphen, dollar, at, and period. A name cannot consist of a valid decimal or hexadecimal number. The following are not valid names: 2, 123, 1403, 0X1, 7F, 7f, 1C2a30.

White space (usually blanks) may be included almost anywhere between words. Two special cases exist:

￿No white space may exist in the parameters of an options statement or in a devopt parameter. For example,

device(00) 3390-1 /S390/VOLAs1 devopt ‘trackcachesize = 10’

is incorrect; there should not be spaces before or after the equal sign.

￿If a device number range is used, there must be spaces before and after the hyphen. For example:

device(00 - 15) 3278 OFFLINE

is correct because there is a space before and after the hyphen.

FLEX-ES keywords cannot also be used as names in system or resources sections.

Numbers (in system and resource definitions) are always decimal. If you want a hexadecimal number, you must indicate it. For example:

cu devad(0xA80,10) path(1) resource(xyz)

contains a hexadecimal number (0xA80) and a decimal number (10). CLI commands differ; they assume device addresses are hexadecimal.

You should not use duplicate names in any definitions.

The resadm command

The resadm command has a number of options that are frequently used. Using R10A.rescf as an example of a compiled resource definition, the options are:

# resadm -s R10A.rescf

(start the

resource manager)

# resadm -k

(kill the resource manager)

# resadm -t cu:cu3990A

(terminate

an individual resource)

# resadm -T

(terminate

all resources)

$ resadm -r

(list all active resources)

$ resadm [-h hostname] -n

(list node

names)

# resadm -x R10.rescf

(refresh the resource definitions)

A few notes about the resource manager may be useful:

￿The -r and -n options may be used by anyone. The other options are available only to root.

￿The -r option is the most frequently used option.

￿For all except the -s option, the resource manager is assumed to be running when these commands are issued.

￿The -n option is for use when multiple Servers are cooperatively running FLEX-ES resources. This environment is not described in this redbook.

￿You should terminate resources gracefully, with -t or -T options, instead of killing them (with -k or Linux commands).

￿A common sequence is to -T (terminate all resources), then -x (refresh with a newly compiled resource file), and then re-IPL a S/390 operating system.

Appendix B. FLEX-ES parameters 81

Image 91
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 Mount Point Device Requested Actual Type Purpose Linux installationThinkPad Partition Manually Partition12.17.150 Device Partition Type Default Boot12.17.210 255.255.255.0Gnome # df -h Installation notesMonitor Setup IBM 9513 T55A TFT No clock chip 24 bit Select Start X automatically# ps -ef grep xinetd Etc/xinetd.d # vi telnet# 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 # mkdir /s391 OS/390 AD systemsNext steps AD systemsBasic CD-ROM formats 2 OS/390 on CD-ROMFLEX-ES formats 3 OS/390 device configurationMount /dev/cdrom /mnt/cdrom Installation tasksUnzipping and installing Awsckd CD-ROM files An unzip programFile ownership Minor problemsFiles unzip in wrong order Volume in two separate zip filesFLEX-ES Operation Comments FLEX-ES system and resource definitions$ resadm -r Building a shell script$ cd /usr/flexes/rundir # resadm -s R10A.rescf$ sh shos Flexes ipl a80 0a82cs Terminal Solicitor IPL OS/390=stor A80,8 Operation and useUser terminal connection 11.42.47Rmf Linux TN3270Iodf requirements System performance monitors5 TCP/IP for OS/390 # exit Shutting down# resadm -T # resadm -k36 S/390 PID ThinkPad Enabled for S/390 Additional Topics Basic debugging Security Operating Systems Messages consoleServer memory Vmstat command CPU Importance of Linux swappingUltrabay Using a second Linux hard disk# cat /proc/partitions Second disk planning Partition Mount Size Use Disk layout AD systemDevice Volser Addr Use Alternative method FLEX-ES FakeTape on OS/390222222 560Multi-system setup Function Keys Used X3270 client$ x3270 -model 3 -keymap pc -port tn3270 localhost $ x3270 -model 3 -keymap pc -port tn3270 localhostt91fRemote resources # cd /usr/lib/X11/app-defaults # cp X3270 X3270old# vi System B Disk cachesWrites Cache Hits FSI Channel Adapters Tuning cachesizeScsi adapter for the ThinkPad Backup and restore considerationsDisk 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 710 Altcons Flexes mount A90 S390/WORK01560 Home/tape3 84 S/390 PID ThinkPad Enabled for S/390 Special notices 86 S/390 PID ThinkPad Enabled for S/390 Other resources How to get IBM RedbooksIBM Redbooks Referenced Web sitesIBM 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