Installing a system backup on the source machine
You can use the command line to restore an operating system onto the same machine from which you created the backup.
- All hardware must already be installed, including external devices, such as tape and CD/DVD-ROM drives.
- Obtain your system backup image from one of the following sources:
|DVD||BOS DVD are created in one of the following ways:|
|Tape||BOS tapes, created in one of the following ways:
Note: If devices were removed from or replaced on the system after the backup was created, their information will be restored when you install a backup. The system shows these devices in a defined state because the ODM from the system at the time of backup is restored instead of rebuilt.
|Network||The path to your backup image file. For information about installing a backup across a network, refer to Using a mksysb image to install the base operating system on a NIM client.|
- ODM is restored
- ODM is restored
- No recovery of devices
- You can use the bootlist command to display
or change the primary boot device. To display the primary boot device:
bootlist -m normal -oTo change the primary boot device:
bootlist -m normal rmt0 bootlist -m normal cd0
- Power off your machine by following these steps:
Attention: Do not turn on the system unit until Step 6.
- Log in as the root user.
- Enter the following command:
- If your system does not automatically power off, place the power switch in the Off (0) position.
- Turn on all attached external devices. These include:
- CD or DVD drives
- Tape drives
- External disk drives
Turning on the external devices first is necessary so that the system unit can identify them during the startup (boot) process.
- Insert the installation media into the tape or CD
or DVD drive.
You might find that on certain tape drive units, the tape drive door does not open while the system is turned off. If you have this problem, use the following procedure:
- Turn on the system unit.
- Insert the boot installation tape (insert Volume 1 if you received more than one volume).
- Turn off the system unit and wait for 30 seconds.
- If you are not using an ASCII terminal, skip to Step
6. If you are using an ASCII terminal, use the following criteria
to set the communications, keyboard, and display options. Note: If your terminal is an IBM® 3151, 3161, or 3164, press the Ctrl+Setup keys to display the Setup Menu and follow the on-screen instructions to set these options. If you are using some other ASCII terminal, refer to the appropriate documents for information about how to set these options. Some terminals have different option names and settings than those listed here.
Table 1. Communication Options Option Setting Line Speed (baud rate) 9600 Word Length (bits per character) 8 Parity no (none) Number of Stop Bits 1 Interface RS-232C (or RS-422A) Line Control IPRTS Table 2. Keyboard and Display Options Option Setting Screen normal Row and Column 24x80 Scroll jump Auto LF (line feed) off Line Wrap on Forcing Insert line (or both) Tab field Operating Mode echo Turnaround Character CR Enter return Return new line New Line CR Send page Insert Character space
- Turn the system unit power switch from Off (0)
to On (|). The system begins booting from the
backup media. If your system is booting from tape, it is normal for
the tape to move back and forth. If your system has an LED display,
the three-digit LED should display c31. Note: You can boot from production media (tape or CD) if your backup media fails to boot. The initial Welcome screen includes an option to enter a maintenance mode in which you can continue the installation from your backup media. Refer to Troubleshooting an installation from a system backup for more information.
If you have more than one console, each terminal and directly attached display device (or console) might display a screen that directs you to press a key to identify your system console. A different key is specified for each terminal displaying this screen. If this screen is displayed, then press the specified key only on the device to be used as the system console. (The system console is the keyboard and display device used for installation and system administration.) Press a key on only one console.Note: If the bosinst.data file lists a valid display device for the CONSOLE variable, you do not manually choose a system console. Read Customizing your installation for more information about the bosinst.data file.
- The type of installation that begins is determined
by the settings of the PROMPT field in the control_flow stanza
of the bosinst.data file. Use the following criteria to determine
the type of installation you will be using:
Item Description PROMPT = no Non-prompted Installation. This installation method is used if the backup image is configured to install automatically, without having to respond to the installation program. Go to step 8. PROMPT = yes Prompted Installation. This installation method is used if you need to use menu prompts to install the backup image. Also, use this installation method if a non-prompted installation halts and the Welcome to Base Operating System Installation and Maintenance screen displays. Go to step 9.
- A successful non-prompted installation requires
no further instructions because the installation is automatic. Note: If the backup image holds source system-configuration information that is incompatible with the target system, the non-prompted installation stops and a prompted installation begins.
The Installing Base Operating System screen displays before the installation starts. The non-prompted installation pauses for approximately five seconds before beginning. After this time, the non-prompted installation continues to completion.
However, if you decide to interrupt the automatic installation and start a prompted session, type 000 (three zeros) at the terminal and follow the remaining steps in this procedure.
- The Welcome to the Base Operating System Installation
and Maintenance screen displays. Note: You can view Help information at each screen of this installation process by typing 88.
Choose the Change/Show Installation Settings and Install option.
- The System Backup Installation and Settings displays. This screen shows current settings for the system. An ellipsis follows the disk listed in the first line if there is more than one disk selected.
- Either accept the settings or change them.
For more information on using map files, see Creating system backups.
To accept the settings and begin the installation, skip to step 16.
To change the settings, continue with step 12.
- Type 1 in the System Backup Installation
and Settings screen to specify disks where you want to install the
backup image. The Change Disk(s) Where You Want to Install screen
displays. This screen lists all available disks on which you can install
the system backup image. Three greater-than signs (>>>) mark
each selected disk.
Type the number and press Enter for each disk you choose. Type the number of a selected disk to deselect it. You can select more than one disk.Note: You can also specify a supplemental disk by typing 66 and pressing the Enter key for the Disks not known to Base Operating System Installation option. This option opens a new menu that prompts for a device support media for the supplemental disk. BOS installation configures the system for the disk and then returns to the Change Disk(s) Where You Want to Install screen.
- After you have finished selecting disks, press the Enter key.
The screen that displays after you press the Enter key is dependent on the availability of map files for all of the selected disks. The criteria for this is as follows:
- If one or more selected disks have no maps, BOS installation returns directly to the System Backup Installation and Settings screen. Skip to step 15.
- If all selected disks have maps, the Change Use Maps Status screen displays, where you choose whether to use maps for installation. Continue with step 14.
To preserve the placement of logical volumes during a future restoration of the backup, you can create map files before backing up a system. Map files, stored in the /tmp/vgdata/rootvg directory, match the physical partitions on a drive to its logical partitions. Create map files either with the SMIT Backup the System menu, using the -m option when you run the mksysb command.
For more information about map files, see Using Map Files for Precise Allocation in Operating system and device management.
- Type either 1 or 2 in
the Change Use Maps Status screen to specify whether the installation
program is to use maps.
When you complete this choice, BOS installation returns to the System Backup Installation and Settings screen.
- Decide whether BOS installation is to shrink
file systems on the disks where you install the system. When you choose
this option, the logical volumes and file systems within a volume
group are re-created to the minimum size required to contain the data.
This reduces wasted free space in a file system.
File systems on your backup image might be larger than required for the installed files. Press the 2 key to toggle the Shrink File Systems option between Yes and No in the System Backup Installation and Settings screen. The default setting is No.Note: Shrinking the file system disables the use of maps.
- Type 0 to accept the settings in the System
Backup Installation and Settings screen.
The Installing Base Operating System screen displays the rate of completion and duration.
If you specified a supplemental disk in step 12, an untitled screen temporarily replaces the Installing Base Operating System screen. When this screen displays, it prompts you to place the device-support media in the drive and press the Enter key. BOS installation re-configures the supplemental disk, then returns to the Installing Base Operating System screen.
The system reboots automatically when the installation completes.