In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
AIX for system backup and recovery
Backup and recovery are often done by system administrators, including rootvg backup and user data backup.
Backup of operating systems and system programs:
Insert a new or useless tape into the tape drive
# tctl-f (specify tape device) / dev/rmt0 rewind (rewind tape)
# smit mksysb
Tctl provides subcommands to a streaming tape device.
Syntax:
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}
Subcommand:
Eof or weof specifies that the number of file Terminators is written in the tape location (before the empty tape, before the extension file tag, at the tape start tag) does not support rewriting individual fast data.
Fsf moves the tape forward by the number of file tags specified by the count parameter, with the location tag on the tape Terminator side of the file tag.
Bsf moves the tape backward with the number of file tags specified by the count parameter, on the side of the starter.
Fsr moves forward
Bsr moves backwards
Rewind rewind
Offline or rewoffl rewind and take the tape offline
Erase deletes everything on the tape and rewinds it
Read reads data from the specified tape device until the internal buffer is full, and then outputs write data to the standard until the file Terminator is encountered
Reset sends a bus device reset signal to the tape device. Cannot open the device to send
Retension moves the tape to the beginning, then to the end and back to the beginning of the tape. Used when additional errors occur during backup or restore.
Status information for status tape Devic
Write turns on the tape drive and reads data from standard input or writes data to the tape drive.
The flags used when using the read and write subcommands are:-b-n-p and-v
When the read or write subcommand is specified, the tctl command turns on the tape device and sets the tape fast size specified by the-b or-n flag. If not specified, the default value is 512 bytes.
-B is used only when read is used.
Logo:
-b (Blocksize) specifies the size of the punch area of the read-write tape device, and the size of the tape fast when the-n flag is not specified. If 0 bytes, the length is variable, and the tape punch size is 32768 bytes. If the-b flag is not specified, the default block size is 512 bytes by default.
-B writes data to the buffer each time the tape is read.
-f specify tape device
-p specifies the buffer size used on standard input and output. The default is 32768 bytes.
-v display details
-n specify variable length records when reading and writing tapes with the read or write subcommands.
Smit performs system administration and displays the main menu in the overall system management hierarchy.
Syntax:
Smit [- C-M] [- D] [- f] [- h] [- l (file)] [- o (pathname)] [- p (entity/valuestring)] [- r (runmode)] [- s (file)] [- t] [[- m-n-d] (FASTPATH)] [- X] [- x]
Description:
Smit is a call to the "system Management Interface tool" interactive interface application to simplify system management tasks. SMIT creates two files: smit.script (automatically record the flags and parameters used by commands) and smit.log (log all operations)
Mksysb creates an installable image of the root volume group on a file or bootable tape.
Syntax:
Mksysb [- a] [- A] [- b (number)] [- e] [- F (filename)] [- I] [- m] [- p] [- t (argument)] [- v] [- V] [- X] (device file)
Description:
The mksysb command creates a backup of the operating system (root volume group). You can use this backup to reinstall the system if the system is damaged, or if you create a backup on tape, you can boot to include the installer required to install from the backup.
The file system image is the backup file format, including the boot image, the basic operating system installation image, and the empty table content adding system backup image. The root volume group image is a backup file format, starting with a data file, followed by an optional image file.
Logo:
-a does not back up extended properties or NFS4 ACL
-A backup DMAPI file system files
-b specifies the fast number of 512 bytes to be written in a separate output operation.
-e excludes files listed in the / etc/exclude.rootvg file from the files 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 tape devices.
-I invokes the mkszfile command of the generated / p_w_picpath.data file. The / p_w_picpath.data file contains volume groups, logical volumes, file systems, paging space, and physical information.
The-m invokes the mkszfile command and uses the-m flag to generate the mapping file.
-p disable software packaging of files when backing up files. Some tape drives use their own packaging or compression algorithms.
-t
Enter "/ dev/rmt0" in "backup device or file" and enter.
The system will run for a long time and wait until the screen shows OK to take out the tape. At this time, the system backup is complete. Note: mksysb only backs up installed file systems in rootvg.
Create a system backup to tape
Enter the smit mksysb fast path.
Select the tape device in the Backup DEVICE or File field.
If you want to create a mapping file, in Create Map Files? Select yes in the field.
For more information, see using a 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 on the target system rather than on the source system, or if the disk configuration of the source system may change before reinstalling the backup.
To exclude some 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 the default values for the remaining menu options.
Press Enter to confirm and start the system backup process.
Displays the COMMAND STATUS screen and displays a status message when the system makes a backup image. When the backup process is complete, the COMMAND: field changes to OK.
To exit SMIT when the backup is complete, press F10 (or Esc+0).
Take out the tape and label it. Write protection for backup tapes.
Record any backed up root and user passwords. Remember, this password becomes active if you use a backup to restore the system or install another system.
A backup of rootvg has been created successfully. Because the system backup contains a boot image, you can use this tape to boot the system when you cannot boot from the hard drive for some reason.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.