IBM s/390 manual Using tar to back up S/390 volumes, $ tar -cvzf /holding/OS39RA.tarz /s390/OS39RA

Page 64

￿You can store S/390 backups on the ThinkPad disks, as Linux files. This provides logical backup of S/390 data, but does not provide protection against physical failure of disk drives.

￿You can ftp back up data (in a variety of formats) to another system. This provides protection against physical system failures.

There are two general formats for backed up data:

￿A file at the Linux level

These files contain a complete emulated S/390 volume. It is easy to restore the complete volume, but quite messy to restore a single S/390 data set.

￿A S/390 backup, using the OS/390 program ADRDSSU or equivalent

This backup would be written to a FakeTape file. Once written, this file can be treated as a normal Linux file. It could, for example, be ftped elsewhere for safety. This type of backup requires the use of OS/390 jobs and may be slower than purely Linux backup functions. It has the strong advantage that single S/390 data sets can be restored easily.

5.15.1Using tar to back up S/390 volumes

An emulated S/390 volume, such as a 3390 volume, is typically a single Linux file. You can back up this volume simply by copying the Linux file somewhere else in your Linux file system. It would be advisable to copy it to another physical disk drive, if possible, for obvious reasons. Emulated volumes are large Linux files and a ThinkPad has limited disk space. Using a compression program as part of the backup process is attractive.

We performed a small test, as follows:

$ tar -cvzf /holding/OS39RA.tarz /s390/OS39RA

note 1

tar: Removing leading ‘/’ from member names

 

$ ls -al /holding

note 2

$ cd /s390

 

$ mkdir untar

note 3

$ cd untar

 

$ tar -xzkwvf /holding/OS39RA.tarz

note 4

extract ‘s390/OS39RA’? y

 

$ ls -al

 

$ cmp -s /s390/OS39RA /s390/untar/OS39RA && echo ‘OK’

note 5

cmp /S390/OS39RA: File too large

 

1.We used a tar command to archive the file into a compressed tar file, which we named OS39RA.tarz. The z option in the tar command requests compression. The tar/compression step took about 12.6 minutes. The file was saved as a relative name (without the leading /).

2.The ls -alcommand showed the resulting tar file was 468,091,705 bytes. This represents a 6.25:1 compression. Based on PC experience when building AD CD-ROM systems, we typically have approximately a 5:1 compression ratio when compressing files with the zip product for PCs. We have seen ratios from 3:1 to as high as 10:1.

3.We created a new directory, untar, so we could recover the file without destroying the original.

4.We changed to /s390/untar and issued another tar command to extract the file. The additional flags (k w) provided reassurance that we would not overlay our original file. The tar extraction placed the extracted file in the current directory (/s390/untar), but with the additional s390 directory name, and an ls -alcommand confirmed it was the correct size. The tar extraction took about 4.75 minutes.

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

Image 64
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# 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 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 Terminal Solicitor IPL OS/390=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 Security Operating Systems Messages consoleServer memory Vmstat command Importance of Linux swapping CPUUltrabay Using a second Linux hard disk# cat /proc/partitions Second disk planning Partition Mount Size Use Disk layout AD systemDevice 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 UsedRemote resources # cd /usr/lib/X11/app-defaults # cp X3270 X3270old# vi Disk caches System BWrites Cache Hits Tuning cachesize FSI Channel AdaptersScsi adapter for the ThinkPad Backup and restore considerationsDisk 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 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 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