Backup and Restore of VIOS using viosbr

In order to upgrade the VIOS from lower software version to higher we require Backup of VIOS and Restore the VIOS configuration settings. Backup VIOS configuration will capture the configuration of running VIOS into the zip file. Configuration of VIOS such as SEA Network Bridge settings, Storage (NPIV / vSCSI / iSCSI / Virtual Optial disk ) device, Etherchannel details, Cache pool data and cluster information. In this post we shall look in to notmal back up and restore of VIOS, cluster backup and restore is explained in this article.

Backup VIOS Configuration


vios with an argument of -backup will back up the vios configuration in to a file. We need to provide the option of file with the absolute path to store the filename. viosbr command will back up the VIOS I/O device settings in to zip file.

$ viosbr -backup -file /viosv1
Backup of this node (viosv1) successful

Once backup of viosv1 is completed list the zip file, view the device settings with view option and then copy it to safe place in to a remote machine.

$ ls /viosv1*
viosv1.tar.gz
$ viosbr -view -file viosv1.tar.gz

$ viosbr -view -file viosv1.tar.gz

Details in: viosv1
===============================================================

Controllers:
============
Name                Phys Loc                      
----                --------                      
iscsi0                                            
sissas0            
fcs0                U78C9.001.WZS006N-P1-C11-T1   
fcs1                U78C9.001.WZS006N-P1-C11-T2   
sfwcomm0            U78C9.001.WZS006N-P1-C11-T1-W0-L0
sfwcomm1            U78C9.001.WZS006N-P1-C11-T2-W0-L0
fscsi0              U78C9.001.WZS006N-P1-C11-T1   
ent0                U78C9.001.WZS006N-P1-C10-T1     
ent1                U78C9.001.WZS006N-P1-C10-T2   
ent2                U78C9.001.WZS006N-P1-C10-T3   
sfw0                                              
 

Physical Volumes:
=================
Name                Phys Loc                      
----                --------                      
hdisk0
hdisk1              
hdisk2
hdisk3                                            

Optical Devices:
================
Tape Devices:
=============
Ethernet Interfaces:
====================
Name
----
en0
en1
en2
en3

IP Address                              Hostname                                Auto
----------                              --------                                ----
9.x.x.x                                 viosv1              

Storage Pools:
==============
SP Name                       PV Name                       
-------                       -------                       
rootvg                        hdisk0                        
                              

File Backed Storage Pools:
==========================
Cache Pool metadata devices:
============================
Optical Repository:
===================
Ether Channel Adapters:
=======================
Shared Ethernet Adapters:
=========================
Name                Physical Adapter    Default Adapter     Virtual Adapters    
----                ----------------    ---------------     ----------------    
ent3                ent0                 ent2                ent2               
                                                            

Virtual Server Adapters:
========================
SVSA                Phys Loc                      VTD                 
----                --------                      ---                 

Virtual Suspended Adapters:
===========================
Virtual Suspended Devices:
========================
Suspend Device      Phys Loc                      
--------------      --------                      

LPM Adapters:
=============

PSEUDO NPIVs:
=============

USB Mass Storage Devices:
=========================
SVFC Adapters:
==============

VBSD Pools:
===========
VRM(AMS) Pages:
===============
RSCT:
=====

Cluster:
========
Cluster             State               
-------             -----               

Virtual Log Repositories:
=========================

GPFS Cluster:
===============


Restore the backup file

After installing the vios with the new build we need to restore the configuration. Copy the old backed up file on to the installed VIOS and run the restore command. It may request admin to restore the VIOS after the reboot, once done with first reboot we need to restore it again for some of the devices and run the same restore command again for second time.

$ viosbr -restore -file viosv1.tar.gz
RULES: The restored device settings do not match the recommended factory default settings

Restoration of other components configurations are complete in PRE phase.
Please reboot the VIOS system before restoring further devices

Restore summary on viosv1:
Backedup Devices that are unable to restore/change
==================================================

DEPLOYED or CHANGED devices:
============================
Dev name during BACKUP                  Dev name after RESTORE
----------------------
'ArtexRules' are restored successfully

vfchost0                                vfchost0
vfchost0                                vfchost0
vfchost1                                vfchost1
vfchost1                                vfchost1
vfchost2                                vfchost2
vfchost2                                vfchost2
vfchost3                                vfchost3
vfchost3                                vfchost3
vfchost4                                vfchost4
vfchost4                                vfchost4
vfchost5                                vfchost5
vfchost5                                vfchost5
vfchost10                               vfchost10
vfchost10                               vfchost10
vfchost6                                vfchost6
vfchost6                                vfchost6
vfchost11                               vfchost11
vfchost11                               vfchost11
vfchost7                                vfchost7
vfchost7                                vfchost7
vfchost12                               vfchost12
vfchost12                               vfchost12
vfchost8                                vfchost8
vfchost8                                vfchost8
vfchost9                                vfchost9
vfchost9                                vfchost9

 

With these commands we can backup and restore the vios servers updating it to latest levels.





Post a Comment

0 Comments