![]()
|
VLINK="#008040" ALINK="#000000">
Creating Hercules DASDThis page describes various ways of creating and loading DASD volumes for use with Hercules.Using pre-built DASD imagesIf you can obtain one of the IBM Application Development CDs which are supplied for use with the P/390, you will find that these contain pre-built DASD image files which simply need to be unzipped onto your hard drive. These images can be directly read by Hercules. However, you cannot legally use this method because the software on the CD is licensed for use only on the P/390 system that it was shipped with. Restoring DASD from full-volume dumpsCreating an empty DASD volumeThe dasdinit program must first be run from the Unix shell prompt to create a file containing an empty DASD volume. The format of the dasdinit command is: dasdinit [-options] filename devtype[-model] volser [size] where: options: -z build compressed dasd image file using zlib -bz2 build compressed dasd image file using bzip2 -0 build compressed dasd image file with no compression -a build dasd image file that includes alternate cylinders (option ignored if size is manually specified) filename name of dasd image file to be created devtype CKD: 2311, 2314, 3330, 3340, 3350, 3375, 3380, 3390, 9345 FBA: 3310, 3370, 9332, 9335, 9336 model device model (implies size) (opt) volser volume serial number (1-6 characters) size number of CKD cylinders or 512-byte FBA sectors (required if model not specified else optional)
CKD DEVICES alt devtype-model cyls cyls 2311 [*] 2311-1 200 2 2314 [*] 2314-1 200 3 3330 [*] 3330-1 404 7 3330-2 808 7 3330-11 808 7 3340 [*] 3340-1 348 1 3340-35 348 1 3340-2 696 2 3340-70 696 2 3350 [*] 3350-1 555 5 3375 [*] 3375-1 959 1 3380 [*] 3380-1 885 1 3380-A 885 1 3380-B 885 1 3380-D 885 1 3380-J 885 1 3380-2 1770 2 3380-E 1770 2 3380-3 2655 3 3380-K 2655 3 EMC3380K+ 3339 3 EMC3380K++ 3993 3 3390 [*] 3390-1 1113 1 3390-2 2226 1 3390-3 3339 1 3390-9 10017 3 9345 [*] 9345-1 1440 0 9345-2 2156 0 FBA DEVICES devtype-model blocks 3310 [*] 3310-1 125664 3370 [*] 3370-Al 558000 3370-B1 558000 3370-A2 712752 3370-B2 712752 9332 [*] 9332-200 360036 9332-400 360036 9332-600 554800 9335 [*] 9335-1 804714 9336 [*] 9336-10 920115 9336-20 1672881 9336-25 1672881 [*] size may be specified else size defaults to the first listed model.
Volumes exceeding 2GBFor CKD volumes which exceed 2GB, such as the 3390-3, the DASDINIT program will create multiple files by appending the characters _1, _2, _3 etc. to the file name specified on the command line. These characters are inserted before the first dot (.) after the last slash (/). If there is no dot, then the characters are appended to the end of the name. Each file contains a whole number of cylinders. Hercules CKD support recognizes the files as belonging to a single logical volume. Specify the full name of just the first file in the Hercules configuration file (e.g. "filename_1"). The DASDINIT program cannot create FBA volumes exceeding 2GB. ExamplesTo create a 3330 model 1 CKD volume consisting of 404 cylinders (plus 7 alternate cylinders too) with volume serial number WORK01 in a file called work01.151: dasdinit -a work01.151 3330-1 work01 To create a compressed 3350 CKD volume consisting of 560 cylinders (555 cylinders plus the 5 alternate cylinders) with volume serial number SYSRES in a file called dosvs34.24f: dasdinit -a -bz2 dosvs34.24f 3350-1 sysres To create a 3370 FBA volume with only 100000 sectors (instead of the usual 558000 sectors) with volume serial number WORK02 in a file called mini.work02.140: dasdinit mini.work02.140 3370 work02 100000 To create a 3390 model 3 (triple density) CKD volume of 3339 cylinders with volume serial number WORK03: dasdinit triple.a88 3390-3 work03Because this volume exceeds 2GB, DASDINIT will create two files with triple_1.a88 containing cylinders 0-2518 and triple_2.a88 containing cylinders 2519-3339. Formatting the empty DASD volumeAfter creating a DASD volume you can format it with a program such as standalone IBCDASDI or ICKDSF. Here is an example of the IBCDASDI control statements required to initialize a 3330 volume:
To run IBCDASDI, place the above statements in a file called init3330.txt and start Hercules in S/370 mode with a configuration file containing these statements:
After IPLing from card reader device 00A, connect a telnet client
to port 1052, and press enter. At the IBCDASDI prompt, enter:
Loading the new DASD volumeNext you need to create a full volume dump file on your mainframe and convert it to AWSTAPE format using the tapeconv.jcl job in the Hercules source directory. The AWSTAPE file can then be downloaded in binary format to your PC where it can be defined as a virtual tape drive in the Hercules configuration file. A standalone program can now be IPLed into Hercules to restore the volume image from the virtual tape onto the formatted virtual DASD volume. Building a DASD volume from unloaded PDS filesThe dasdload program can be run from the Unix shell prompt to create a new DASD image file and load it with data from unloaded PDS files. The format of the dasdload command is:
where
Control fileThe control file required by the dasdload program is an ASCII text file consisting of a volume statement followed by one dataset statement for each dataset to be created. The format of the volume statement is:
where:
The format of a dataset statement is:
where:
All parameters except dsname and method are optional. Defaults of zero are supplied for DCB parameters. For datasets loaded with the XMIT method, the DCB parameters are taken from the unloaded PDS, and the minimum space allocation required to load the dataset is used unless a larger quantity is specified. If space allocation is omitted, the default is TRK 1 0 0. If CYL is specified without any primary quantity then the default space allocation is 1 cylinder or the minimum number of cylinders required to load the dataset, whichever is larger. Examples[1] To create a 2314 volume in a file called sysres.230 using the control file sysres.plf with message level 2:
An example control file is shown below:
[2] To create a compressed 3390-3 volume in a file called linux.500 containing a bootable linux system for linux/390 installation using the control file linux.prm:
An example control file is shown below:
Fixing the XCTL tables in SVCLIBOn an OS/360 system, the Open/Close/EOV modules in SYS1.SVCLIB have XCTL tables embedded within them. These tables contain TTRs pointing to other modules, and these TTRs need to be adjusted after loading SVCLIB to DASD. OS/360 provides a program called IEHIOSUP to perform this function, but the catch is that you can't run IEHIOSUP until you have the system up and running, and you can't IPL until you have fixed the XCTL tables. To solve this problem, Hercules provides a program called dasdisup which can be run from the Unix command line after running dasdload. The format of the dasdisup command is:
where
Note: do not use this procedure except on OS/360 IPL volumes; other operating systems do not have XCTL tables. Other DASD utilitiesThese programs can be used to extract data from CKD DASD images by means of commands issued at the Unix shell prompt. DASDLS - List datasets on volumeDASDLS, written by Malcolm Beattie, is a command to let you list the names of the datasets contained in disk images.
The command format is:
DASDCAT - Display PDS membersDASDCAT, written by Malcolm Beattie, is a command to let you read datasets from disk images.
The command format is:
Examples
DASDPDSU - Unload PDS membersDASDPDSU is a command which unloads PDS members from a disk image and copies each member to a file memname.mac in the current working directory.
The command format is:
If you have a question about Hercules, see the Hercules Frequently-Asked Questions page. ![]() Last updated 2 April 2002 |