Setting up virtual optical storage

Follow these instructions to set up virtual optical storage.

  • To create virtual optical storage, take the following steps.
    1. Create the image catalog:
      CRTIMGCLG IMGCLG(MYCATALOG) DIR('/MYCATALOGDIRECTORY') 
    2. 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.

    3. 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)
    4. Load the image catalog in the virtual device:
      LODIMGCLG IMGCLG(MYCATALOG) DEV(OPTVRT01)
    5. Initialize the virtual image:
      INZOPT NEWVOL(MYVOLUMEID) DEV(OPTVRT01) CHECK(*NO) TEXT(MYTEXTDESCRIPTION)
  • To create virtual storage from physical media in an optical device or from images received from another system, take the following steps.
    1. Create the image catalog:
      CRTIMGCLG IMGCLG(MYCATALOG) DIR('/MYCATALOGDIRECTORY') CRTDIR(*YES)
    2. 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)

        Start of changeRepeat 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.End of change

    3. Create and vary on the virtual device:
      CRTDEVOPT DEVD(OPTVRT01) RSRCNAME(*VRT)
      VRYCFG CFGOBJ(OPTVRT01) CFGTYPE(*DEV) STATUS(*ON)
    4. Load the image catalog in the virtual device:
      LODIMGCLG IMGCLG(MYCATALOG) DEV(OPTVRT01)
  • Start of changeTo create virtual storage from physical media in an optical library device or by volume identifier, take the following steps.
    1. Create the image catalog:
      CRTIMGCLG IMGCLG(MYCATALOG) DIR('/MYCATALOGDIRECTORY') CRTDIR(*YES)
    2. Add the image from physical media specifying the volume identifier:
      ADDIMGCLGE IMGCLG(MYCATALOG) FROMDEV(*VOL) VOL(volumeidxx)

      Repeat this step for each optical volume.

    3. Create and vary on the virtual device
      CRTDEVOPT DEVD(OPTVRT01) RSRCNAME(*VRT)
      VRYCFG CFGOBJ(OPTVRT01) CFGTYPE(*DEV) STATUS(*ON)
    4. 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.

    End of change
  • Start of changeTo 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.
    1. Create the image catalog:
      CRTIMGCLG IMGCLG(MYLIBCATALOG) DIR('/MYLIBCATALOGDIRECTORY') CRTDIR(*YES)
    2. 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.

    3. Create and vary on the virtual device:
      CRTDEVOPT DEVD(OPTVRT01) RSRCNAME(*VRT)
      VRYCFG CFGOBJ(OPTVRT01) CFGTYPE(*DEV) STATUS(*ON)
    4. Load the image catalog in the virtual device in library mode:
      LODIMGCLG IMGCLG(MYLIBCATALOG) DEV(OPTVRT01) LIBMODE(*YES)
    End of change
  • To install upgrades from an image catalog, take the following steps.
    1. Create the image catalog:
      CRTIMGCLG IMGCLG(MYCATALOG) DIR('/MYCATALOGDIRECTORY') 
    2. 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.

    3. Create and vary on the virtual device:
      CRTDEVOPT DEVD(OPTVRT01) RSRCNAME(*VRT) 
      VRYCFG CFGOBJ(OPTVRT01) CFGTYPE(*DEV) STATUS(*ON)
    4. Load the image catalog in the virtual device:
      LODIMGCLG IMGCLG(MYCATALOG) DEV(OPTVRT01)
    5. Verify the catalog:
      VFYIMGCLG IMGCLG(MYCATALOG) TYPE(*UPGRADE) SORT(*YES)
      For the verification operation, the following items are required:
      • Licensed Internal Code for IBM® i
      • IBM i operating system
      • IBM i - Library QGPL
      • IBM i - Library QUSRSYS
    6. Start the installation:
      PWRDWNSYS OPTION(*IMMED) RESTART(*YES) IPLSRC(*IMGCLG) IMGCLG(MYCATALOG)