Optional: Preparing the target system for virtual images
To prepare the target system for virtual images, complete these tasks.
- Create a virtual optical device or a
virtual tape device
- Virtual optical device:
-
CRTDEVOPT DEVD(virtual-device-name) RSRCNAME(*VRT) ONLINE(*YES) TEXT(text-description) - Virtual tape device:
CRTDEVTAP DEVD(virtual-device-name) RSRCNAME(*VRT) ONLINE(*YES) TEXT(text-description)
- Vary on the virtual device
VRYCFG CFGOBJ(virtual-device-name) CFGTYPE(*DEV) STATUS(*ON) - Depending on how you distributed the virtual images, do
one of the following tasks:
- If you distributed the virtual images from the central system
using FTP, complete the following tasks. These tasks assume that
the images are located in the directory specified on the Create Image
Catalog command in step 3.a.
- Create the image
catalog
- For optical, enter this command:
CRTIMGCLG IMGCLG(image-catalog-name) DIR(directory-name) TEXT(text-description) TYPE(*OPT) - For tape, enter this command:
CRTIMGCLG IMGCLG(image-catalog-name) DIR(directory-name) TEXT(text-description) TYPE(*TAP)Note: Additional parameters are available on the CRTIMGCLG command to fully populate the image catalog with image catalog entries. If both systems are at V6R1 or later, an optical image catalog can be imported from the image catalog directory using parameter
IMPORT(*YES):CRTIMGCLG IMGCLG(image-catalog-name) DIR(directory-name) IMPORT(*YES) TEXT(text-description)If the target system is at i 7.2 or later, all volumes found in the image catalog directory can be added to the image catalog by using parameter
ADDVRTVOL(*DIR).CRTIMGCLG IMGCLG(image-catalog-name) DIR(directory-name) ADDVRTVOL(*DIR) TEXT(text-description)
- For optical, enter this command:
- Add the image catalog entries for each image
(This command is not needed if you use the IMPORT or ADDVRTVOL option on the CRTIMGCLG command..)
ADDIMGCLGE IMGCLG(image-catalog-name) FROMFILE(image-file-name) TOFILE(*FROMFILE) IMGCLGIDX(*AVAIL)To prevent the system from generating a new name for the catalog entry, specify the exact name of the file (without the path) on the FROMFILE parameter.
- Create the image
catalog
- If you saved your image catalog and image files to physical media,
enter the following command on the target system to restore the image
catalog from tape:
RSTOBJ OBJ(image-catalog-name) SAVLIB(QUSRSYS) OBJTYPE(*IMGCLG) DEV(device-name)Enter the following on the target system to restore the directory from tape:
RST DEV('/QSYS.LIB/device-name.DEVD') OBJ(('/directory-name'))
- If you distributed the virtual images from the central system
using FTP, complete the following tasks. These tasks assume that
the images are located in the directory specified on the Create Image
Catalog command in step 3.a.
- 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(catalog-name) DEV(virtual-device-name) OPTION(*LOAD) - Verify that the images are in the correct order
You can choose one of the following possible methods:
- Use the Verify Image Catalog command to verify
the images in your catalog.
- (For a complete release upgrade)
VFYIMGCLG IMGCLG(catalog-name) TYPE(*UPGRADE) SORT(*YES) - (For licensed programs only)
VFYIMGCLG IMGCLG(catalog-name) TYPE(*OTHER) - (For PTFs and cumulative fixes)
VFYIMGCLG IMGCLG(catalog-name) TYPE(*PTF) SORT(*YES)
- (For a complete release upgrade)
- Use the Work with Image Catalog Entries (WRKIMGCLGE)
command to verify the images and to see the order of the images.
WRKIMGCLGE IMGCLG(catalog-name)- Press PF7 to prompt for the VFYIMGCLG command. Enter either *UPGRADE, *OTHER, or *PTF for the type and *YES for the sort field.
The system puts the images in the correct order. By default, the volume with the lowest index is mounted; all the other volumes are loaded.
- Use the Verify Image Catalog command to verify
the images in your catalog.
Next topic: Either continue with the steps in Installation tasks for the target systems or complete the final tasks in the Checklist: Installing central site distribution media on the target system.