This section provides instructions for backing up your system, including how to back up the root volume group, verify a backup tape, and back up a user volume group.
If the lslpp command does not list the bos.sysmgt.sysbr fileset, install it before continuing with the backup procedure. Refer to "To Install Software and Service Updates with Custom Install" for instructions, or enter the following command:
Use either Web-based System Manager or SMIT to create a system backup, stored either on a tape or in a file. To boot from a system backup, the backup image must be stored on a tape.
To use the Web-based System Manager application to back up the root volume group, enter the fast path, as follows:
Note: The mksysb command does not back up file systems mounted across an NFS network.
Use the df command, which reports in units of 512-byte blocks, to determine the free space in the /tmp directory. Use the chfs command to change the size of the file system, if necessary.
For example, the following command adds 12MB of disk space to the /tmp directory of a system with 4MB partitions:
chfs -a size=+24000 /tmp
The Back Up the System appears, highlighting the Backup DEVICE or File field.
|TAPE||Press the F4 key to list available tape devices and highlight the device name.|
|FILE||Enter a full path and file name in the entry field.|
Map files match the physical partitions on a drive to its logical partitions. When installing from a backup image, the BOS installation program uses map files to position the logical volumes on the target drive in the same partitions they were on in the source system. If you do not create map files, the installation program relies on the Logical Volume Manager (LVM) to determine placement for the logical volumes. For more information, see "Using Map Files for Precise Allocation" in AIX Version 4.3 System Management Guide: Operating System and Devices .
For example, to exclude all the contents of the directory called scratch , edit the exclude file to read as follows:
If you chose tape as the backup medium, the system may prompt you to insert the next tape during the backup by displaying a message similar to the following:
Mount next Volume on /dev/rmt0 and type return.If this message appears, remove the tape and label it, including the BOS version number. Then insert another tape and press Enter.
When the backup process finishes, the COMMAND: field changes to OK.
You have created the backup of your root volume group (rootvg). If you created bootable tapes, these tapes can be used to start your system if for some reason you cannot boot from hard disks.
Use either Web-based System Manager or SMIT to list the contents of a mksysb backup tape. The contents list verifies most of the information on the tape, but does not verify that the tape can be booted for installations. The only way to verify that the boot image on a mksysb tape functions properly is by booting from the tape.
To use the Web-based System Manager application to verify a backup tape, enter the fast path, as follows:
Enter the smit lsmksysb fast path. The List Files in a System Image screen appears.
Note: Do not press the Enter key until you finish providing values in the entry fields.
Use either Web-based System Manager or SMIT to back up user volume groups, to images different than root volume group images.
To use the Web-based System Manager application to back up a user volume group, enter the fast path, as follows:
Back up a user volume group by entering the smit savevg fast path. The Save a Volume Group screen appears.
Use the steps for backing up the root volume group as a guide for backing up user volume groups, with the following exception: 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. Then edit /etc/exclude.volume_group_name 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 will be excluded from the backup.