[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Installation Guide


Chapter 6. Creating System Backups

This chapter describes how to create and verify a bootable backup copy, or mksysb image, of your root volume group and how to make separate backup copies of user volume groups. References to CD in this chapter also apply to DVD.


Introduction

The root volume group is a hard disk or group of disks that contains:

A user volume group, also called the nonroot volume group, typically contains data files and application software.

A system backup does the following:

A backup transfers the following configurations from the source system to the target system:

Using the Web-based System Manager or the SMIT backup menu lets you preserve configuration information, thus avoiding some of the configuring tasks normally required after restoring a system backup. A backup preserves the configuration if:

The Web-based System Manager and SMIT both use the mksysb command to create a backup image, stored either on CD, on tape, or in a file. If you choose CD or tape, the backup program by default writes a boot image, which makes the medium suitable for installing. (For AIX 5.1, the Web-based System Manager interface does not support backups to DVD.) For more information, see Creating System Backups on CD-ROM.


Prerequisites for Creating Backups

Before creating system backups, complete the following prerequisites:


Creating a Root Volume Group Backup to Tape or File

You can use either the Web-based System Manager or SMIT to create a system backup. These backups can be stored to CD, DVD, tape, or in a file. Booting from tape is not supported on Itanium-based platforms.

CD/DVD instructions are slightly different. See Creating System Backups on CD-ROM.

To create a root volume group backup:

You have created the backup of your root volume group (rootvg). If you created bootable tapes, you can use these tapes to start your system if for some reason you cannot boot from hard disks.


Creating System Backups on CD-ROM

Creating a backup CD/DVD is similar to making a backup tape for your personal use, but with some noticeable differences.

Note: For information about CD/DVD-R/DVD-RAM drives and CD/DVD-R creation software, refer to the following README file:

/usr/lpp/bos.sysmgt/mkcd.README.txt

The Web-based System Manager and SMIT both use the mkcd command, which calls the mksysb or savevg command, if needed. For system backups, the CDs can be created as:

Notes:

Personal and Generic backup CDs

There are two types of backup CDs that can be created. The first is called a personal backup CD, which is similar to a backup tape. A personal backup CD can only boot and install the machine on which it was created.

The second type of CD is a generic backup CD. A generic backup CD created on one POWER-based machine can boot any other POWER-based machine. It contains three boot images and all the device and kernel packages necessary to install any system. The mksysb image that is stored on the CD does not require that all the devices be installed in it, because the installation process installs the needed devices for that machine from the packages on the CD. A generic backup CD can be used to install (clone) a large number of machines in a customer's environment, which is particularly convenient when each machine in the system environment needs to have the same image installed, but all machines might not have the same hardware configuration.

Web-based System Manager and SMIT interfaces are available for the mkcd command. Online help can guide you through the required steps.

Another option available with the mkcd command is the ability to create a savevg CD. This CD has a copy of a non-rootvg volume group on it, and is useful for volume groups that contain user data. The mkcd command currently supports saving one volume group at a time to a CD. A new -L flag allows the creation of DVD sized images. However, if your rootvg image and savevg image are small enough to fit on one CD, you can save them both by taking advantage of the -l (stacklist) and -z (customization_script) flags. The -l flag gives a list of images to copy to the CD. The -z flag lets you create a script to restore savevg backups. For example, if you make a copy of a non-rootvg volume group ahead of time, and then write a script that calls the restvg command, then your non-rootvg would be restored to hdisk2 at the end of the installation of rootvg, as shown by the following command:

restvg -d /SPOT/usr/sys/inst.images/savevg_image hdisk2

This procedure is recommended only if you know you want to restore the non-rootvg volume group every time you install. Otherwise, you might just want to store it on the CD/DVD, then use restvg to restore it after reboot. The restvg command can restore from CD if the name of the image is savevg_image. If you save the non-rootvg backup on a CD with a different filename, you can insert that CD and use the full path to the filename as the device for the restvg command.

Hardware and Software Requirements

You must obtain the hardware and software necessary to create a CD/DVD. The command for this process, mkcd, requires that you already have the software to create a CD or DVD-ROM file system in Rock Ridge format and to burn or write the CD. Hardware and software that has been tested with this command includes:

Software Hardware
GNU and Free Software Foundation, Inc.

cdrecord version 1.8a5
mkisofs version 1.5

Yamaha CRW4416SX
Ricoh MP6201SE 6XR-2X
Panasonic Cw-7502-B
GNU and Free Software Foundation, Inc.

readcd version 1.9
mkisofs version 1.13

Matsushita LF-D291 DVD-RAM
Jodian Systems and Software, Inc.

CDWrite version 1.3
mkcdimg version 2.0

Yamaha CRW4416SX
Ricoh MP6201SE 6XR-2X
Panasonic Cw-7502-B
Young Minds, Inc.

MakeDisc version 1.3-Beta2

CD Studio
Turbo Studio DVD-R

Note: For more information about CD/DVD-R/DVD-RAM drives and CD/DVD-R creation software, refer to the following README file:

/usr/lpp/bos.sysmgt/mkcd.README.txt

Using the mkcd Command

Note: For information on using the mkcd command with Itanium-based platforms, refer to the following README file:

/usr/lpp/bos.sysmgt/mkcd.README.txt

To run the mkcd command, you need extra working space. A separate file system or directory is required for each of the following:

The mkcd command creates the following file systems if they are not already present or if alternative file systems or directories have not been specified:
/mkcd/mksysb_images
/mkcd/cd_fs
/mkcd/cd_images

The space used in these file systems is only temporary (unless the -R or -S flag is specified to save the images). If the mkcd command creates the file systems, it also removes them. Each file system or directory might require over 645 megabytes (up to 4.38 GB for DVD). The /mkcd/cd_fs directory needs 645 megabytes (up to 4.38 GB for DVD). The /mkcd/mksysb_images directory's space requirement depends on the size of the mksysb image that is to be created. The mkcd process attempts to calculate this space and verify that adequate space is available before starting the mksysb image. The /mkcd/cd_image directory needs at least 645 megabytes (up to 4.38 GB for DVD) of space. If the -R or -S flags are used to specify not removing the images and there are multiple volumes required, then more space must be provided.

If you do not have space on your machine, you might want to use NFS to mount some space from another server system, however, the file systems must be writeable. You can create a /mkcd file system that is very large (1.5 gig for CD or 9 GB for DVDs) and then create subdirectories for cd_fs, mksysb_images, and cd_images under /mkcd. Then /mkcd can be mounted onto the clients when they want to create a backup CD/DVD for their systems. When creating very large backups (larger than 2 GB) for DVD with the mkcd command, the file system must be large-file enabled and the ulimit values must be set to unlimited.

Creating a Root Volume Group Backup on CD/DVD-ROM

To create a root volume group backup:

Creating a Generic Backup CD/DVD Using SMIT

To use SMIT for creating a generic backup CD/DVD, follow these steps:

  1. Enter the smit mkcdgeneric command.
  2. Enter the name of the CD-R device. This can be left blank if the Create the CD now? field is set to no.
  3. Enter the full path name of the mksysb image. You can use only previously created mksysb images. This path does not create a mksysb image for you.
  4. Enter the location of the installation images that are to be copied to the CD file system in the Location of packages to copy to CD field. This field is required to copy devices and kernel packages to the generic CD. Additional software packages can be copied onto the generic CD, if a list of packages is provided in a later step of this procedure. The location can be either a directory or a CD device.
  5. In the next two fields, enter the file systems and directories where the CD file system and CD images are to be stored. These can be file systems you created in the rootvg, in another volume group, or in NFS-mounted file systems. If these fields are left blank, the mkcd command creates these file systems, and removes them when the command completes, unless you specify differently in later steps in this procedure.
  6. If you left the file systems' fields blank, you can select to have the mkcd command either create these file systems in the rootvg, or in another volume group.
  7. If you change the Remove final images after creating CD? field to no, then the file system for the CD images (that you specified earlier in this procedure) remains after the CD has been recorded.
  8. If you change the Create the CD now? field to no, then the file system for the CD images (that you specified earlier in this procedure) remains. The settings you selected in this procedure remain valid, but the CD is not created at this time.
  9. If you intend to use an Install bundle file, enter the full path name to the bundle file. The mkcd command copies the file into the CD file system. You must have the bundle file already specified in one of the following: the bosinst.data file, the BUNDLES field in the mksysb image, or a user-specified bosinst.data file that has the BUNDLES field set appropriately. When this option is used to have the bundle file placed on the CD, then the location in the BUNDLES field of the bosinst.data file must be as follows:

    /../usr/sys/inst.data/user_bundles/bundle_file_name
    
  10. Additional packages can be placed on the CD by entering the name of the file that contains the packages list in the File with list of packages to copy to CD field. The format of this file should be one package name per line.

    If you are planning to install one or more bundles after the mksysb image is restored, follow the directions in the previous step to specify the bundle file. Then you can use this option to have packages listed in the bundle available on the CD. If this option is used, you must also specify the location of installation images in the next step.

  11. You can specify the full path name to a customization script in the Customization script field. If given, the mkcd command copies the script to the CD file system. You must have the CUSTOMIZATION_FILE field already set in the bosinst.data file in the mksysb image or else use a user-specified bosinst.data file with the CUSTOMIZATION_FILE field set. The mkcd command copies this file to the RAM file system. Therefore, the path in the CUSTOMIZATION_FILE field must be:

    /../filename
    
  12. You can use your own bosinst.data file, rather than the one in the mksysb image, by entering the full path name of your bosinst.data file in the User supplied bosinst.data file field.
  13. To turn on debugging for the mkcd command, set Debug output? to yes. The debug output goes to the smit.log.
  14. You can use your own image.data file, rather than the image.data file in the mksysb image, by entering the full path name of your image.data file for the User supplied image.data file field.

Creating a User Volume Group Backup

Use either Web-based System Manager or SMIT to back up user volume groups. In AIX 4.3.3 and later versions, you can back up a user volume group to CD.

Creating a User Volume Group Backup Using Web-based System Manager

Use Web-based System Manager and select System backup to writable CD. This method creates a non-bootable CD that contains only a volume group backup image of a user volume group.

Creating a User Volume Group Backup Using SMIT

To back up a user volume group to tape or file using SMIT, type smit savevg on the command line. Back up a user volume group to CD by typing smit savevgcd on the command line.

When the Save a Volume Group screen displays, use the steps for backing up the root volume group as a guide for backing up user volume groups. There is one exception to this procedure. If you want to exclude files in a user volume group from the backup image, create a file named /etc/exclude.volume_group_name, where volume_group_name is the name of the volume group you want to backup.

Next, edit the /etc/exclude.volume_group_name file and enter the patterns of file names that you do not want included in your backup image. The patterns in this file are input to the pattern-matching conventions of the grep command to determine which files are excluded from the back up.


Verifying a System Backup

To list the contents of a mksysb image on tape or CD, you can use either Web-based System Manager (type wsm on the command line, then choose the Backup and Restore application) or SMIT (type smit lsmksysb on the command line). The listing verifies most of the information on the tape or CD, but does not verify that the backup media can be booted for installations. The only way to verify that the boot image(s) on a mksysb tape or CD function properly is by booting from the media. To verify all the boot images on a generic CD, try to boot from the CD on each different platform on which you are installing the backup.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]