Setting up virtual optical storage
Follow these instructions to set up virtual optical storage.
- To create virtual optical storage, take the following steps.
- Create the image catalog:
CRTIMGCLG IMGCLG(MYCATALOG) DIR('/MYCATALOGDIRECTORY')
- Add the image from physical media or from image files received
from another system. If you are adding a new blank image, type the
following command:
ADDIMGCLGE IMGCLG(MYCATALOG) FROMFILE(*NEW) TOFILE(NEWIMAGEFILE) IMGSIZ(16000)
Repeat this step for each optical disk needed.
- If you do not already have virtual optical device type 632B, create
one and vary it on:
CRTDEVOPT DEVD(OPTVRT01) RSRCNAME(*VRT) VRYCFG CFGOBJ(OPTVRT01) CFGTYPE(*DEV) STATUS(*ON)
- Load the image catalog in the virtual device:
LODIMGCLG IMGCLG(MYCATALOG) DEV(OPTVRT01)
- Initialize the virtual image:
INZOPT NEWVOL(MYVOLUMEID) DEV(OPTVRT01) CHECK(*NO) TEXT(MYTEXTDESCRIPTION)
- Create the image catalog:
- To create virtual storage from physical media in an optical device
or from images received from another system, take the following steps.
- Create the image catalog:
CRTIMGCLG IMGCLG(MYCATALOG) DIR('/MYCATALOGDIRECTORY') CRTDIR(*YES)
- Add the image from physical media or from image files received
from another system.
- To add images from physical media:
ADDIMGCLGE IMGCLG(MYCATALOG) FROMDEV(OPTXX) TOFILE(*fromfile)
Repeat for each optical disk.
- To add images from an image file:
ADDIMGCLGE IMGCLG(MYCATALOG) FROMFILE(SLIC_N) TOFILE(*fromfile)
Repeat this step for each file in your catalog directory. This step assumes that your image is already in the image catalog directory. RMS media cannot be added to an image catalog. because the physical sector size is incompatible with virtual media.
- To add images from physical media:
- Create and vary on the virtual device:
CRTDEVOPT DEVD(OPTVRT01) RSRCNAME(*VRT) VRYCFG CFGOBJ(OPTVRT01) CFGTYPE(*DEV) STATUS(*ON)
- Load the image catalog in the virtual device:
LODIMGCLG IMGCLG(MYCATALOG) DEV(OPTVRT01)
- Create the image catalog:
- To create virtual storage from physical media in
an optical library device or by volume identifier, take the following
steps.
- Create the image catalog:
CRTIMGCLG IMGCLG(MYCATALOG) DIR('/MYCATALOGDIRECTORY') CRTDIR(*YES)
- Add the image from physical media specifying the volume identifier:
ADDIMGCLGE IMGCLG(MYCATALOG) FROMDEV(*VOL) VOL(volumeidxx)
Repeat this step for each optical volume.
- Create and vary on the virtual device
CRTDEVOPT DEVD(OPTVRT01) RSRCNAME(*VRT) VRYCFG CFGOBJ(OPTVRT01) CFGTYPE(*DEV) STATUS(*ON)
- Load the image catalog in the virtual device:
LODIMGCLG IMGCLG(MYCATALOG) DEV(OPTVRT01)
This usage of create virtual storage is typically used when optical library volumes are being migrated to virtual images. Upon completion of the ADDIMGCLGE from optical library media, the characters ""M_" is added to the beginning of the optical library volume identifier to indicate the volume has been migrated. Adding the characters helps to avoid a duplicate volume name between the new virtual volume and the optical library volume.
- Create the image catalog:
- To create a library mode image catalog with Write Once
Read Many (WORM) media, Erasable media, or RAM media for archive storage,
take the following steps.
- Create the image catalog:
CRTIMGCLG IMGCLG(MYLIBCATALOG) DIR('/MYLIBCATALOGDIRECTORY') CRTDIR(*YES)
- Add a new blank image of media type *WORM, *ERASE, or *RAM.
ADDIMGCLGE IMGCLG(MYLIBCATALOG) FROMFILE(*NEW) TOFILE(MYIMAGEFILE1) MEDTYPE(*WORM) IMGSIZ(*DVD2600)
or
ADDIMGCLGE IMGCLG(MYLIBCATALOG) FROMFILE(*NEW) TOFILE(MYIMAGEFILE1) MEDTYPE(*ERASE) IMGSIZ(*DVD2600)
or
ADDIMGCLGE IMGCLG(MYLIBCATALOG) FROMFILE(*NEW) TOFILE(MYIMAGEFILE1) MEDTYPE(*RAM) IMGSIZ(*DVD2600)
Repeat this step for each new optical media needed.
- Create and vary on the virtual device:
CRTDEVOPT DEVD(OPTVRT01) RSRCNAME(*VRT) VRYCFG CFGOBJ(OPTVRT01) CFGTYPE(*DEV) STATUS(*ON)
- Load the image catalog in the virtual device in library mode:
LODIMGCLG IMGCLG(MYLIBCATALOG) DEV(OPTVRT01) LIBMODE(*YES)
- Create the image catalog:
- To install upgrades from an image catalog, take the following
steps.
- Create the image catalog:
CRTIMGCLG IMGCLG(MYCATALOG) DIR('/MYCATALOGDIRECTORY')
- Add the image from physical media or from image files received
from another system:
- To add images from physical media:
ADDIMGCLGE IMGCLG(MYCATALOG) FROMDEV(OPTXX) TOFILE(*fromfile)
Repeat this step for each optical disk.
- To add the image from an image file:
ADDIMGCLGE IMGCLG(MYCATALOG) FROMFILE(SLIC_N) TOFILE(*fromfile)
Repeat this step for each file in your catalog directory. This step assumes your image is already in the image catalog directory.
- To add images from physical media:
- Create and vary on the virtual device:
CRTDEVOPT DEVD(OPTVRT01) RSRCNAME(*VRT) VRYCFG CFGOBJ(OPTVRT01) CFGTYPE(*DEV) STATUS(*ON)
- Load the image catalog in the virtual device:
LODIMGCLG IMGCLG(MYCATALOG) DEV(OPTVRT01)
- Verify the catalog:
For the verification operation, the following items are required:VFYIMGCLG IMGCLG(MYCATALOG) TYPE(*UPGRADE) SORT(*YES)
- Licensed Internal Code for IBM® i
- IBM i operating system
- IBM i - Library QGPL
- IBM i - Library QUSRSYS
- Start the installation:
PWRDWNSYS OPTION(*IMMED) RESTART(*YES) IPLSRC(*IMGCLG) IMGCLG(MYCATALOG)
- Create the image catalog: