IBM Support

Restoring Remote Output Queues (RMTOUTQs) When Migrating to a New System i Products System

Troubleshooting


Problem

This document provides information on restoring Remote Output Queues when migrating to a new IBM System i products system, particularly if using dummy device descriptions with your Remote Output Queues.

Resolving The Problem

This document provides information on restoring Remote Output Queues when migrating to a new IBM System i products system, particularly if using dummy device descriptions with your Remote Output Queues. This information also applies when restoring Remote Output Queues after re-installing the operating system on an existing system or when using a SAVSYS or a full system save to setup a back-up, high-availability, or disaster recovery system.

The information in this document has been divided into the following sections:

oErroneous Information in the IBM i Recovering your system guide for 7.1 (SC41-5304-10)
oErroneous Information in the IBM i Recovering your system guide for 6.1 (SC41-5304-09)
oErroneous Information in the iSeries Backup and Recovery for V5R4M0 (SC41-5304-08)
oRestoring Remote Output Queues to a New System before any Device Descriptions Have Been Restored
oRestoring Remote Output Queues to a New System after Their Dummy Device Descriptions Have Already been Restored
This document was last updated on 26 December 2013.



    • - Erroneous Information in the IBM i Recovering your system guide for 7.1 (SC41-5304-10)



      Chapter 15, Release-to-Release Support, in the IBM i Systems management Recovering your system guide for 7.1 (SC41-5304-10), has a section titled "Restoring previous release user data to a new system" that provides the steps for restoring user data to a new system that is at a newer release or is at the same release. Step 31 provides the steps needed to restore the user data and related system data, starting with the following:

      31. Use the save media of the option 21 (save from the source system) to perform the following steps to restore the user data and related system data, and user data to the target system:
        a. Type the End Subsystem (ENDSBS) command as follows:
          ENDSBS SBS(*ALL) OPTION(*IMMED)

        b. Prevent messages that are not necessary by typing the Change Message Queue (CHGMSGQ)
        command as follows:
          CHGMSGQ MSGQ(QSYSOPR) DLVRY(*NOTIFY) SEV(99)

        c. Type the Restore User Profiles (RSTUSRPRF) command as follows:
          RSTUSRPRF DEV(media-device-name) ALWOBJDIF(*ALL) ENDOPT(*LEAVE)

        d. Type the Restore Configuration (RSTCFG) command as follows:
          RSTCFG OBJ(*ALL) DEV(media-device-name) OBJTYPE(*ALL)
          SRM(*NONE) ALWOBJDIF(*ALL) ENDOPT(*LEAVE)

        e. If you saved remote output queue information for printers, type the following command:
          RSTOBJ OBJ(*ALL) OBJTYPE(*OUTQ) MBROPT(*ALL) ALWOBJDIF(*ALL)

      However, Steps 31d and 31e should be reversed. If taken in the order given, Step 31d will restore all of the printer device descriptions first, which will cause the system to generate output queues with the Remote system (RMTSYS) parameter set to *NONE. This means that the system generates output queues that are not Remote Output Queues. That causes Step 31e to fail to restore any Remote Output Queues that have corresponding dummy device descriptions because those output queues will already exist on the system from when their device descriptions were restored.

      If Step 31e is run first, then all of the Remote Output Queues (RMTOUTQs) can be successfully restored, and then Step 31d can be run to restore all of the printer device descriptions.

      Note: The Recovering your system guide (SC41-5304-10) is available in PDF format using the following URL link:

      http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/rzarm/sc415304.pdf

      • - Erroneous Information in the IBM i Recovering your system guide for 6.1 (SC41-5304-09)



        Chapter 15, Release-to-Release Support, in the IBM i Systems management Recovering your system guide for 6.1 (SC41-5304-09), has a section titled "Restoring previous release user data to a new system" that provides the steps for restoring user data to a new system that is at a newer release or is at the same release. Step 31 provides the steps needed to restore the user data and related system data, starting with the following:

        31. Use the save media of the option 21 (save from the source system) to perform the following steps to restore the user data and related system data, and user data to the target system:
          a. Type the End Subsystem (ENDSBS) command as follows:
            ENDSBS SBS(*ALL) OPTION(*IMMED)

          b. Prevent messages that are not necessary by typing the Change Message Queue (CHGMSGQ)
          command as follows:
            CHGMSGQ MSGQ(QSYSOPR) DLVRY(*NOTIFY) SEV(99)

          c. Type the Restore User Profiles (RSTUSRPRF) command as follows:
            RSTUSRPRF DEV(media-device-name) ALWOBJDIF(*ALL) ENDOPT(*LEAVE)

          d. Type the Restore Configuration (RSTCFG) command as follows:
            RSTCFG OBJ(*ALL) DEV(media-device-name) OBJTYPE(*ALL)
            SRM(*NONE) ALWOBJDIF(*ALL) ENDOPT(*LEAVE)

          e. If you saved remote output queue information for printers, type the following command:
            RSTOBJ OBJ(*ALL) OBJTYPE(*OUTQ) MBROPT(*ALL) ALWOBJDIF(*ALL)

        However, Steps 31d and 31e should be reversed. If taken in the order given, Step 31d will restore all of the printer device descriptions first, which will cause the system to generate output queues with the Remote system (RMTSYS) parameter set to *NONE. This means that the system generates output queues that are not Remote Output Queues. That causes Step 31e to fail to restore any Remote Output Queues that have corresponding dummy device descriptions because those output queues will already exist on the system from when their device descriptions were restored.

        If Step 31e is run first, then all of the Remote Output Queues (RMTOUTQs) can be successfully restored, and then Step 31d can be run to restore all of the printer device descriptions.

        Note: The Recovering your system guide (SC41-5304-09) is available in PDF format using the following URL link:

        http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/topic/rzarm/sc415304.pdf

        • - Erroneous Information in the iSeries Backup and Recovery for V5R4M0 (SC41-5304-08)



          Chapter 14, Release-to-Release Support, in the iSeries Backup and Recovery for V5R4M0 (SC41-5304-08) has a section titled "Restoring previous release user data to a new system: Step-by-step instructions" that provides the steps for restoring user data to a new system that is at a newer release or is at the same release. Step 27 provides the steps needed to restore the user data and related system data, starting with the following:

          __ 27. Use the save media of the option 21 save from the source system to perform the following steps to restore the user data and related system data, and user data to the target system:
              __ a. ENDSBS SBS(*ALL) OPTION(*IMMED)

              __ b. Prevent messages that are not necessary by typing: CHGMSGQ MSGQ(QSYSOPR) DLVRY(*NOTIFY) SEV(99)

              __ c. RSTUSRPRF DEV(media-device-name) ALWOBJDIF(*ALL) ENDOPT(*LEAVE)

              __ d. RSTCFG OBJ(*ALL) DEV(media-device-name) OBJTYPE(*ALL) SRM(*NONE) ALWOBJDIF(*ALL) ENDOPT(*LEAVE)

              __ e. If you saved remote output queue information for printers, RSTOBJ OBJ(*ALL) OBJTYPE(*OUTQ) MBROPT(*ALL) ALWOBJDIF(*ALL)

          However, Steps 27d and 27e should be reversed. If taken in the order given, Step 27d will restore all of the printer device descriptions first, which will cause the system to generate output queues with the Remote system (RMTSYS) parameter set to *NONE. This means that the system generates output queues that are not Remote Output Queues. That causes Step 27e to fail to restore any Remote Output Queues that have corresponding dummy device descriptions because those output queues will already exist on the system from when their device descriptions were restored.

          If Step 27e is run first, then all of the Remote Output Queues can be successfully restored, and then Step 27d can be run to restore all of the printer device descriptions.

          Note: The iSeries Backup and Recovery guide (SC41-5304-08) is available in PDF format using the following URL link:

          http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/books/sc415304.pdf

          • - Restoring Remote Output Queues to a New System before any Device Descriptions Have Been Restored



            To properly restore Remote Output Queues to a new System i, first use the following Restore Object (RSTOBJ) command to restore all of the output queue descriptions, including all of the Remote Output Queues:

            RSTOBJ OBJ(*ALL) SAVLIB(QUSRSYS) DEV(media-device-name) OBJTYPE(*OUTQ)
                   ENDOPT(*REWIND) MBROPT(*ALL) ALWOBJDIF(*ALL)

            and then use the following Restore Configuration (RSTCFG) command to restore all of the printer device descriptions:

            RSTCFG OBJ(*ALL) DEV(media-device-name) OBJTYPE(*ALL) SRM(*NONE)
                   ALWOBJDIF(*ALL) ENDOPT(*LEAVE)

            This causes all of the Remote Output Queues to be restored first, so the output queue will have the Remote system (RMTSYS) parameter and all other Remote Output Queue-related parameters set before any dummy device descriptions associated with the Remote Output Queues are restored. By setting the End of media option (ENDOPT) parameter to *REWIND on the RSTOBJ command, the tape is automatically rewound, but not unloaded. Then you may proceed with restoring the printer device descriptions, which will restore any dummy device descriptions that are associated with their corresponding Remote Output Queues, which have already been previously restored.

            Otherwise, if the device descriptions (including any dummy device descriptions) are restored first, then the system will automatically create output queues for all of the printer device descriptions; however, those output queues will be created with the RMTSYS parameter set to *NONE and all other Remote Output Queue-related parameters set to the default values. Then when you go to restore the Remote Output Queues, they cannot be restored because those output queues are already on the system; therefore, they will not be replaced with the output queues that had been backed up.

            Note: Starting with V5R4M0 (R540) IBM i5/OS, if the system backups were performed using the native SAVLIB, SAVOBJ, SAVRSTLIB, or SAVRSTOBJ commands, or with Save menu Options 21-23, and the Spooled file data (SPLFDTA) parameter was set to *ALL, then the spooled files in the output queues will automatically be restored on the new system. However, this requires both the source system and the target system to have V5R4M0 (R540) i5/OS installed. Spooled file data can also be restored to the new system if the QSRSAVO API was used to save the system, as long as the proper API key is specified.

            • - Restoring Remote Output Queues to a New System after Their Dummy Device Descriptions Have Already Been Restored



              If you have already restored your system from backups, restored your printer device descriptions, and then restored your output queues, then any Remote Output Queue that had been configured to use a dummy device description will be lost. That is because the device descriptions were restored first, causing the system to generate output queues for those printer device descriptions, but those output queues have the Remote system (RMTSYS) parameter set to *NONE and all other Remote Output Queue-related parameters set to their default values. Then when the output queues are later restored, the output queues already exist (for any that were using a dummy device description), so the Remote Output Queues cannot be restored.

              This problem can be resolved by using the following steps to delete the existing device descriptions and output queues, restore the Remote Output Queue descriptions, and restore the device descriptions again:

              1.Find the "dummy" device descriptions that were created. These are typically any *VRT 3812 devices with the Attached controller (CTL) parameter set to blanks or to one of the QVIRCD00xxx controller descriptions. Clear the output queues for these "dummy" device descriptions, vary the "dummy" device descriptions off, and delete them.
              2.Use the following Restore Object (RSTOBJ) command to restore all of the output queue descriptions, including all of the Remote Output Queues:

              RSTOBJ OBJ(*ALL) SAVLIB(QUSRSYS) DEV(media-device-name) OBJTYPE(*OUTQ)
                     MBROPT(*ALL) ALWOBJDIF(*ALL)
              3.Use the following Restore Configuration (RSTCFG) command to restore all of the printer device descriptions, including all of the *VRT 3812 device descriptions, or dummy device descriptions, that correspond to the Remote Output Queues that have already been restored:

              RSTCFG OBJ(*ALL) DEV(media-device-name) OBJTYPE(*ALL) SRM(*NONE)
                     ALWOBJDIF(*ALL) ENDOPT(*LEAVE)
              Note: Chapter 14, Release-to-Release Support, in the iSeries Backup and Recovery for V5R4M0 (SC41-5304-08) has a section titled "Restoring previous release user data to a new system: Step-by-step instructions" that provides the steps for restoring user data to a new system that is at a newer release or at the same release. However, Steps 27d and 27e should be reversed. For more information, refer to the previous section titled "Erroneous Information in the iSeries Backup and Recovery for V5R4M0 (SC41-5304-08)".

            [{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"6.1.0"}]

            Historical Number

            457587938

            Document Information

            Modified date:
            18 December 2019

            UID

            nas8N1014238