Virtual optical media
Use this information to learn about virtual optical media in your save environment.
You can use virtual optical media to save images directly to system disk units for convenience, flexibility, and in some cases improved performance. The following scenarios will give you some examples of ways that you can utilize virtual optical in your save environment. Virtual optical is beneficial for unattended saves because it eliminates media errors that could stop an unattended save operation. If you do not allocate enough space in the image catalog to save the intended information, virtual optical will use the autoload feature to create additional images with the same capacity as the last image you loaded, provided the disk storage is available. You must specify automatic load in the reply list, MSGID(OPT149F), to avoid receiving a message that interrupts the unattended save operation.
Ability to duplicate to physical media
Save cumulative PTF record
If you receive fixes on CD-ROM, you can install your fixes from an image catalog. To maintain a complete record of all of the fixes that you apply, you can save these virtual PTF images to media. Then, in a recovery situation, you can restore all of the cumulative PTF images and automatically install them from the image catalog.
Saving data to virtual optical media
Perform the following steps to save data to virtual optical media. The device and catalog names used here are examples.
- Ensure that the system has enough disk space to hold all the virtual images you are going to create for your save operation.
- Create a virtual optical device.
CRTDEVOPT DEVD(OPTVRT01) RSRCNAME(*VRT) ONLINE(*YES) TEXT(text-description) - Vary on the virtual optical device.
VRYCFG CFGOBJ(OPTVRT01) CFGTYPE(*DEV) STATUS(*ON) - Create an image catalog for your save operation.
CRTIMGCLG IMGCLG(MYCATALOG) DIR('/MYCATALOGDIRECTORY') CRTDIR(*YES) TEXT(image-description) - Add a new image catalog entry with a size of 48 MB to
16 GB. If you are performing a SAVSYS operation, the first volume must be
at least 2048 MB to accommodate the Licensed Internal Code. If you plan to
save the operating system, add a new image catalog entry with a size of 4
GB. If you plan to duplicate image catalogs to physical media, then ensure
you select a virtual image size that matches the size of the media you plan
to write to. Issue either the first or second set of commands:
orADDIMGCLGE IMGCLG(MYCATALOG) FROMFILE(*NEW) TOFILE(file-name) IMGSIZ(*DVD4700) TEXT(text-description)
Repeat this step for the number of desired images. You should add the images in the same order as you plan to restore from them. The virtual images provide spanning capability, with sequence numbers continuing from one volume to the next.ADDIMGCLGE IMGCLG(MYCATALOG) FROMFILE(*NEW) TOFILE(file-name) IMGSIZ(*CD650) TEXT(catalog-description) - Load the image catalog. This step associates the virtual optical device
to the image catalog. Only one image catalog at a time can be associated with
a specific virtual optical device.
LODIMGCLG IMGCLG(MYCATALOG) DEV(OPTVRT01) OPTION(*LOAD) - Initialize the new volume.
Repeat this step for the number of new images you want to initialize. Use the WRKIMGCLGE (Work with image catalog entries) command to select the image to be initialized or use the LODIMGCLGE (Load or unload image catalog entry) command to continue to the next volume to be initialized.INZOPT NEWVOL(MYVOLUMEID) DEV(OPTVRT01) TEXT('volume text')LODIMGCLGE IMGCLG(MYCATALOG) IMGCLGIDX(2) OPTION(*MOUNT)
When you have completed initializing the new volumes, leave the first entry in mounted status.LODIMGCLGE IMGCLG(MYCATALOG) IMGCLGIDX(1) OPTION(*MOUNT) - Run the save command for your desired save operation, listing the virtual optical device in the DEV parameter.
- Use the Change Attribute (CHGATR) command to mark the image catalog directory
as non-saveable. For example:
CHGATR OBJ('/MYINFO') ATR(*ALWSAV) VALUE(*NO) - Use the Load Image Catalog (LODIMGCLG) command to make the image catalog ready. Image catalogs with a ready status will be omitted from the save operation.
- In an attended save, you can specify to omit the image catalog directories on the Save Object (SAV) command.