Backing Up a Non-Root Volume Group in AIX 4.x


Contents

About This Document
Why savevg?
savevg Tape Images
Creating a savevg
Verifying a savevg
Restoring a savevg
Tips and Hints for savevg

About This Document

This document details the commands for creating, verifying, and restoring a volume group backup in AIX Versions 4.x. This document should only be used as a supplement to the AIX System Management Guide.


Why savevg?

Since the mksysb command only backs up the root volume group, another approach is needed to back up other volume groups on the system. In these cases, the savevg command is used to create a backup of a volume group. The restvg command restores a savevg image, including recreating the volume group and its logical volumes and file systems.

WARNING: All logical volume information is archived and will be recreated. However, only JFS-mounted file system data will be archived. Raw logical volume data will NOT be archived using a savevg. For more information on raw logical volumes, contact your AIX support center.


savevg Tape Images

Unlike the mksysb command, the savevg command cannot be used to create a bootable tape. It consists of only one image, whether it is written to a tape drive or to a file on the system. This image is in the backup and restore format.


Creating a savevg


Verifying a savevg

The only method to verify that a volume group backup will correctly restore with no problems is to actually restore the savevg onto another machine. This should be done following the company's DISASTER RECOVERY PLAN.

To minimize problems due to tape media damage, perform the following test.

WARNING: This test only verifies that the tape media can be read on this machine and does NOT guarantee that the savevg will be restored successfully.

  1. Using SMIT, enter:
        smit lsbackvg 
        DEVICE or FILE                               [/dev/rmt#] 
        Number of BLOCKS to read in a single input   [ ] 
            (Leave blank to use a system default) 
    

    Type or select values and press Enter only AFTER selecting all values.

  2. Enter:
        restore -Tvqf /dev/rmt#.1 > /tmp/savevg.log 
    

Restoring a savevg

Determine which drive to use to make up the restored volume group. A volume group CANNOT already exist on the physical drive that you use. Be sure to select all target physical drives.

To restore individual files or directories from a savevg image, treat the savevg like any other relative backup and restore image.

For example:

    restore -xvqf /dev/rmt# ./path/file_to_restore 

The savevg is always created with relative path names.


Tips and Hints for savevg

  1. The restvg command expects the savevg image to be the first image on the tape. If the savevg image is not the first image on a tape, the restvg command is not supported as a means to restore that image. Individual files can still be restored from that image, but the tape must be forwarded to the correct filemark. For further information on the restore command, contact your AIX support center.

  2. For savevg and restvg to work properly with an image that was created with both maps and mirroring, AIX must be at the proper maintenance level of bos.sysmgt.sysbr. To verify the level, enter:
        lslpp -h bos.sysmgt.sysbr 
    

    Use the following table to verify that AIX is at the correct fileset level:

    < 4.1.4         ** not supported ** 
    4.1.4           bos.sysmgt.sysbr 4.1.4.5 
    4.1.5           bos.sysmgt.sysbr 4.1.5.0 
    4.2.0           bos.sysmgt.sysbr 4.2.0.5 
    4.2.1           bos.sysmgt.sysbr 4.2.1.0 
    4.3.0           bos.sysmgt.sysbr 4.3.0.0 


Backing Up a Non-Root Volume Group in AIX 4.x: savevg.4x.bak ITEM: FAX
Dated: 99/04/24~00:00 Category: bak
This HTML file was generated 99/06/24~12:42:02
Comments or suggestions? Contact us