Restoring user-defined virtual devices manually

In addition to restoring the Virtual I/O Server (VIOS), you might need to restore user-defined virtual devices (such as virtual device mappings). For example, in the event of a system failure, system migration, or disaster, you need to restore both the VIOS and user-defined virtual devices. In this situation, restore the volume groups by using the restorevgstruct command and manually re-create the virtual device mappings by using the mkvdev command.

User-defined virtual devices include metadata, such as virtual device mappings, that define the relationship between the physical environment and the virtual environment. In situations where you plan to restore the VIOS to a new or different system, you need to back up both the VIOS and user-defined virtual devices. (For example, in the event of a system failure or disaster, you must restore both the VIOS and user-defined virtual devices.)

To restore user-defined virtual devices, complete the following steps:
  1. List all the backed-up volume groups (or storage pools) by running the following command:
    restorevgstruct -ls
    This command lists the files located in the /home/ios/vgbackups directory.
  2. Run the lspv command to determine which disks are empty.
  3. Restore the volume groups (or storage pools) to the empty disks by running the following command for each volume group (or storage pool):
    restorevgstruct -vg volumegroup hdiskx
    Where:
    • volumegroup is the name of a volume group (or storage pool) from step 1.
    • hdiskx is the name of an empty disk from step 2.
  4. Re-create the mappings between the virtual devices and physical devices by using the mkvdev command. Re-create mappings for storage device mappings, shared Ethernet and Ethernet adapter mappings, and virtual LAN settings. You can find mapping information in the file that you specified in the tee command from the backup procedure. For example, /home/padmin/filename.



Last updated: Thu, October 15, 2020