Tape Backup of AIX system

Source: Internet
Author: User
Tags file system reset rewind backup

AIX for system backup and recovery

Backup and recovery is what system administrators often do, including ROOTVG backups and user data backups.

Backup of operating system and System programs:

Insert a new tape or unwanted tape into the tape drive

#tctl-F (Designated tape device)/dev/rmt0 rewind (Rewind tape)

#smit MKSYSB

TCTL provides child commands to a streaming tape device.

Grammar:

Tctl [f Device] [EOF weof FSF BSF FSR BSR Rewind offline REWOFFL erase retension reset status] [Count]

Tctl [-B Blocksize] [-F Device] [-P buffersize] [-v] [-n] [-b] {Read Write}

Child command:

EOF or weof specifies that the number of file terminators is written in the tape location (before the empty band, before the file is extended, and at the beginning of the tape) and does not support overriding a single fast data.

The FSF moves the tape forward by the number of file tags specified by the count parameter, and the position marks the side of the tape end of the file tag.

BSF the number of file tags specified by the count parameter to move the tape backwards, at the start side.

FSR move forward

BSR Moving backwards

Rewind Rewind Belt

Offline or REWOFFL rewind and take the tape offline

Erase Delete all content on the tape and rewind

Read reads data from a specified tape device until the internal bumper is full, and then writes data to the standard output until a file terminator is encountered

Reset sends a bus device to reset the signal to the tape device. Unable to open device can send

Retension move the tape to the beginning and then back to the beginning of the tape at the end. Used when there are additional errors during backup or during recovery.

Status information for the status tape device

Write opens the tape drive, reads data from standard input, or writes data to the tape drive.

The flags used when using the read and write subcommand are:-b-n-P and-V

When you specify a read or write subcommand, the TCTL command opens the tape device and sets the tape fast size specified by the-B or-n flag. is not specified, the default value is 512 bytes.

Use to-B only when Read is a self-proclaimed

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/unix/

Sign:

-B (Blocksize) specifies the size of the tape device flushing area, and also specifies the fast size of the tape when no-n flag is specified. In the case of 0 bytes, the variable length, and the tape punching area size is 32768 bytes. If the-B flag is not specified, the default block size is 512 bytes in the default value.

-B writes data to the buffer each time the tape is read.

-f Specifies the tape device

-p Specifies the size of the buffer used on the standard input output. The default value is 32768 bytes.

-V Display Details

-n Specifies variable-length records when reading or writing a tape with a read or write subcommand.

Smit performs system management and displays the main menu in the overall system management hierarchy.

Grammar:

Smit [-c-m] [-d] [f] [-h] [-L (file)] [-O (pathname)] [-P (entity/valuestring)] [-R (RunMode)] [-S (file)] [-t] [[-M- N-D] (FASTPATH)] [-X] [-X]

Describe:

Smit is a call to the System Management Interface Tool interactive interface application to simplify system administration tasks. Smit creates two files: Smit.script (automatically records the flags and parameters used by commands and commands) and Smit.log (all operations log)

MKSYSB creates an installable image of the root volume group on a file or bootable tape.

Grammar:

MKSYSB [-A] [-a] [-B (number)] [E] [F (filename)] [-i] [-m] [-P] [-t (argument)] [-v] [-v] [-X] (device file)

Describe:

The MKSYSB command creates a backup of the operating system (root volume Group). You can use this backup to reinstall the system when the system breaks, and if you create a backup on tape, you can boot the installer that contains the installation you want from backup.

A file system image is a backup file format that includes a boot image, a base operating system installation image, an empty table content add system backup image. The root volume group image is the backup file format, starting with the data file, and then an optional image file.

Sign:

-A does not have extended attributes or NFS4 ACLs

-A backs up Dmapi file system files

-b Specifies that you want to write a 512-byte fast number in a separate output operation.

-e excludes files listed in the/ETC/EXCLUDE.ROOTVG file from the file being backed up.

-f Specifies a previously created MKSYSB image from which backup tapes will be created. This flag must be used in conjunction with a tape device.

-I invokes the Mkszfile command for the generated/image.data file. The/image.data file contains volume groups, logical volumes, file systems, paging space, and physical information.

-M invokes the Mkszfile command to generate the mapping file using the-M flag.

-p When backing up files, the software that disables the files is packaged. Some tape drives use their own packaging or compression algorithms.

-T

Add "/dev/rmt0" to the backup device or file, and then enter.

The system will run for a long time until the screen is OK to take out the tape. At this point, the system backup is complete. Note: MKSYSB only backs up the installed file systems in ROOTVG.

To create a system backup to tape

Enter the Smit MKSYSB quick path.

Select the tape device in the Backup DEVICE or File field.

If you are creating a mapping file, in the Create map files? Field select Yes.

For more information, see Using the mapping file for precise allocation in operating system and device management.

Note: Do not create a mapping file if you plan to reinstall the backup in the target system, not in the source system, or if the disk configuration of the source system may change before reinstalling the backup.

To exclude certain files from the backup, select Yes in the Exclude files field.

Select Yes in the List files as they are backed up field.

If you run any other programs during the backup, then in Disable software packing of backup? Select Yes in the field.

Use default values for the remaining menu options.

Press the Enter key to confirm and start the system backup process.

Displays the COMMAND status screen, displaying status messages when the system makes a backup image. When the backup process completes, the COMMAND: field is changed to OK.

To exit SMIT when the backup completes, press F10 (or esc+0).

Remove the tape and label it. Write protection for backup tapes.

Record any backed up root and user passwords. Remember, if you use a backup to restore the system or install another system, the password becomes active.

A ROOTVG backup has been created successfully. Because a system backup contains a boot image, you can use this tape to start the system for some reason because it cannot be booted from the hard disk.

This article from "Hello_ Small Strong" blog, please be sure to retain this source http://xiaozhuang.blog.51cto.com/4396589/1010811

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.