Aix 5L Backup
Total Page:16
File Type:pdf, Size:1020Kb
Barra degli strumenti http://publib.boulder.ibm.com/infocenter/pseries/v5r3/advanced/printT... 1 di 1 17/12/2007 17.49 Creating system backups http://publib.boulder.ibm.com/infocenter/pseries/v5r3/print?printType... Sommario Creating system backups Installing all device and kernel support before the backup is created Preparing to create system backups Creating a root volume group backup to tape or file Creating a system backup to CD-R, DVD-R, or DVD-RAM Meeting hardware and software requirements for system backups Preparing to run the mkcd command Creating a root volume group backup on CD or DVD with the ISO9660 format Creating system backups using DVD-RAM media and Universal Disk Format Creating a root volume group backup on DVD-RAM with Universal Disk Format Backing-up a user volume group Backing-up a user volume group using Web-based System Manager Creating a user volume group backup using SMIT Using the user volume group backup options Previewing information about a volume group backup Verifying system backup (tape only) Viewing the backup log for volume group and system backups Viewing filesets installed in a system backup 1 di 23 17/12/2007 17.49 Creating system backups http://publib.boulder.ibm.com/infocenter/pseries/v5r3/print?printType... Creating system backups You can create and verify a bootable backup copy, or mksysb image, of your root volume group. You can also make separate backup copies of user volume groups. The root volume group is a hard disk or group of disks that contains: Startup files Base Operating System (BOS) System configuration information Optional software products A user volume group, also called the nonroot volume group, typically contains data files and application software. A system backup does the following: Contains a working copy of your system. In the event your system data becomes corrupted, you can use this information to restore your system to working order. Allows you to transfer installed and configured software from one system to others. You can use the Web-based System Manager or SMIT to make a backup image of the root volume group or user volume groups. A backup transfers the following configurations from the source system to the target system: rootvg volume group information Paging space information Logical volume information Placement of logical partitions (if creating map files has been selected in the Web-based System Manager or SMIT). Note: The use of map files is not recommended if you plan to reinstall the backup to target systems other than the source system, or the disk configuration of the source system is to be changed before reinstalling the backup. 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 following are true: The target system has the same hardware configuration as the source system. AND The target disk has enough space to hold the backup image. The Web-based System Manager and SMIT both use the mksysb command to create a backup image, stored either on CD, DVD, tape, or in a file. If you choose CD, DVD, or tape, the backup program by default writes a boot image, which makes the medium suitable for installing. For more information, see Creating a system backup to CD-R, DVD-R, or DVD-RAM. If you have problems with installations from a mksysb image, see Troubleshooting problems with installation from mksysb backup. Installing all device and kernel support before the backup is created Create a system backup that contains all devices and kernel types. Preparing to create system backups Meet these prerequisites before creating system backups. Creating a root volume group backup to tape or file Follow this procedure for creating a root volume group backup to tape or file. Creating a system backup to CD-R, DVD-R, or DVD-RAM 2 di 23 17/12/2007 17.49 Creating system backups http://publib.boulder.ibm.com/infocenter/pseries/v5r3/print?printType... Creating a backup on CD-R, DVD-R, or DVD-RAM media is similar to making a backup tape for your personal use, but with some noticeable differences. Backing-up a user volume group The savevg command provides the ability to create a user-volume group backup to a CD, DVD, tape, or file. Using the user volume group backup options After you have a system backup or a user volume group backup, you may want to verify the backup or list information about the backup image. Parent topic: Creating and installing system backups [ Feedback ] 3 di 23 17/12/2007 17.49 Creating system backups http://publib.boulder.ibm.com/infocenter/pseries/v5r3/print?printType... Installing all device and kernel support before the backup is created Create a system backup that contains all devices and kernel types. All devices and kernels are installed by default when performing a base operating system installation. This allows you to create a system backup that contains all devices and kernel types. Because the system backup contains all the devices and kernel support, the system backup can be used to install another system without the need for the AIX® product media. This option is available in the Install Options menu in the BOS installation menus. If you change the default ( yes) to no, only the devices and kernel type for your system configuration will be installed. This value is read from the ALL_DEVICES_KERNELS field in the /var/adm/ras/bosinst.data file on the product media that you used to boot the system. After the system is installed, you can check if all the devices and kernel types have been installed on the system as follows: # grep ALL_DEVICES_KERNELS bosinst.data Output similar to the following displays: ALL_DEVICES_KERNELS = yes For more information about the bosinst.data file, refer to Customizing your installation. Parent topic: Creating system backups [ Feedback ] 4 di 23 17/12/2007 17.49 Creating system backups http://publib.boulder.ibm.com/infocenter/pseries/v5r3/print?printType... Preparing to create system backups Meet these prerequisites before creating system backups. Before creating system backups, complete the following prerequisites: Be sure you are logged in as root user. Consider altering passwords and network addresses if you use a backup to make master copies of a source system. Copying passwords from the source to a target system can create security problems. Also, if network addresses are copied to a target system, duplicate addresses can disrupt network communications. Mount all file systems you want to back up. The mksysb command backs up mounted JFS (journaled file systems) and JFS2 (enhanced journaled file systems) in the rootvg. Refer to the mount command for details. Note: The mksysb command does not back up file systems mounted across an NFS network. Unmount any local directories that are mounted over another local directory. This backup procedure backs up files twice if a local directory is mounted over another local directory in the same file system. For example, if you mount /tmp over /usr/tmp, the files in the /tmp directory are then backed up twice. This duplication might exceed the number of files a file system can hold, which can cause a future installation of the backup image to fail. Use the /etc/exclude.rootvg file to list files you do not want backed up. Make at least 12 MB of free disk space available in the /tmp directory. The mksysb command requires this working space for the duration of the backup. 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 12 MB of disk space to the /tmp directory of a system with 4 MB partitions: chfs -a size=+24000 /tmp All hardware must already be installed, including external devices, such as tape and media drives. The bos.sysmgt.sysbr fileset in the BOS System Management Tools and Applications software package must be installed. The bos.sysmgt.sysbr fileset is automatically installed. To determine if the bos.sysmgt.sysbr fileset is installed on your system, type: lslpp -l bos.sysmgt.sysbr If your system has the bos.sysmgt.sysbr fileset installed, continue with one of the following procedures: Creating a root volume group backup to tape or file Creating a system backup to CD-R, DVD-R, or DVD-RAM Backing-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 Optional products and service updates for instructions, or enter the following command: installp -agqXd device bos.sysmgt.sysbr where device is the location of the software; for example, /dev/cd0 for CD-ROM drive. Parent topic: Creating system backups [ Feedback ] 5 di 23 17/12/2007 17.49 Creating system backups http://publib.boulder.ibm.com/infocenter/pseries/v5r3/print?printType... Creating a root volume group backup to tape or file Follow this procedure for 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 to be stored to tape or in a file. For instructions on how to back up to CD or DVD, see Creating a system backup to CD-R, DVD-R, or DVD-RAM. To create a root volume group backup: Use the Web-based System Manager Backup and Restore application and select Back up the system.