Use of the AIXmksysb command

Source: Internet
Author: User
Tags tmp file
The purpose of the AIXmksysb command is to create a installable image of the root volume group on a file or bootable tape. Syntax mksysb [-bNumber] [-e] [-I] [-m] [-p] [-v] [-V] [-X] Device | File description mksy. .. the AIX mksysb command is used to create a installable image of the root volume group on a file or bootable tape. Syntax mksysb [-B Number] [-e] [-I] [-m] [-p] [-v] [-V] [-X] Device | File description mksysb command to create an operating system backup (that is, root volume group ). If the system is damaged, you can use this backup to reinstall the system to its original state. If a backup is created on a tape, the tape is bootable and contains the installer required to install from the backup. The file system image is in the backup file format. The tape format includes boot image, basic operating system (bos) installation image, and empty table content before adding a system backup (root volume group) image. The root volume group image is in the backup file format, starting with a data file, and then an optional ing file. The data file mksysb uses the/bosinst. data file. If the/bosinst. data file does not exist, copy/var/adm/ras/bosinst. data to/(root ). In versions later than AIX 4.3.3, mksysb always updates the data section of the target disk to match the disk in the root volume group currently in the system (running the mksysb command. If you are using a custom/bosinst. data file and do not want to update the target disk data section, you must create the/save_bosinst.data_file file. If/save_bosinst.data_file exists, the mksysb command does not update/bosinst. data. Note: The image created by the mksysb command does not contain data on the original binary device or user-defined paging space. If you use a system with a remote/usr file system, you cannot reinstall the system from the backup image. The mksysb command may not be able to recover special feature configurations for all devices, such as/dev/netbios and device drivers that do not follow the product. Some rspc systems in AIX 5.1 and earlier versions do not support boot from tape. When you create a bootable mksysb image in an rspc system that does not support tape boot in AIX 5.1 or earlier versions, the mksysb command issues a warning that the tape is not bootable. Mksysb images can be installed on systems that do not support tape boot using CD boot and input maintenance methods. System backup can be installed from tape during maintenance. Flag-B Number indicates the Number of 512 bytes to be written in an output operation. When the backup command is written to the tape device, the default value of the backup name is 100. The write size is the product of the number of blocks and the block size. The default write size of the backup command (written to the tape device) is 51200 (100*512) for backup by name ). The write size must be an even multiple of the physical device block size of the tape. -E exclude the files listed in the/etc/exclude. rootvg file from the files being backed up. The exclusion rules follow the pattern matching rules of the grep command. If you want to exclude files from the backup, use the ASCII editor to create the/etc/exclude. rootvg file and enter the file name mode that you do not want to include in the system backup image. The mode of this file is the input of the grep command in the pattern matching convention to determine which file is excluded from the backup. To exclude Files listed in the/etc/Exclude. rootvg file, select the "exclude Files" field and press the "Tab" key to change the default value to "yes ". For example, to exclude all content in the cratch Directory, edit the excluded file in the following format:/scratch/for example, to exclude content in the/tmp directory, in addition, to avoid excluding directories whose path names contain/tmp, edit the excluded files in the following format: ^. /tmp/all files are relative. (current working directory. To exclude any files or directories (it is important to make the search match the string at the beginning of the line), use "^" (insert character) as the first character in the search string, followed. (dot), followed by the file name or path name to be excluded. If the excluded file name or directory is a substring of another file name or directory, use ^. (insert mark and dot symbol) indicates that the search is performed at the beginning of a line and/or $ (dollar sign character) indicates that the search should end at the end of a line. -I calls the mkszfile command to generate the/image. data file. The/image. data file contains the volume Group, logical volume, file system, paging space, and physical volume information. This information is contained in the backup for future installation. Note: Before running the mkszfile command, make sure that you have enough space in the/tmp file to store the boot image. This space is required for backup and installation. Determine the space required by the/tmp file and run the following command: bosboot-q-a-d device. if mksysb is used, use the-X flag, you do not need to run the bosboot command to determine the space required for the/tmp file. -M calls the mkszfile command and uses the-m flag to generate a ing file. Note: If the-m flag is used, the-I flag function will also be executed. -P: disable software packaging when backing up files. Some tape drives use their own packaging or compression algorithms. -V details. List files during backup. -V verifies the tape backup. This flag causes mksysb to verify the file header of each file on the backup tape and report any read errors. -X if necessary, specify the automatic extension/tmp file system. When you create a boot backup to tape, you may need to expand the/tmp file system to free up space for the boot image. Parameter device | file specifies the device or file name. The example generates a system backup and creates a/image for a tape device named/dev/rmt0. data File (generated by mkszfile command), input: mksysb-I/dev/rmt0 to generate backup and create/image. data file, which contains a ing File (generated by the mkszfile command) to the tape device named/dev/rmt1. enter: mksysb-m/dev/rmt1 must generate a new file/image. data system backup, but exclude files in the/home/user1/tmp Directory, create a file that contains/home/user1/tmp/etc/exclude. rootvg, input: mksysb-I-e/dev/rmt1 this command will back up the/home/user1/tmp directory but not the files it contains. To generate a system backup file named/mksysb_images/node1 and a new file/image for this image. data, input: mksysb-I/userimage/node1 note: This file is not bootable and can only be installed using "network installation management" (NIM. Generate a system backup file on the/dev/rmt0 tape and verify the readability of the file header. enter the mksysb/dev/rmt0-V file/usr/bin/mksysb to include the mksysb command.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.