IBM s/390 Scsi adapter for the ThinkPad, Disk fragmentation, Backup and restore considerations

Page 63

￿Extensive testing would be necessary to verify PCI bus functions with the FSI adapter cards in this environment. This has not been done.

5.13SCSI adapter for the ThinkPad

Potentially, one might provide an SCSI interface to the ThinkPad and connect external SCSI tape drives. The supported ThinkPad models do not have this capability, but there are third-party PCMCIA cards that might be used. We did not attempt to use a SCSI PCMCIA adapter during our projects. If you require this function, we suggest you contact your business partner or FSI.

5.14 Disk fragmentation

The raw disks used with UnixWare-based EFS to hold emulated S/390 volumes have a unique advantage. A raw disk is contiguous space on a hard disk drive. Linux file systems do not necessarily provide contiguous space for Linux files. After a Linux file system has been used for normal file creation, deletion, and general operations, it would be unusual for a large file (such as an emulated S/390 volume) to be created in contiguous space in the file system.

FLEX-ES performance benefits from contiguous disk space for an emulated volume. FLEX-ES typically performs Linux disk operations in units of a full track for the emulated volume. For an emulated 3390, this would be 57 KB. If the data is fragmented in different areas of the Linux file system, the I/O operation takes longer.

The standard Red Hat 7.1 distribution does not contain a standard defrag command. Several defrag-type utilities are available from various Web sources; we did not have the time or resources to thoroughly test any of these and did not use them.

We took the following approach:

￿A file system performs contiguous file creation when the file system is new.

￿We placed S/390 volumes in separate file systems (/s390 and /s391).

￿Generally, we did not place anything else in these file systems. (There are always exceptions, of course, and several of our backup/restore methods used files in these file systems.)

￿The slight fragmentation caused by, for example, deleting three (discontiguous) 3390-1 volumes and creating a 3390-3 volume is not significant.

More work is needed to understand the effects of fragmentation on FLEX-ES operation and to document techniques to avoid problems in this area.

5.15 Backup and restore considerations

Since a typical12 ThinkPad/EFS cannot directly connect to tape drives, the backup options are more limited than for a Netfinity/EFS system. Still, backing up and restoring S/390 data has interesting variations. The most basic element involved is where to store your backup data. There are several options:

12A ThinkPad/EFS system might use remote FLEX-ESresources to connect to a machine that does have attached tape drives. This should work (although we did not try it), but cannot be considered a typical ThinkPad/EFS environment.

Chapter 5. Additional Topics

53

Image 63
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 automaticallyEtc/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 # 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 IPL OS/390 Terminal Solicitor=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 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 Function Keys Used X3270 client$ x3270 -model 3 -keymap pc -port tn3270 localhost $ x3270 -model 3 -keymap pc -port tn3270 localhostt91f# 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 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