-
Notifications
You must be signed in to change notification settings - Fork 4
zdtVresize
Details on zdtVresize:
Execute zdtVresize without any arguments or with --help to obtain information on required inputs.
There is currently no automated method to enlarge an existing zPDT volume (that I know of). On real z platforms and with real hardware there is DVE (Dynamic Volume Expansion) so I'm trying to emulate that here!
Unfortunately in the emulated environment we MUST be able to take the device OFFLINE. Failure to do so could mean corruption of your volume file. This may not be possible in many cases since many ADCD volumes are allocated to system components for various reasons. This doesn't mean you cannot use this utility, it just means that some manual processing may be required (like stopping z/OS, and executing the ICKDSF Refvtoc JCL manually).
In order to enlarge an existing volume, we need to do the following things:
- Vary the drive offline from z/OS
- Unmount the Linux Disk file from the emulator
- Rename the original Linux Disk File (so it can be used in case shit happens)
- Create new larger volume
- Prepend original volume into new larger volume
- Update required Disk file offsets for correct sizing
- Remount it to the emulator
- Vary it online to z/OS
- Refresh VTOC
Well .. your prayers have been answered .. zdtVresize does all that for you !!
Similarily with zdtVcreate, zdtVresize makes use of many of the same functions/features: The interface to z/OS console commands is via zPDT command oprmsg.
ICKDSF REFTOC JCL is submitted to z/OS via Jes2 "hot" reader or via SSH. awsrdr is a device (00c) configured via zPDT Devmap file. JES2 must also have a RDR defined: for example: RDR(1) DEVICE=00C. ADCD deployed with ZD&T 12.0.4 will have these pre-requisites met.
If you are using an older version of ADCD, or another z/OS system, then you could use the -ssh option instead. To use the -ssh option you should configure an SSH key between linux and z/OS. It will work without an SSH key, however, you will be prompted several times for password.
Additional Notes:
-
On ADCD you will require Alter access to RACF Class DASDVOL .. you can use the below command examples: permit * class(dasdvol) id(adcdmst) access(alter) setropts raclist(dasdvol) refresh
-
If you are running ICKDSF REFVTOC manually or automated processing fails, ensure the volume is mounted as PRIVATE .. if needed the following command can be used: MOUNT xxx,VOL=(SL,volser),USE=PRIVATE