Restoring user-defined virtual devices by using the viosbr command
You can restore user-defined virtual devices by using the viosbr command. Use the viosbr command when you plan to restore the information to the same Virtual I/O Server (VIOS) logical partition from which it was backed up.
The viosbr command restores the VIOS partition to the same state in which it was when the backup was taken. With the information available from the backup, the command performs the following actions:
- Sets the attribute values for physical devices, such as controllers, adapters, disks, optical devices, tape devices, and Ethernet interfaces.
- Imports logical devices, such as volume groups or storage pools, clusters, logical volumes, file systems, and repositories.
- Creates virtual devices and their corresponding mappings for devices like Etherchannel, Shared Ethernet Adapter, virtual target devices, virtual Fibre Channel adapters, and paging space devices.
Before you start, complete the following tasks:
- Run the ioslevel command to verify that the VIOS is at Version 2.1.2.0, or later.
- Determine the backup file that you want to restore. The backup file must be a file that was created by using the viosbr -backup command.
- Verify that the VIOS partition to which you plan to restore the information is the same VIOS partition from which it was backed up.
To restore all the possible devices and display a summary
of deployed and nondeployed devices, run the following command:
viosbr -restore –file /home/padmin/cfgbackups/myserverbackup.002.tar.gz
where /home/padmin/cfgbackups/myserverbackup.002.tar.gz is
the backup file that contains the information that you want to restore. The system displays information like the following output: Backed up Devices that are unable to restore/change
==================================================
<Name(s) of non-deployed devices>
DEPLOYED or CHANGED devices:
============================
Dev name during BACKUP Dev name after RESTORE
----------------------------- ------------------------------
<Name(s) of deployed devices>